Skip to main content

shopline-mcp

MCP server for the Shopline Open API. Exposes 140+ tools for querying and managing orders, products, customers, promotions, analytics, and store settings from your Shopline store via Claude.

Installation

Clone the repo and install in a virtualenv:

git clone https://github.com/tzangms/shoplinemcp.git
cd shoplinemcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

This installs the shopline-mcp command into your virtualenv.

Get a Shopline API token

In your Shopline admin panel:

Settings → Staff Settings → API Auth → Generate

Copy the token — you'll need it for the config below.

Setup

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) and add an entry to mcpServers. You must use the absolute path to the shopline-mcp binary inside your virtualenv (Claude Desktop does not activate venvs):

{
  "mcpServers": {
    "shopline": {
      "command": "/absolute/path/to/your/.venv/bin/shopline-mcp",
      "env": {
        "SHOPLINE_API_TOKEN": "your_token_here"
      }
    }
  }
}

To find the absolute path, run which shopline-mcp while the venv is activated.

Quit Claude Desktop completely (Cmd+Q) and reopen it. The Shopline tools should now be available.

Claude Code

claude mcp add --transport stdio shopline \
  -e SHOPLINE_API_TOKEN=your_token \
  -- /absolute/path/to/your/.venv/bin/shopline-mcp

Tools

The server exposes 140+ tools grouped into these categories:

  • Orders & Sales — search, detail, fulfillments, transactions, cancel, returns, deliveries, conversations, reviews
  • Products & Inventory — search, detail, variants, inventory, write operations, purchase orders
  • Customers — info, orders, groups, store credits, membership tiers, member points, custom fields
  • Promotions — promotions, flash prices, affiliate campaigns, gifts, addon products, subscriptions
  • Categories — category tree, detail, write operations
  • Store settings — merchant, payment, delivery options, channels, taxes, staff, tokens, agents
  • Analytics — RFM, repurchase, geo, inventory turnover, category sales, promotion ROI, customer lifecycle, slow movers

Run claude mcp list (Claude Code) or check the tool picker in Claude Desktop to see the full list once configured.

API

This server uses the Shopline Open API at https://open.shopline.io/v1. It works with stores on shoplineapp.com (Taiwan / Asia region).

Troubleshooting

Claude Desktop doesn't show the tools — verify the command path is absolute and the binary exists (ls -l /path/to/.venv/bin/shopline-mcp). Check Claude Desktop logs at ~/Library/Logs/Claude/.

Server runs but tool calls fail with auth errors — confirm SHOPLINE_API_TOKEN is set in the env block of the config (not just in your shell), and that the token has the required scopes in Shopline admin.

Test the server manually:

SHOPLINE_API_TOKEN=your_token /path/to/.venv/bin/shopline-mcp

It will wait on stdin (correct — MCP uses stdio). Ctrl+C to exit.

License

MIT

Metadata

Release files for shopline-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shopline-mcp 0.1.0
File Size Uploaded
shopline_mcp-0.1.0.tar.gz 57.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shopline-mcp 0.1.0
File Interpreter ABI Platform
shopline_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 144.9 kB

Release files / shopline_mcp-0.1.0.tar.gz

Download URL shopline_mcp-0.1.0.tar.gz
Size 57.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cd229cc9da573871d632ba2b15f13395218ceceb18aed5f85f7732d3217b37c4
BLAKE2b-256 checksum
How to use checksums
9676879d0c0f3dad053c04bb03821389ff9a185154e34880d67af21c1d653c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / shopline_mcp-0.1.0-py3-none-any.whl

Download URL shopline_mcp-0.1.0-py3-none-any.whl
Size 87.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ab1b43fcb86a3af8366311404309ee2047a8ace4af65e936ba0e24c2ef7936b
BLAKE2b-256 checksum
How to use checksums
696567ad3cd8f9e0d4f525a0f8cb8e778fdeb336112a28afef377f4490e32930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page