(please leave a star if you like!)
MCP Server for Shopify API, enabling interaction with store data through GraphQL API. This server provides tools for managing products, customers, orders, and more.
📦 Package Name: shopify-mcp
🚀 Command: shopify-mcp (NOT shopify-mcp-server)
- Product Management: Full CRUD for products, variants, and options
- Customer Management: Load customer data and manage customer tags
- Order Management: Advanced order querying and filtering
- GraphQL Integration: Direct integration with Shopify's GraphQL Admin API
- Comprehensive Error Handling: Clear error messages for API and authentication issues
- Node.js (version 18 or higher)
- A Shopify store with a custom app (see setup instructions below)
This server supports two authentication methods:
As of January 1, 2026, new Shopify apps are created in the Dev Dashboard and use OAuth client credentials instead of static access tokens.
- From your Shopify admin, go to Settings > Apps and sales channels
- Click Develop apps > Build app in dev dashboard
- Create a new app and configure Admin API scopes:
read_products,write_productsread_customers,write_customersread_orders,write_orders
- Install the app on your store
- Copy your Client ID and Client Secret from the app's API credentials
The server will automatically exchange these for an access token and refresh it before it expires (tokens are valid for ~24 hours).
If you have an existing custom app with a static shpat_ access token, you can still use it directly.
Client Credentials (recommended):
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": [
"shopify-mcp",
"--clientId",
"<YOUR_CLIENT_ID>",
"--clientSecret",
"<YOUR_CLIENT_SECRET>",
"--domain",
"<YOUR_SHOP>.myshopify.com"
]
}
}
}Static Access Token (legacy):
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": [
"shopify-mcp",
"--accessToken",
"<YOUR_ACCESS_TOKEN>",
"--domain",
"<YOUR_SHOP>.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
Client Credentials:
claude mcp add shopify -- npx shopify-mcp \
--clientId YOUR_CLIENT_ID \
--clientSecret YOUR_CLIENT_SECRET \
--domain your-store.myshopify.comStatic Access Token (legacy):
claude mcp add shopify -- npx shopify-mcp \
--accessToken YOUR_ACCESS_TOKEN \
--domain your-store.myshopify.comIf you prefer to use environment variables instead of command-line arguments:
-
Create a
.envfile with your Shopify credentials:Client Credentials:
SHOPIFY_CLIENT_ID=your_client_id SHOPIFY_CLIENT_SECRET=your_client_secret MYSHOPIFY_DOMAIN=your-store.myshopify.comStatic Access Token (legacy):
SHOPIFY_ACCESS_TOKEN=your_access_token MYSHOPIFY_DOMAIN=your-store.myshopify.com -
Run the server with npx:
npx shopify-mcp
If you want to install the package globally:
npm install -g shopify-mcp
Then run it:
shopify-mcp --clientId=<ID> --clientSecret=<SECRET> --domain=<YOUR_SHOP>.myshopify.com
--apiVersion: Specify the Shopify API version (default:2026-01). Can also be set viaSHOPIFY_API_VERSIONenvironment variable.
shopify-mcp, not shopify-mcp-server.
-
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
-
create-product- Create a new product. When using
productOptions, Shopify registers all option values but only creates one default variant (first value of each option, price $0). Usemanage-product-variantswithstrategy: REMOVE_STANDALONE_VARIANTafterward to create all real variants with prices. - Inputs:
title(string, required): Title of the productdescriptionHtml(string, optional): Description with HTMLhandle(string, optional): URL slug. Auto-generated from title if omittedvendor(string, optional): Vendor of the productproductType(string, optional): Type of the producttags(array of strings, optional): Product tagsstatus(string, optional):"ACTIVE","DRAFT", or"ARCHIVED". Default"DRAFT"seo(object, optional):{ title, description }for search enginesmetafields(array of objects, optional): Custom metafields (namespace,key,value,type)productOptions(array of objects, optional): Options to create inline, e.g.[{ name: "Size", values: [{ name: "S" }, { name: "M" }] }]. Max 3 options.collectionsToJoin(array of strings, optional): Collection GIDs to add the product to
- Create a new product. When using
-
update-product- Update an existing product's fields
- Inputs:
id(string, required): Shopify product GIDtitle(string, optional): New titledescriptionHtml(string, optional): New descriptionhandle(string, optional): New URL slugvendor(string, optional): New vendorproductType(string, optional): New product typetags(array of strings, optional): New tags (overwrites existing)status(string, optional):"ACTIVE","DRAFT", or"ARCHIVED"seo(object, optional):{ title, description }for search enginesmetafields(array of objects, optional): Metafields to set or updatecollectionsToJoin(array of strings, optional): Collection GIDs to add the product tocollectionsToLeave(array of strings, optional): Collection GIDs to remove the product fromredirectNewHandle(boolean, optional): If true, old handle redirects to new handle
-
delete-product- Delete a product
- Inputs:
id(string, required): Shopify product GID
-
manage-product-options- Create, update, or delete product options (e.g. Size, Color)
- Inputs:
productId(string, required): Shopify product GIDaction(string, required):"create","update", or"delete"- For
action: "create":options(array, required): Options to create, e.g.[{ name: "Size", values: ["S", "M", "L"] }]
- For
action: "update":optionId(string, required): Option GID to updatename(string, optional): New name for the optionposition(number, optional): New positionvaluesToAdd(array of strings, optional): Values to addvaluesToDelete(array of strings, optional): Value GIDs to remove
- For
action: "delete":optionIds(array of strings, required): Option GIDs to delete
-
manage-product-variants- Create or update product variants in bulk
- Inputs:
productId(string, required): Shopify product GIDstrategy(string, optional): How to handle the default variant when creating."DEFAULT"(removes "Default Title" automatically),"REMOVE_STANDALONE_VARIANT"(recommended for full control), or"PRESERVE_STANDALONE_VARIANT"variants(array, required): Variants to create or update. Each variant:id(string, optional): Variant GID for updates. Omit to create newprice(string, optional): Price, e.g."49.00"compareAtPrice(string, optional): Compare-at price for showing discountssku(string, optional): SKU (mapped toinventoryItem.sku)tracked(boolean, optional): Whether inventory is tracked. Setfalsefor print-on-demandtaxable(boolean, optional): Whether the variant is taxablebarcode(string, optional): BarcodeoptionValues(array, optional): Option values, e.g.[{ optionName: "Size", name: "A4" }]
-
delete-product-variants- Delete one or more variants from a product
- Inputs:
productId(string, required): Shopify product GIDvariantIds(array of strings, required): Variant GIDs to delete
-
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
-
update-customer- Update a customer's information
- Inputs:
id(string, required): Shopify customer ID (numeric ID only, like "6276879810626")firstName(string, optional): Customer's first namelastName(string, optional): Customer's last nameemail(string, optional): Customer's email addressphone(string, optional): Customer's phone numbertags(array of strings, optional): Tags to apply to the customernote(string, optional): Note about the customertaxExempt(boolean, optional): Whether the customer is exempt from taxesmetafields(array of objects, optional): Customer metafields for storing additional data
-
get-customer-orders- Get orders for a specific customer
- Inputs:
customerId(string, required): Shopify customer ID (numeric ID only, like "6276879810626")limit(optional number, default: 10): Maximum number of orders to return
-
get-orders- Get orders with optional filtering
- Inputs:
status(optional string): Filter by order statuslimit(optional number, default: 10): Maximum number of orders to return
-
get-order-by-id- Get a specific order by ID
- Inputs:
orderId(string, required): Full Shopify order ID (e.g., "gid://shopify/Order/6090960994370")
-
update-order- Update an existing order with new information
- Inputs:
id(string, required): Shopify order IDtags(array of strings, optional): New tags for the orderemail(string, optional): Update customer emailnote(string, optional): Order notescustomAttributes(array of objects, optional): Custom attributes for the ordermetafields(array of objects, optional): Order metafieldsshippingAddress(object, optional): Shipping address information
If you encounter issues, check Claude Desktop's MCP logs:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
MIT