Set up Shopify MCP in Claude Code
Interact with Shopify Admin GraphQL API to manage products, orders, customers, inventory, and store data from your AI editor.
1
Locate the config file
Claude Code reads MCP server configuration from the following file:
~/.claude.jsonCreate this file if it does not already exist.
2
Add the configuration
You can configure Shopify MCP using the CLI command or by editing the config file directly.
Option A: CLI command
bash
claude mcp add shopify-mcp -e SHOPIFY_ACCESS_TOKEN=YOUR_SHOPIFY_ACCESS_TOKEN -e SHOPIFY_STORE_DOMAIN=YOUR_SHOPIFY_STORE_DOMAIN -- npx -y @shopify/dev-mcpOption B: Config file
json
{
"mcpServers": {
"shopify-mcp": {
"command": "npx",
"args": [
"-y",
"@shopify/dev-mcp"
],
"env": {
"SHOPIFY_ACCESS_TOKEN": "YOUR_SHOPIFY_ACCESS_TOKEN",
"SHOPIFY_STORE_DOMAIN": "YOUR_SHOPIFY_STORE_DOMAIN"
}
}
}
}3
Set up environment variables
Shopify MCP requires the following environment variables:
SHOPIFY_ACCESS_TOKENRequiredShopify Admin API access token
SHOPIFY_STORE_DOMAINRequiredYour Shopify store domain (e.g. my-store.myshopify.com)
4
Verify it works
Restart Claude Code. Shopify MCP should appear in your MCP server list with 12 tools available.
This server adds approximately 6,180 tokens to your context window for tool definitions.