Shopify MCP
Enables natural language management of Shopify stores, including orders, customers, products, and inventory, with support for multiple stores and both static and OAuth authentication.
README
Shopify MCP
A Model Context Protocol (MCP) server that connects Claude / OpenClaw directly to your Shopify store. Manage orders, customers, products, and inventory through natural language — no dashboard switching required.
Supports multiple stores and both static access tokens and OAuth client credentials.
Tools
Orders
| Tool | Description |
|---|---|
shopify_list_orders |
List orders with filters: status, tag, date range, financial status, fulfillment status |
shopify_get_order |
Full order details: line items, fulfillments, refunds, notes |
shopify_update_order |
Add or remove tags, update internal note |
shopify_cancel_order |
Cancel an order with reason; optionally notify the customer |
shopify_fulfill_order |
Create a fulfillment with tracking number and carrier |
Customers
| Tool | Description |
|---|---|
shopify_list_customers |
List recent customers or search by email, phone, name, or tag |
shopify_get_customer |
Customer details with optional order history |
shopify_update_customer |
Add or remove tags, update internal note |
Products & Inventory
| Tool | Description |
|---|---|
shopify_list_products |
List products with filters: title, vendor, status |
shopify_get_product |
Product details: all variants, prices, inventory quantities, inventory_item_id |
shopify_update_inventory |
Set absolute inventory quantity at a location |
Requirements
- Python 3.9+
- A Shopify store with a Custom App
Shopify API Scopes
Grant the following scopes when configuring your Custom App:
| Scope | Used by |
|---|---|
read_orders, write_orders |
List, update, cancel orders |
read_customers, write_customers |
List, search, update customers |
read_products |
List and inspect products/variants |
read_inventory, write_inventory |
Read and update inventory levels |
read_fulfillments, write_fulfillments |
Create fulfillments |
Installation
git clone <repo-url> shopify-mcp
cd shopify-mcp
python3 -m venv venv
venv/bin/pip install -r requirements.txt
Configuration
Copy the example env file and fill in your credentials:
cp .env.example .env
Single store — static token
SHOPIFY_SHOP_DOMAIN=your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SHOPIFY_API_VERSION=2026-04
Single store — OAuth (auto-refresh)
SHOPIFY_SHOP_DOMAIN=your-store.myshopify.com
SHOPIFY_CLIENT_ID=your_client_id
SHOPIFY_CLIENT_SECRET=your_client_secret
SHOPIFY_API_VERSION=2026-04
Multiple stores
SHOPIFY_STORES=[{"shop_domain":"store-a.myshopify.com","access_token":"shpat_aaa"},{"shop_domain":"store-b.myshopify.com","client_id":"xxx","client_secret":"yyy"}]
SHOPIFY_API_VERSION=2026-04
When using multiple stores, pass the shop parameter to any tool to target a specific store. Omitting shop defaults to the first configured store.
Adding to Claude Code / OpenClaw
Add to ~/.claude/settings.json (global) or .claude/settings.json (project):
{
"mcpServers": {
"shopify-mcp": {
"command": "/absolute/path/to/shopify-mcp/venv/bin/python",
"args": ["server.py"],
"cwd": "/absolute/path/to/shopify-mcp"
}
}
}
Restart Claude Code / OpenClaw after saving.
Usage examples
List the last 10 open orders
Show me order #1042
Find customer with email: john@example.com
Add tag "wholesale" to customer 123456
Get product details for product ID 789012
Cancel order 6543210987654 — customer changed their mind
Fulfill order 6543210987654 with GHN tracking number ABC123456789
Set inventory for inventory_item_id 11223344 to 50 units
How it works
Claude / OpenClaw
│ MCP (stdio)
▼
server.py ──► shopify_api.py ──► Shopify Admin REST API
│
storage/ ← OAuth token cache (chmod 600)
- No daemon required — the MCP server is a lightweight process started on demand by the MCP host.
- Rate limiting — automatically waits on
429 Too Many Requestsusing Shopify'sRetry-Afterheader. - Token refresh — OAuth tokens are cached locally and refreshed 5 minutes before expiry. On a
401, the token is force-refreshed and the request retried once. - Retries — transient network errors are retried up to 3 times with exponential backoff.
File structure
shopify-mcp/
├── server.py ← MCP server entry point (11 tools)
├── shopify_api.py ← Shopify Admin REST API client
├── requirements.txt
├── .env.example
└── storage/ ← auto-created; stores OAuth token cache
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。