shopify-graphql-admin-mcp
Provides full access to Shopify's Admin GraphQL API, including tools for managing products, collections, metaobjects, metafields, customers, orders, and inventory, as well as raw GraphQL execution and schema introspection.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shopify-graphql-admin-mcplist products with inventory below 10"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Shopify MCP Server
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_SECRETTools
Core
Tool | Description |
| Execute any raw GraphQL query or mutation |
| Search the live schema by keyword (types, queries, mutations) |
| Get full details for a specific type, query, or mutation |
Products
Tool | Description |
| List/search products with pagination |
| Get product by ID with variants and metafields |
| Create a new product |
| Update an existing product |
| Delete a product |
Collections
Tool | Description |
| List/search collections with pagination |
| Get collection by ID with products |
| Create a collection (manual or smart) |
| Update a collection |
| Delete a collection |
Metaobjects
Tool | Description |
| List all metaobject type definitions |
| List entries of a specific metaobject type |
| Get a single metaobject entry |
| Create a new metaobject entry |
| Update an existing metaobject entry |
| Delete a metaobject entry |
Metafields
Tool | Description |
| List metafields on any resource |
| Set (upsert) metafields on any resource |
| Delete a metafield |
Customers
Tool | Description |
| List/search customers with pagination |
| Get customer by ID with orders |
| Update customer details |
Orders
Tool | Description |
| List/search orders with pagination |
| Get order by ID with line items |
Inventory
Tool | Description |
| Get inventory levels across locations |
| Adjust inventory quantity at a location |
Required API Scopes
Configure these scopes on your app to enable all tools:
Scope | Tools |
| Products, inventory |
| Metaobjects |
| Metafields |
| Customers |
| Orders |
| Inventory adjustments |
| 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_SECRETLegacy Access Token
For existing custom apps with a shpat_ token:
npx shopify-graphql-admin-mcp \
--store mystore.myshopify.com \
--access-token shpat_xxxxxConfiguration
Flag | Env Variable | Description |
|
| Store domain (required). Accepts |
|
| Legacy access token ( |
|
| OAuth client ID |
|
| OAuth client secret |
|
| API version (default: |
Usage with Claude Code
claude mcp add shopify -- npx shopify-graphql-admin-mcp \
--store mystore.myshopify.com \
--access-token shpat_xxxxxOr 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 descriptionsThis 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 modeLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/colbymchenry/shopify-graphql-admin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server