MCP Ecommerce

Shopify

Shopify MCP Codex, Docker and Claude Code Setup Guide

By , Editor, MCP Ecommerce · Published · 7 min read

Content creator in a mustard sweater adjusts ring lights and a camera on a tripod in a studio with white curtains and makeup products

The short answer

Yes. Shopify publishes an official Dev MCP server, the npm package @shopify/dev-mcp. It runs locally and works with Claude Code, Codex, Cursor, VS Code and Gemini CLI. It searches Shopify documentation and validates code, but it does not read or change store data. Docker offers a catalog image of the same server. Confirm commands in Shopify's docs before use.

Yes, Shopify has an official MCP server for coding tools such as Claude Code and Codex. It is called Dev MCP, and it is published as the npm package @shopify/dev-mcp. This guide covers the shopify mcp codex docker setups side by side, so you can pick the one that fits your environment.

One point first, because it causes most of the confusion: MCP (Model Context Protocol) is an open standard that lets AI assistants connect to external tools and data. Dev MCP uses it to give a coding assistant access to Shopify's developer documentation and code checks. It is not a connection to your store's orders, products or live theme.

What does the Shopify Dev MCP server do?

Dev MCP is a documentation and validation server for people who build on Shopify: theme developers, app developers and agencies writing custom code.

According to the research behind this article, it can:

  • Search Shopify developer documentation.
  • Look up API schemas.
  • Validate code, including Liquid templates, UI extensions and Shopify Functions, against current platform rules.

It runs locally over stdio (the assistant starts it as a local process on your machine). It needs no store login for documentation work, although it still makes network calls to Shopify endpoints to search the docs.

What it cannot do:

  • Read or edit products, orders, customers or pages.
  • Publish a theme.
  • Act as a shopping agent for buyers.

Shopify also runs separate store-facing MCP servers (Storefront, Catalog, Cart, Checkout, Customer Accounts, Order) for shopping agents. Those are a different product. For the split, see Shopify MCP Server: What Dev MCP and Storefront MCP Do.

What do you need before you start?

  • A supported client: Claude Code, Codex, Cursor, VS Code, Gemini CLI or Claude Desktop.
  • Node.js 18 or later for the npx route. One source says the Shopify CLI itself needs a newer Node version (22.12 or later), so check the requirements of any CLI you also install.
  • Docker Desktop 4.43 or later, only if you use the Docker catalog route.
  • A project folder where you want the server to be available.

No Shopify store credentials are needed for Dev MCP.

Shopify MCP server npm: what is the package?

The package name is @shopify/dev-mcp. Every command below runs it through npx, which downloads and starts the package without a permanent install. The @latest tag means you get the newest release each time.

Be careful with package names. At least one third-party guide shows @anthropic-ai/shopify-dev-mcp. That conflicts with the name used by Shopify and nearly every other source, so do not use it. Check the current version and publisher on npm before you run anything.

How do you set it up in Claude Code?

  1. Open a terminal in your project.
  2. Run the add command: claude mcp add --transport stdio shopify-dev-mcp -- npx -y @shopify/dev-mcp@latest
  3. Restart Claude Code.
  4. Run /mcp inside Claude Code, or claude mcp list in the terminal, to confirm the server shows as connected.
  5. Ask a documentation question, such as how a specific Liquid object works, and check that the answer cites Shopify docs.

To share the setup with a team, Claude Code supports project-scoped configuration through a .mcp.json file checked into the repository. Because the server needs no secrets, this is low risk. Never commit tokens to that file if you later add a store-connected server.

There is also a plugin route through the Shopify AI Toolkit, covered below. For more editor-specific detail, see Shopify MCP Server Setup in Claude Code, Cursor and VS Code.

How do you set up Shopify MCP in Codex?

