MCP server for Shopline Open API — 140+ tools for orders, products, customers, promotions, and analytics
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shopline_mcp-0.1.0.tar.gz.
File metadata
- Download URL: shopline_mcp-0.1.0.tar.gz
- Upload date:
- Size: 57.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd229cc9da573871d632ba2b15f13395218ceceb18aed5f85f7732d3217b37c4
|
|
| MD5 |
02a1afd4186027b4e02ac29cd5444833
|
|
| BLAKE2b-256 |
9676879d0c0f3dad053c04bb03821389ff9a185154e34880d67af21c1d653c8d
|
File details
Details for the file shopline_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: shopline_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 87.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ab1b43fcb86a3af8366311404309ee2047a8ace4af65e936ba0e24c2ef7936b
|
|
| MD5 |
d3fe476cd01a9dd15920967b0385aba5
|
|
| BLAKE2b-256 |
696567ad3cd8f9e0d4f525a0f8cb8e778fdeb336112a28afef377f4490e32930
|