
MCP Server for Shopify API, enabling interaction with store data through GraphQL API. This server provides tools for managing products, customers, orders, and more.
概览
MCP Server for Shopify API, enabling interaction with store data through GraphQL API. This server provides tools for managing products, customers, orders, and more. - : Search and retrieve product information - : Load customer data and manage customer tags - : Advanced order querying and filtering - : Create and manage collections To use this MCP server, you'll need to create a custom app in your Shopify store: 1. From your Shopify admin, go to > 2. Click (you may need to enable developer preview first) 3. Click 4. Set a name for your app (e.g., "Shopify MCP Server") 5. Click 6. Select the following scopes: - read_products, write_products - read_customers, write_customers - read_orders, write_orders - read_collections, write_collections 7. Click 8. Click 9. Click to give the app access to your store data 10. After installation, you'll see your 11. Copy this token - you'll need it for configuration Add this to your claude_desktop_config.
README
以下为原文 README 节选,完整内容请查看原文。
Shopify MCP Server
MCP Server for Shopify API, enabling interaction with store data through GraphQL API. This server provides tools for managing products, customers, orders, and more.
Features
- Product Management: Search and retrieve product information
- Customer Management: Load customer data and manage customer tags
- Order Management: Advanced order querying and filtering
- Collection Management: Create and manage collections
Setup
Shopify Access Token
To use this MCP server, you’ll need to create a custom app in your Shopify store:
- From your Shopify admin, go to Settings > Apps and sales channels
- Click Develop apps (you may need to enable developer preview first)
- Click Create an app
- Set a name for your app (e.g., “Shopify MCP Server”)
- Click Configure Admin API scopes
- Select the following scopes:
read_products,write_productsread_customers,write_customersread_orders,write_ordersread_collections,write_collections
- Click Save
- Click Install app
- Click Install to give the app access to your store data
- After installation, you’ll see your Admin API access token
- Copy this token - you’ll need it for configuration
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": [
"shopify-mcp",
"--accessToken",
"",
"--domain",
".myshopify.com"
]
}
}
}
Locations for the Claude Desktop config file:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
Alternative: Run Locally with Environment Variables
If you prefer to use environment variables instead of command-line arguments:
-
Create a
.envfile with your Shopify credentials:SHOPIFY_ACCESS_TOKEN=your_access_token MYSHOPIFY_DOMAIN=your-store.myshopify.com -
Run the server with npx:
npx shopify-mcp
Direct Installation (Optional)
If you want to install the package globally:
npm install -g shopify-mcp
Then run it:
shopify-mcp --accessToken= --domain=.myshopify.com
Available Tools
Product Management
-
get-products- Get all products or search by title
- Inputs:
searchTitle(optional string): Filter products by titlelimit(number): Maximum number of products to return
-
get-product-by-id- Get a specific product by ID
- Inputs:
productId(string): ID of the product to retrieve
Customer Management
-
get-customers- Get customers or search by name/email
- Inputs:
searchQuery(optional string): Filter customers by name or emaillimit(optional number, default: 10): Maximum number of customers to return
安装
npx shopify-mcp --accessToken <YOUR_ACCESS_TOKEN> --domain <YOUR_SHOP>.myshopify.com配置
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": [
"shopify-mcp",
"--accessToken",
"<YOUR_ACCESS_TOKEN>",
"--domain",
"<YOUR_SHOP>.myshopify.com"
]
}
}
}