Codex (OpenAI's coding agent, available as a CLI and IDE extension) uses TOML configuration, not JSON. That is the most common reason a copied Cursor snippet fails.

Option A, from the command line:

codex mcp add shopify-dev-mcp -- npx -y @shopify/dev-mcp@latest

Option B, edit ~/.codex/config.toml by hand:

[mcp_servers.shopify-dev-mcp]
command = "npx"
args = ["-y", "@shopify/dev-mcp@latest"]

Then restart Codex, because the config is only loaded at startup. A project-level .codex/config.toml is supported inside a trusted project. One third-party example adds default_tools_approval_mode = "prompt" so Codex asks before each tool call. Verify that setting name in the Codex documentation before relying on it.

Plugins are reportedly not available in the IDE extension, while MCP servers in config.toml are. If you use the IDE, prefer the manual config.

How do you set it up in Cursor, VS Code, Gemini CLI or Claude Desktop?

These tools use JSON with the same server block:

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

Where it goes:

  • Cursor: .cursor/mcp.json in the project.
  • VS Code: its MCP configuration file, which takes the same shape (check the current VS Code docs for the exact file and top-level key).
  • Gemini CLI: its JSON settings file.
  • Claude Desktop: claude_desktop_config.json. See Claude Desktop MCP Setup on Windows and Mac: Merchant Guide for file locations.

Note the top-level key differs by tool (mcpServers in some, servers in others). Copy the wrapper from the tool's own docs and paste only the inner block.

Shopify MCP server Docker: how does it work?

Docker lists a "Shopify" entry in its MCP Catalog. It is a Docker-built, signed entry described as the Shopify.dev MCP server, with 5 tools. Automatic adding needs Docker Desktop 4.43 or later. The related Docker Hub image is mcp/shopify, built from the Shopify/dev-mcp repository.

Two ways to use it:

  1. Docker Desktop MCP Toolkit: enable the Shopify server from the catalog, then connect your client to it.
  2. Manual config: for Claude Desktop, use docker as the command with arguments like run -i --rm mcp/shopify@sha256:..., where the digest comes from the catalog page. For VS Code, the catalog page describes running the Docker MCP gateway with docker mcp gateway run.

Docker is useful when you do not want Node installed on a machine, or when a team wants a pinned, signed image. The trade-off is freshness. At the time of the research snapshot, the Docker Hub image was months old, and its tool names looked older than the current npm package. If you need the newest docs and validation behavior, the npx route is more likely to be current. Check the image date on Docker Hub.

Shopify MCP server GitHub: where is the code?

The source for Dev MCP is the Shopify/dev-mcp repository on GitHub. The newer Shopify AI Toolkit lives in Shopify/shopify-ai-toolkit. Read the repository README and recent releases before installing, particularly for environment variables.

One older third-party guide lists optional settings such as LIQUID_VALIDATION_MODE (full or partial), POLARIS_UNIFIED=true (Polaris docs, described as early access) and OPT_OUT_INSTRUMENTATION=true. That guide was months old, so treat these as unverified until you see them in the README.

What is the Shopify AI Toolkit and should you use it?

The AI Toolkit is a newer wrapper that bundles the Dev MCP server with skills (reusable instructions for the assistant). Reported install routes:

  • Claude Code: claude plugin install shopify-ai-toolkit@claude-plugins-official, or add the marketplace with /plugin marketplace add Shopify/shopify-ai-toolkit.
  • Codex: codex plugin add shopify@openai-curated.
  • Other tools: npx skills add Shopify/shopify-ai-toolkit for the skills.

The plugin reportedly keeps its configuration updated automatically. These commands come from third-party guides, so confirm them at shopify.dev/docs/agents and in the repository.

For private store data or approved changes, the toolkit route uses shopify store auth --store <domain> --scopes <list>. That is where real store access begins, so it needs the care described below.

Which setup should you pick?

Setup Best for Format Main limit
npx (@shopify/dev-mcp) Most developers Command or JSON/TOML Needs Node.js
Docker catalog Teams wanting pinned images Docker Desktop or docker run Image may lag npm
AI Toolkit plugin Claude Code or Codex users wanting skills Plugin install Plugin availability varies by client
Manual JSON or TOML Cursor, VS Code, Gemini CLI, IDEs Config file Wrong format is easy

What can go wrong?

  • Server not showing up: most clients read config only at startup. Restart, then check /mcp or the equivalent.
  • Wrong config format: Codex needs TOML with mcp_servers. Others need JSON.
  • Wrong package name: use @shopify/dev-mcp.
  • Old Docker image: older tool names or behavior than the npm version.
  • Node version: npx fails on very old Node. Use 18 or later.
  • Expecting store access: Dev MCP cannot list your orders. If you want that, you need a different server and explicit authorization.
  • Telemetry: reportedly on by default, with opt-outs documented by Shopify. Read the docs if your company policy cares.

Is it safe?

Dev MCP on its own is low risk because it is documentation and validation only. The risk grows when you add store authentication. Start read-only: request the smallest scopes you need, use a development store first, and keep the assistant's approval prompts on so you see each action. For a fuller checklist, read MCP Security: Is MCP Safe for Your Store? A Merchant Checklist.

Frequently asked questions

+

Does Shopify have an MCP server for Claude Code?

Yes. Shopify publishes the Dev MCP server as the npm package @shopify/dev-mcp. In Claude Code you add it with a claude mcp add command that runs it through npx, then restart and check with /mcp. It provides documentation search and code validation. It does not give Claude access to your store's orders or products.

+

How do I add the Shopify MCP server to Codex?

Run codex mcp add shopify-dev-mcp -- npx -y @shopify/dev-mcp@latest, or add an mcp_servers.shopify-dev-mcp table to ~/.codex/config.toml with command npx and the same arguments. Codex uses TOML, not JSON, and only reads the config at startup, so restart it afterward.

+

Is there a Shopify MCP server Docker image?

Yes. Docker's MCP Catalog lists a Docker-built Shopify entry for the Shopify.dev server, and Docker Hub has an mcp/shopify image. Automatic adding needs Docker Desktop 4.43 or later. The image may be older than the npm package, so check its update date and compare behavior if you need the newest features.

+

Where is the Shopify MCP server on GitHub and npm?

The code is in the Shopify/dev-mcp repository on GitHub, and the package on npm is @shopify/dev-mcp. The newer Shopify AI Toolkit is in Shopify/shopify-ai-toolkit. Avoid look-alike package names such as @anthropic-ai/shopify-dev-mcp, which conflicts with Shopify's own name, and check the publisher and version on npm.

+

Can Dev MCP edit my Shopify store or theme?

No. Dev MCP searches documentation, looks up API schemas and validates code. It does not change products, pages or a live theme by itself. Store operations need separate authentication, such as the Shopify CLI store auth step, and should start with narrow, read-only scopes on a development store.

Sources

Questions and answers

Questions readers and searchers ask about this guide, answered by the site editor from the vendor documentation, plus reader experience. Every comment is reviewed before it appears.

Ask a question or share what worked

Reviewed before publishing. One link max, no HTML.

Keep reading