shopify-graphql-admin-mcp
Enables full interaction with Shopify's Admin GraphQL API, including raw queries, schema exploration, and CRUD operations for products, collections, customers, and more.
README
shopify-graphql-admin-mcp
MCP server providing full access to Shopify's Admin GraphQL API. Introspects the live schema on startup so it's always up-to-date with the latest API version — no stale docs, no embeddings needed.
Features
- Raw GraphQL execution — run any query or mutation against the Admin API
- Live schema introspection — search and explore the full GraphQL schema (2,700+ types) directly from your AI assistant
- 29 convenience tools — typed, no-GraphQL-needed CRUD for products, collections, metaobjects, metafields, customers, orders, and inventory
- Dual auth — supports both OAuth client credentials (new Dev Dashboard apps) and legacy access tokens (
shpat_) - Auto token refresh — OAuth tokens are refreshed automatically before expiry
Quick Start
# With a legacy access token
npx shopify-graphql-admin-mcp --store mystore.myshopify.com --access-token shpat_xxxxx
# With OAuth client credentials (Dev Dashboard app)
npx shopify-graphql-admin-mcp --store mystore.myshopify.com --client-id YOUR_ID --client-secret YOUR_SECRET
Tools
Core
| Tool | Description |
|---|---|
shopify_graphql |
Execute any raw GraphQL query or mutation |
shopify_schema_search |
Search the live schema by keyword (types, queries, mutations) |
shopify_schema_details |
Get full details for a specific type, query, or mutation |
Products
| Tool | Description |
|---|---|
shopify_products_list |
List/search products with pagination |
shopify_product_get |
Get product by ID with variants and metafields |
shopify_product_create |
Create a new product |
shopify_product_update |
Update an existing product |
shopify_product_delete |
Delete a product |
Collections
| Tool | Description |
|---|---|
shopify_collections_list |
List/search collections with pagination |
shopify_collection_get |
Get collection by ID with products |
shopify_collection_create |
Create a collection (manual or smart) |
shopify_collection_update |
Update a collection |
shopify_collection_delete |
Delete a collection |
Metaobjects
| Tool | Description |
|---|---|
shopify_metaobject_definitions_list |
List all metaobject type definitions |
shopify_metaobjects_list |
List entries of a specific metaobject type |
shopify_metaobject_get |
Get a single metaobject entry |
shopify_metaobject_create |
Create a new metaobject entry |
shopify_metaobject_update |
Update an existing metaobject entry |
shopify_metaobject_delete |
Delete a metaobject entry |
Metafields
| Tool | Description |
|---|---|
shopify_metafields_list |
List metafields on any resource |
shopify_metafields_set |
Set (upsert) metafields on any resource |
shopify_metafield_delete |
Delete a metafield |
Customers
| Tool | Description |
|---|---|
shopify_customers_list |
List/search customers with pagination |
shopify_customer_get |
Get customer by ID with orders |
shopify_customer_update |
Update customer details |
Orders
| Tool | Description |
|---|---|
shopify_orders_list |
List/search orders with pagination |
shopify_order_get |
Get order by ID with line items |
Inventory
| Tool | Description |
|---|---|
shopify_inventory_get_levels |
Get inventory levels across locations |
shopify_inventory_adjust |
Adjust inventory quantity at a location |
Required API Scopes
Configure these scopes on your app to enable all tools:
| Scope | Tools |
|---|---|
read_products, write_products |
Products, inventory |
read_metaobjects, write_metaobjects |
Metaobjects |
read_content, write_content |
Metafields |
read_customers, write_customers |
Customers |
read_orders |
Orders |
read_inventory, write_inventory |
Inventory adjustments |
read_product_listings |
Product listings |
You only need scopes for the tools you plan to use. At minimum for schema introspection and raw GraphQL to work, you need at least one read scope.
Authentication
OAuth Client Credentials (recommended)
For apps created in the Shopify Dev Dashboard:
- Create an app in the Dev Dashboard
- Configure the Admin API scopes listed above
- Release a version and install the app on your store
- Use the Client ID and Client Secret:
npx shopify-graphql-admin-mcp \
--store mystore.myshopify.com \
--client-id YOUR_CLIENT_ID \
--client-secret YOUR_CLIENT_SECRET
Legacy Access Token
For existing custom apps with a shpat_ token:
npx shopify-graphql-admin-mcp \
--store mystore.myshopify.com \
--access-token shpat_xxxxx
Configuration
| Flag | Env Variable | Description |
|---|---|---|
--store |
SHOPIFY_STORE |
Store domain (required). Accepts mystore or mystore.myshopify.com |
--access-token |
SHOPIFY_ACCESS_TOKEN |
Legacy access token (shpat_...) |
--client-id |
SHOPIFY_CLIENT_ID |
OAuth client ID |
--client-secret |
SHOPIFY_CLIENT_SECRET |
OAuth client secret |
--api-version |
SHOPIFY_API_VERSION |
API version (default: 2025-01) |
Usage with Claude Code
claude mcp add shopify -- npx shopify-graphql-admin-mcp \
--store mystore.myshopify.com \
--access-token shpat_xxxxx
Or add to your project's .claude.json:
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": [
"shopify-graphql-admin-mcp",
"--store", "mystore.myshopify.com",
"--access-token", "shpat_xxxxx"
]
}
}
}
Usage with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"shopify": {
"command": "npx",
"args": [
"shopify-graphql-admin-mcp",
"--store", "mystore.myshopify.com",
"--access-token", "shpat_xxxxx"
]
}
}
}
Schema Exploration
The killer feature: the server introspects Shopify's live GraphQL schema on startup, so your AI assistant can discover API capabilities in real-time.
You: "What mutations are available for metaobjects?"
→ AI uses shopify_schema_search with query "metaobject" filter "mutations"
→ Returns: metaobjectCreate, metaobjectUpdate, metaobjectDelete, metaobjectUpsert, ...
You: "What fields does MetaobjectCreateInput take?"
→ AI uses shopify_schema_details with name "MetaobjectCreateInput"
→ Returns: full type definition with all fields, types, and descriptions
This means the server works correctly even when Shopify releases new API versions — no code changes needed.
Development
git clone https://github.com/colbymchenry/shopify-graphql-admin-mcp.git
cd shopify-graphql-admin-mcp
npm install
npm run build
npm run dev # watch mode
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。