shopify-admin-mcp
Production-grade MCP server for the Shopify Admin GraphQL API, exposing typed tools for AI agents to manage products, orders, customers, and more.
README
shopify-admin-mcp
Production-grade MCP server for the Shopify Admin GraphQL API. It exposes typed, schema-driven tools for AI agents and is structured so quarterly Shopify API upgrades are mechanical: update the API version, pull the new schema, regenerate types, and let TypeScript surface any broken operations.
Status
Client credentials authentication for Shopify Dev Dashboard apps is implemented, and legacy custom app access tokens are still supported.
On April 2, 2026, Shopify's live Admin GraphQL endpoint rejected 2025-04 as an invalid version, so this repository defaults to 2025-07 even though older examples in the original spec referenced 2025-04.
Features
- ESM-only TypeScript with
strict: true - Committed Admin GraphQL SDL in
src/schema/admin.graphql - Generated operation types via
@shopify/api-codegen-preset - Cost-aware throttling with automatic retry on
THROTTLED - Zod-validated MCP tool inputs with field descriptions for agents
- Domain-focused tools for products, orders, customers, inventory, collections, fulfillment, discounts, metafields, webhooks, bulk operations, shop metadata, and files
- Stdio transport for Claude Desktop, Cursor, and other MCP hosts
Install
npm install
npm run generate-types
npm run build
Configuration
Dev Dashboard App Credentials
SHOPIFY_STORE=my-store.myshopify.com
SHOPIFY_API_VERSION=2025-07
SHOPIFY_CLIENT_ID=your_api_key
SHOPIFY_CLIENT_SECRET=your_api_secret
This is the recommended setup for Shopify's current Dev Dashboard apps. The server exchanges SHOPIFY_CLIENT_ID and SHOPIFY_CLIENT_SECRET for a 24-hour Admin API token automatically and renews it when needed.
Legacy Custom App Token
SHOPIFY_STORE=my-store.myshopify.com
SHOPIFY_API_VERSION=2025-07
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
This path still works, but it is no longer the best default for shared installs.
Usage
Run directly:
SHOPIFY_STORE=my-store.myshopify.com \
SHOPIFY_API_VERSION=2025-07 \
SHOPIFY_CLIENT_ID=your_api_key \
SHOPIFY_CLIENT_SECRET=your_api_secret \
npx shopify-admin-mcp
Claude Desktop configuration:
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": ["-y", "shopify-admin-mcp"],
"env": {
"SHOPIFY_STORE": "my-store.myshopify.com",
"SHOPIFY_API_VERSION": "2025-07",
"SHOPIFY_CLIENT_ID": "your_api_key",
"SHOPIFY_CLIENT_SECRET": "your_api_secret"
}
}
}
}
Claude Code
This repo now includes both a project-level Claude skill and a distributable Claude plugin.
Project skill
The repo-local skill lives at .claude/skills/shopify-admin/SKILL.md. When you open this repository in Claude Code, the skill is available for project-scoped Shopify work as /shopify-admin.
Personal plugin
The Claude plugin bundle lives at plugins/claude-shopify-admin with manifest metadata in plugins/claude-shopify-admin/.claude-plugin/plugin.json. It ships:
- the
shopifyMCP server viaplugins/claude-shopify-admin/.mcp.json - a plugin skill available as
/shopify-admin:workflow - prompted user configuration for
shopify_store,shopify_client_id,shopify_client_secret, andshopify_api_version
The repository also includes a Claude marketplace at .claude-plugin/marketplace.json and a repo-level hint in .claude/settings.json so Claude can discover the marketplace from GitHub.
Install it as a personal Claude plugin:
claude plugin marketplace add ChaseWNorton/shopify-admin-mcp
claude plugin install shopify-admin@chasewnorton-tools --scope user
For local plugin testing without installing:
claude --plugin-dir ./plugins/claude-shopify-admin
Codex Plugin
A repo-local Codex plugin wrapper is included at plugins/shopify-admin/.codex-plugin/plugin.json with MCP wiring in plugins/shopify-admin/.mcp.json.
The plugin also includes a Codex skill at plugins/shopify-admin/skills/shopify-admin/SKILL.md, so Codex can explicitly use $shopify-admin for Shopify Admin workflows instead of relying on raw tool names alone.
To share it with your team:
- Publish this package to npm as
shopify-admin-mcp. - Share the
plugins/shopify-adminfolder and, if you want marketplace discovery,.agents/plugins/marketplace.json. - Have each user set their own Shopify values in
plugins/shopify-admin/.mcp.json:
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": ["-y", "shopify-admin-mcp"],
"env": {
"SHOPIFY_STORE": "my-store.myshopify.com",
"SHOPIFY_API_VERSION": "2025-07",
"SHOPIFY_CLIENT_ID": "your_api_key",
"SHOPIFY_CLIENT_SECRET": "your_api_secret"
}
}
}
}
The plugin intentionally uses bring-your-own Shopify credentials. No shared client secret or access token should be committed to the plugin.
Publish
Publish the MCP package first, then point the Codex plugin at that npm package.
npm run build
npm test
npm pack --dry-run
npm publish
After publish, verify the package resolves:
npx -y shopify-admin-mcp
The npm package only ships runtime assets from dist/ plus the top-level docs and example env file.
Tool Surface
The server registers tools from these domains:
productsorderscustomersinventorycollectionsfulfillmentdiscountsmetafieldswebhooksbulkshopfiles
All tool names are prefixed with shopify_.
Scripts
npm run build: compilesrc/intodist/npm run typecheck: runtsc --noEmitnpm test: run the Vitest suitenpm run pull-schema: download the live SDL for the configured store and API versionnpm run generate-types: run GraphQL code generationnpm run upgrade-api -- <version>: bumpAPI_VERSION, pull the new schema, regenerate types, and typecheck the repo
Upgrade Flow
Quarterly upgrade flow:
npm run upgrade-api -- 2025-10- Fix any type errors caused by schema changes.
- Re-run
npm run buildandnpm test. - Commit the updated schema, generated types, and operation fixes together.
The key contract files are:
Verification
npm run build
npm run typecheck
npm test
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | node dist/index.js
With real store credentials:
SHOPIFY_STORE=your-dev-store.myshopify.com \
SHOPIFY_API_VERSION=2025-07 \
SHOPIFY_CLIENT_ID=your_api_key \
SHOPIFY_CLIENT_SECRET=your_api_secret \
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"shopify_get_shop","arguments":{}}}' | node dist/index.js
Repository Layout
src/
auth.ts
client.ts
index.ts
server.ts
throttle.ts
generated/
operations/
schema/
tools/
scripts/
tests/
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。