Set up Shopify MCP in Cursor
Interact with Shopify Admin GraphQL API to manage products, orders, customers, inventory, and store data from your AI editor.
1
Locate the config file
Cursor reads MCP server configuration from the following file:
.cursor/mcp.jsonCreate this file if it does not already exist.
2
Add the configuration
Add the following to your Cursor 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 Cursor. 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.