S
Shopify MCP
作者 @benwmerritt
MCP server for Shopify with full OAuth flow, 30+ tools for products, collections, inventory, draft orders, metafields, and bulk operations.
创建于 1/9/2026
更新于 1 day ago
README
Repository documentation and setup instructions
███████╗██╗ ██╗ ██████╗ ██████╗ ██╗███████╗██╗ ██╗ ███╗ ███╗ ██████╗██████╗
██╔════╝██║ ██║██╔═══██╗██╔══██╗██║██╔════╝╚██╗ ██╔╝ ████╗ ████║██╔════╝██╔══██╗
███████╗███████║██║ ██║██████╔╝██║█████╗ ╚████╔╝ ██╔████╔██║██║ ██████╔╝
╚════██║██╔══██║██║ ██║██╔═══╝ ██║██╔══╝ ╚██╔╝ ██║╚██╔╝██║██║ ██╔═══╝
███████║██║ ██║╚██████╔╝██║ ██║██║ ██║ ██║ ╚═╝ ██║╚██████╗██║
╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝
Shopify MCP
A Model Context Protocol (MCP) server that connects agents to the Shopify Admin GraphQL API. Use it to browse, edit, and clean up store data via a curated set of tools.
npm: shopify-mcp
binary: shopify-mcp
Highlights
- CRUD for products, collections, orders, and customers
- Draft orders for quotes, manual orders, and B2B pricing
- Inventory and location lookups for stock workflows
- Metafields for custom data
- URL redirects management
- OAuth login flow with local token caching
- Bulk product cleanup utilities
Prerequisites
- Node.js 18+
- A Shopify custom app (OAuth or Admin API token)
Install + run
OAuth flow (recommended)
- Create a custom app and copy Client ID and Client Secret.
- In App setup, set App URL and Allowed redirection URLs to:
http://localhost:3456/callback - Start the OAuth flow:
npx shopify-mcp --oauth --domain=your-store.myshopify.com --clientId=xxx --clientSecret=yyy
Tokens are stored at ~/.shopify-mcp/tokens.json. After that, start the server with just the domain:
npx shopify-mcp --domain=your-store.myshopify.com
Optional: override scopes with --scopes or SHOPIFY_SCOPES.
Access token (manual)
- Create a custom app in Shopify
- Enable Admin API scopes:
read_products,write_productsread_customers,write_customersread_orders,write_ordersread_draft_orders,write_draft_ordersread_inventory,write_inventoryread_locationsread_content,write_contentread_files,write_files
- Install the app and copy the Admin API access token
Run:
shopify-mcp --accessToken=<YOUR_ACCESS_TOKEN> --domain=<YOUR_SHOP>.myshopify.com
MCP client setup
Claude Desktop
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": [
"shopify-mcp",
"--accessToken",
"<YOUR_ACCESS_TOKEN>",
"--domain",
"<YOUR_SHOP>.myshopify.com"
]
}
}
}
If you completed OAuth, omit --accessToken and keep --domain.
Config paths:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
Environment variables (optional)
SHOPIFY_ACCESS_TOKEN=your_access_token
MYSHOPIFY_DOMAIN=your-store.myshopify.com
# Optional OAuth values:
# SHOPIFY_CLIENT_ID=your_client_id
# SHOPIFY_CLIENT_SECRET=your_client_secret
# SHOPIFY_SCOPES=comma,separated,scopes
Tool catalog
Products
get-products(supportsfields:slim | standard | full | [])get-product-by-idcreate-productupdate-productdelete-productdelete-variantdelete-product-imagessearch-products(supportsfields)bulk-update-productsbulk-delete-products
Collections
get-collectionsmanage-collection-productscreate-collectionupdate-collectiondelete-collection
Customers
get-customers(supports pagination viacursor)update-customerget-customer-orders(supports pagination viacursor)
Orders
get-orders(supports pagination viacursor)get-order-by-idupdate-order
Draft Orders
get-draft-orders(supports pagination viacursor)get-draft-order-by-idcreate-draft-orderupdate-draft-ordercomplete-draft-order
Inventory
get-inventory-levelsupdate-inventory
Locations
get-locations
Metafields
get-metafieldsset-metafield(create or update)delete-metafield
URL redirects
get-redirectscreate-redirectdelete-redirect
Analytics
get-store-counts- Get all key counts in one call (products, variants, orders, customers, collections)get-product-issues- Audit products for problems (zero inventory, low stock, missing images, zero price)
Bulk Operations
start-bulk-export- Start async bulk export (products, orders, customers, inventory, or custom query)get-bulk-operation-status- Check progress of bulk operationget-bulk-operation-results- Download and parse completed results (summary, sample, or full)
Debugging
Tail Claude Desktop logs:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
License
MIT
快速设置
此服务器的安装指南
安装包 (如果需要)
npx @modelcontextprotocol/server-shopify-mcp
Cursor 配置 (mcp.json)
{
"mcpServers": {
"benwmerritt-shopify-mcp": {
"command": "npx",
"args": [
"benwmerritt-shopify-mcp"
]
}
}
}