mcp-shopify-admin
Connects an AI assistant to a Shopify store's admin via the Admin API (GraphQL), providing tools to manage products, variants, prices, orders, customers, inventory, locations, and discounts, as well as arbitrary GraphQL queries.
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., "@mcp-shopify-adminCreate a 20% discount code for summer."
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 Admin MCP
English | Русский
A1 Shopify Admin MCP connects AI applications to one Shopify store through the Admin GraphQL API. Ask in plain language about products, orders, customers, inventory, discounts, and shop data; the assistant uses the server's ready-made tools and shows the result.
One store per server. The store domain and access token come from configuration; tools cannot switch to another store.
16 focused tools. Read shop data, products, orders, customers, locations, inventory, and discounts, plus create or update the supported records.
GraphQL failures are surfaced. Shopify can return HTTP 200 for a failed mutation, so the server checks
userErrorsand rejects empty or malformed GraphQL responses.Cost-aware responses. Every result includes the GraphQL cost bucket: the cost of the request and the points currently available for the next calls.
Risk is visible. Reads are read-only; product, price, inventory, and discount writes are explicit; order cancellation and arbitrary GraphQL are marked destructive.
Start with a read-only request:
Show the latest orders and the products that currently have inventory.
Connect the server · Explore use cases · Open technical documentation
See it work in a minute
You: Show the latest orders and the products that currently have inventory.
Assistant: Shows recent orders with their statuses and totals, then products with prices and inventory. Nothing changes.
You: Prepare a 20% discount code called
SUMMERfor two weeks.Assistant: Shows the proposed code, percentage, dates, and limits, then asks for confirmation before creating it.
You: Confirm.
Related MCP server: Shopify Store MCP Server
Contents
Quick start
You need Node.js 20+, a store domain such as my-store.myshopify.com, and a valid Shopify Admin API access token. This server accepts a ready-to-use token through SHOPIFY_ACCESS_TOKEN; it does not perform OAuth, client-credentials exchange, or token refresh.
Get access and prepare a current Admin API access token.
Add the MCP server to your AI application.
Send the safe request from the opening section.
The server runs locally over stdio through npx. Browser-only ChatGPT and Claude web sessions cannot start a local stdio process directly.
Through the app:
Open Settings → Plugins → MCP servers.
Select Add server.
Add
npx -y mcp-shopify-admin@latestand setSHOPIFY_STORE_DOMAINandSHOPIFY_ACCESS_TOKEN.
Through the CLI:
codex mcp add shopify-admin \
--env SHOPIFY_STORE_DOMAIN=my-store.myshopify.com \
--env SHOPIFY_ACCESS_TOKEN=shpat_your_token \
-- npx -y mcp-shopify-admin@latest
codex mcp listclaude mcp add \
--env SHOPIFY_STORE_DOMAIN=my-store.myshopify.com \
--env SHOPIFY_ACCESS_TOKEN=shpat_your_token \
--transport stdio --scope user shopify-admin \
-- npx -y mcp-shopify-admin@latest
claude mcp listOpen Settings → Developer → Edit Config and add:
{
"mcpServers": {
"shopify-admin": {
"command": "npx",
"args": ["-y", "mcp-shopify-admin@latest"],
"env": {
"SHOPIFY_STORE_DOMAIN": "my-store.myshopify.com",
"SHOPIFY_ACCESS_TOKEN": "shpat_your_token"
}
}
}
}If Edit Config is not available, edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows.
Claude Desktop MCP documentation
Add this server to ~/.cursor/mcp.json on macOS/Linux or %USERPROFILE%\.cursor\mcp.json on Windows:
{
"mcpServers": {
"shopify-admin": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-shopify-admin@latest"],
"env": {
"SHOPIFY_STORE_DOMAIN": "my-store.myshopify.com",
"SHOPIFY_ACCESS_TOKEN": "shpat_your_token"
}
}
}
}Run MCP: Open User Configuration and add:
{
"inputs": [
{
"type": "promptString",
"id": "shopify_store_domain",
"description": "Shopify store domain, for example my-store.myshopify.com"
},
{
"type": "promptString",
"id": "shopify_access_token",
"description": "Shopify Admin API access token",
"password": true
}
],
"servers": {
"shopify-admin": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-shopify-admin@latest"],
"env": {
"SHOPIFY_STORE_DOMAIN": "${input:shopify_store_domain}",
"SHOPIFY_ACCESS_TOKEN": "${input:shopify_access_token}"
}
}
}
}Check the server with MCP: List Servers.
What you can ask it to do
Inspect the store. Show shop details, locations, products, orders, customers, or discounts.
Work with products. Create a product draft, update product fields, or change variant prices.
Track inventory. Find locations and set the absolute available quantity for inventory items.
Review orders. Search orders, inspect a complete order, or cancel an eligible order with explicit refund and restock choices.
Manage discounts. List existing discounts or create a basic code discount.
Use the escape hatch. Run an arbitrary Admin GraphQL document for capabilities that do not have a dedicated tool.
What can change in Shopify
Operation | What happens | Data boundary |
Shop, products, orders, customers, locations, discounts | Reads store data | Read-only |
Product fields or variant prices | Replaces the fields supplied in the request | Changes the storefront data |
Inventory quantities | Sets the absolute available quantity | Changes product availability |
Product or discount creation | Creates a new Shopify object | Creates data and cannot be undone automatically |
Order cancellation | Cancels an order and can refund and/or restock | Destructive and irreversible |
| Can run any Admin API query or mutation | Potentially destructive |
This server does not provide dedicated tools for creating orders, fulfillment, customer writes, variant creation, media, targeted discounts, or publishing products to sales channels. Use graphql_request only when you understand the document and its userErrors response.
The AI client may ask for confirmation before a write, but confirmation behavior belongs to that client. A clear request to create, update, set, or cancel authorizes the corresponding server operation.
Getting access
This server currently takes a ready-to-use Admin API access token. It does not accept a client ID and secret, and it does not refresh expiring tokens.
Existing admin-created custom apps
Existing admin-created custom apps continue to work, but Shopify no longer allows new admin-created custom apps to be created in the Shopify admin. If you already maintain one:
Open the app in the Shopify admin.
Confirm the required Admin API access scopes, such as
read_products,write_products,read_orders,read_customers,read_locations,write_inventory,read_discounts, andwrite_discounts.Install or reinstall the app if Shopify asks you to generate credentials.
Use the issued Admin API access token as
SHOPIFY_ACCESS_TOKEN.
See Shopify's legacy admin-created custom app documentation.
New apps
For a new integration, use the Shopify Dev Dashboard or Shopify CLI. Dev Dashboard apps use an OAuth-based flow; for stores in your own Shopify organization, the client credentials grant exchanges a client ID and secret for an access token that expires after 24 hours. Token acquisition and refresh are outside this MCP server, so renew the token externally before restarting the server.
Treat every token as a password and never commit it to Git. For safe testing, use a Shopify development store.
Configuration
Variable | Required | Description |
| Yes* | Permanent store host such as |
| Yes* | Ready-to-use Shopify Admin API access token. The server sends it in |
| No | Quarterly |
| No | Full |
| No | Per-request timeout; default: |
| No | Retries for |
* SHOPIFY_API_BASE can replace the store domain for local tests, but a real Shopify request still needs SHOPIFY_ACCESS_TOKEN.
Data, limits, and background work
GraphQL cost bucket. Every result exposes
actualQueryCost,currentlyAvailable,maximumAvailable, andrestoreRatewhen Shopify provides them. A page withfirstup to 250 is usually cheaper than many small pages.Retries are asymmetric.
THROTTLEDand HTTP 429 are retried with the wait Shopify reports. 5xx and network errors are retried only for reads; mutations are not replayed after those failures.Order history. Orders older than 60 days require the
read_all_ordersscope; without it, Shopify does not return them.No background monitoring. The server works when called. If your AI application supports scheduled tasks, it can periodically check orders or inventory.
Anonymous telemetry. The server sends technical installation and tool-use events without secrets, store data, arguments, or prompts. Disable it for all Ask Ads MCP servers with
ASKADS_TELEMETRY=0.
Technical documentation
Capability catalog — one task-oriented page for each of the 16 tools.
Support
Found a bug or missing scenario? Create an issue or contact us on Telegram.
Maintenance
Related MCP Servers
- AlicenseDqualityDmaintenanceEnables interaction with Shopify stores through the GraphQL Admin API. Supports product management, customer data, order queries, blog/article management, and store-wide search capabilities through natural language.15112MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with live Shopify stores through Admin and Storefront APIs for tasks like GraphQL execution, bulk operations, and file uploads. It includes built-in rate limiting and operation logging to manage store data and schema discovery securely.113ISC
- FlicenseAqualityCmaintenanceExposes Shopify Admin API capabilities to LLMs, enabling product, order, customer, and inventory management via natural language.491
- AlicenseAqualityCmaintenanceEnables AI agents to read and write Shopify store data including products, orders, customers, inventory, and more via the Admin GraphQL API.2858MIT
Related MCP Connectors
Manage your NanoCart store from any AI agent: products, orders, coupons, subscribers, reports.
Shopify MCP Pack — wraps the Shopify Admin REST API (2024-01)
Manage your Savanto store from your AI: catalog, content, prompts, and analytics, by chat.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/A1-x-Tech/mcp-shopify-admin'
If you have feedback or need assistance with the MCP directory API, please join our Discord server