Skip to main content

Shopify Dev MCP server

Connect your AI assistant to Shopify's development resources. The Shopify Dev Model Context Protocol (MCP) server enables your AI assistant to search Shopify docs, explore API schemas, build Functions, and get up-to-date answers about Shopify APIs.


Your AI assistant uses the MCP server to read and interact with Shopify's development resources:

  1. Ask your AI assistant to build something or help with Shopify development tasks.

  2. The assistant searches Shopify documentation and API schemas based on your prompt.

  3. The MCP server gives your AI assistant access to Shopify's development resources, so it can provide accurate code, solutions, and guidance based on current APIs and best practices.


Before you set up the Dev MCP server, make sure you have:

  • Node.js 18 or higher installed on your system.
  • An AI development tool that supports MCP, such as Cursor or Claude Desktop.

Anchor to What you can ask your AI assistantWhat you can ask your AI assistant

After you set up the MCP server, you can ask your AI assistant questions like:

  • "How do I create a product using the Admin API?"
  • "What fields are available on the Order object?"
  • "Show me an example of a webhook subscription"
  • "How do I authenticate my Shopify app?"
  • "What's the difference between Admin API and Storefront API?"

Your AI assistant will use the MCP server to search Shopify's documentation when providing responses.


The MCP server provides tools to interact with the following Shopify APIs:


The server runs locally in your development environment and doesn't require authentication.

Anchor to Step 1: Run the serverStep 1: Run the server

Open a new terminal window and run the following command. Keep this terminal window open while using the server:

Terminal

npx -y @shopify/dev-mcp@latest

Anchor to Step 2: Configure your AI development toolStep 2: Configure your AI development tool

Add configuration code that tells your AI tool how to connect to and use the Dev MCP server. This configuration enables your AI assistant to automatically access Shopify documentation, API schemas, and development guidance when you ask questions.

  1. Open Cursor and go to Cursor > Settings > Cursor Settings > Tools and integrations > New MCP server.

  2. Add this configuration to your MCP servers:

    Cursor configuration

    {
    "mcpServers": {
    "shopify-dev-mcp": {
    "command": "npx",
    "args": ["-y", "@shopify/dev-mcp@latest"]
    }
    }
    }

    Add to Cursor

    Note

    For more information, see the Cursor MCP documentation.

  3. If you see connection errors on Windows, try this alternative configuration:

    Alternative configuration for Windows

    {
    "mcpServers": {
    "shopify-dev-mcp": {
    "command": "cmd",
    "args": ["/k", "npx", "-y", "@shopify/dev-mcp@latest"]
    }
    }
    }

    Add to Cursor

    Note

    For more information, see the Cursor MCP documentation.

  1. Open Claude Desktop and access your configuration file through settings.

  2. Add this configuration to your MCP servers section:

    Claude Desktop configuration

    {
    "mcpServers": {
    "shopify-dev-mcp": {
    "command": "npx",
    "args": ["-y", "@shopify/dev-mcp@latest"]
    }
    }
    }

    Add to Cursor

    Note

    For more information, read the Claude Desktop MCP guide.

  3. Save your configuration and restart your AI development tool.

Anchor to Step 3: (Optional) Configure advanced optionsStep 3: (Optional) Configure advanced options

The Dev MCP server supports several advanced configuration options:

Anchor to Disable instrumentationDisable instrumentation

This package makes instrumentation calls to better understand how to improve the MCP server. To disable them, set the OPT_OUT_INSTRUMENTATION environment variable in Cursor or Claude Desktop:

Disable instrumentation

{
"mcpServers": {
"shopify-dev-mcp": {
"command": "npx",
"args": ["-y", "@shopify/dev-mcp@latest"],
"env": {
"OPT_OUT_INSTRUMENTATION": "true"
}
}
}
}

Add to Cursor

Anchor to Enable Polaris support (experimental)Enable Polaris support (experimental)

To show Polaris Web Components documentation in Cursor or Claude Desktop, add an env block with the POLARIS_UNIFIED flag to your MCP server configuration:

Enable Polaris support

{
"mcpServers": {
"shopify-dev-mcp": {
"command": "npx",
"args": ["-y", "@shopify/dev-mcp@latest"],
"env": {
"POLARIS_UNIFIED": "true"
}
}
}
}

Add to Cursor

Beta

This is a developer preview of Polaris Web Components. This documentation will be updated as we release new features.


The Dev MCP server provides the following tools:

Tool NameDescriptionWhen to Use
learn_shopify_apiGet up-to-date guidance on supported Shopify APIs and how to use this MCP server's tools effectively. Provides context about which API to use for your specific needs.Automatically invoked first when you ask about Shopify APIs. It provides essential context about supported APIs and generates a conversation ID for tracking usage across tool calls.
search_docs_chunksSearch across all shopify.dev documentation to find relevant information. Returns content from multiple documentation sections, but may have incomplete context due to chunking.This tool is invoked when you ask broad questions or when the assistant needs to find relevant information across multiple documentation sections. This tool searches through grouped content that allows for better token matching within smaller content pieces, but may miss some context from individual pages.
fetch_full_docsGet complete documentation for specific shopify.dev pages. Provides full context without information loss. Requires the exact documentation path.Used when complete documentation is needed for a specific API resource and the exact path is known (for example, /docs/api/admin-rest/resources/product). This provides full context without any information loss from chunking.
introspect_admin_schemaSearch and explore the Shopify Admin API GraphQL schema to understand available types, fields, queries, and mutations.Invoked when you ask about GraphQL schema structure, available fields, or API capabilities.


Was this page helpful?