Shopify MCP Server
This MCP server gives Claude read/write access to a Shopify store via the Admin GraphQL API, covering store info, products, orders, customers, inventory, and discount codes.
Store info — get the store's name, domain, currency, and plan.
Products — list/search products, fetch full details (description, images, variants), and update a product's title, description, or status (ACTIVE/DRAFT/ARCHIVED).
Pricing — update a variant's price and optional compare-at price.
Orders — list/search recent orders and get full details (line items, shipping address, totals).
Customers — list/search customers and view a customer's profile with their recent orders.
Inventory — list locations and adjust a variant's available stock by a positive or negative delta.
Discounts — create percentage or fixed-amount discount codes with optional start/end dates and one-use-per-customer limits.
Read tools accept Shopify search syntax (e.g.
status:active,fulfillment_status:unfulfilled), and IDs may be bare numbers orgid://shopify/...form.Note: the README also documents automatic-discount tools (
list-discounts,create-automatic-discount,update-automatic-discount) that do not appear in this schema.
Allows interaction with a Shopify store through the Admin GraphQL API, providing tools for managing products, variants, orders, customers, inventory locations, and discount codes.
Click on "Deploy 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 MCP Server Create a 20% off discount code for new customers"
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 MCP Server
An MCP (Model Context Protocol) server that gives Claude access to your Shopify store through the Shopify Admin GraphQL API.
It runs in two modes from the same codebase:
Remote (HTTP) — deploy it to any host and add it to claude.ai as a custom connector, so it works from the web and mobile apps everywhere. See Use from claude.ai.
Local (stdio) — run it on your machine for Claude Desktop or Claude Code.
Tools
Tool | What it does |
| Store name, domain, currency, and plan |
| List/search products |
| Full product details (description, images, variants) |
| Change a product's title, description, or status |
| Change a variant's price / compare-at price |
| List/search recent orders |
| Full order details (line items, address, totals) |
| List/search customers |
| A customer's profile and recent orders |
| List inventory locations |
| Add or remove available stock for a variant |
| List automatic and code discounts with amounts, minimums, products, purchase type, and combination settings |
| Create an automatic amount-off-products discount (per item or per order, products/collections, minimums, purchase type, combinations) |
| Change an existing automatic discount's amount, per-item setting, minimum, purchase type, combinations, or dates |
| Create a percentage or fixed-amount discount code |
Read tools accept Shopify search query syntax (e.g. status:active, fulfillment_status:unfulfilled, created_at:>2026-01-01) and IDs may be given as bare numbers or full gid://shopify/... IDs.
Related MCP server: MCP Shopify
Get Shopify API credentials
Both modes need Admin API credentials. There are two kinds, depending on how your app was created; the server supports both.
Dev Dashboard app (current Shopify flow)
Shopify has deprecated creating custom apps inside the store admin — new apps are created in the Dev Dashboard and authenticate with a client ID/secret. The server exchanges these for access tokens automatically (client credentials grant) and refreshes them before their 24-hour expiry.
In the Dev Dashboard, create an app (the "API-only, no admin UI" path is a good fit).
Configure the Admin API access scopes you want the server to have:
read_products,write_productsread_ordersread_customersread_inventory,write_inventoryread_discounts,write_discountsread_locations
(Only grant
write_*scopes if you want Claude to be able to make changes. Scopes lock at install time — changing them later means releasing a new version and reinstalling.)From the app's Home panel, use Install app to install it on your store.
In the app's Settings, copy the Client ID and Client secret. These become the
SHOPIFY_CLIENT_IDandSHOPIFY_CLIENT_SECRETenvironment variables.
Note: the client credentials grant only works for apps created by your own organization and installed on your own store — which is exactly this setup.
Legacy admin custom app
If your store still has an app under Settings → Apps and sales channels → Develop apps with an Admin API access token (starts with shpat_), you can use that instead: set it as SHOPIFY_ACCESS_TOKEN and skip the client ID/secret.
Use from claude.ai (web + mobile)
To always have access without a desktop machine, deploy the server somewhere public and connect it as a custom connector.
1. Deploy the server
Any Node.js host works. The repo includes a Dockerfile, so container platforms like Railway, Render, or Fly.io can deploy it straight from GitHub with no extra config. Set these environment variables on the host:
Variable | Value |
|
|
| Dev Dashboard app client ID (see above) |
| Dev Dashboard app client secret |
| A long random secret, e.g. from |
(For a legacy admin custom app, set SHOPIFY_ACCESS_TOKEN instead of the client ID/secret.)
The container listens on PORT (default 3000) and serves:
/mcp/<MCP_AUTH_TOKEN>— the MCP endpoint for claude.ai/dashboard/<MCP_AUTH_TOKEN>— a live dashboard webpage (see below)/healthz— health check
Dashboard
https://your-app.example.com/dashboard/<MCP_AUTH_TOKEN> is a bookmarkable web dashboard that pulls live data from Shopify on every load: orders and revenue for today and the last 7 days, new customer signups, an orders-per-day chart, and tables of recent orders (with payment/fulfillment status) and recent signups. It auto-refreshes every 2 minutes and supports light/dark mode. The same MCP_AUTH_TOKEN protects it — treat the URL as confidential.
To run it directly instead of via Docker: npm install && npm run build && npm run start:http.
2. Add the connector on claude.ai
Go to claude.ai → Settings → Connectors → Add custom connector (available on Pro, Max, Team, and Enterprise plans).
Name it
Shopifyand set the URL to:https://your-app.example.com/mcp/<your MCP_AUTH_TOKEN>Save. The Shopify tools now appear in web and mobile chats via the search-and-tools menu.
Security: the
MCP_AUTH_TOKENin the URL is the only thing standing between the internet and your store's API, so make it long and random, always use HTTPS (hosts like Railway/Render provide it automatically), and rotate the token if the URL ever leaks. The Shopify token itself stays server-side and is never sent to the browser.
Run locally (Claude Desktop / Claude Code)
1. Build the server
npm install
npm run build2. Connect it to Claude
Claude Code (CLI):
claude mcp add shopify \
--env SHOPIFY_DOMAIN=your-store.myshopify.com \
--env SHOPIFY_CLIENT_ID=xxxxxxxxxxxx \
--env SHOPIFY_CLIENT_SECRET=xxxxxxxxxxxx \
-- node /absolute/path/to/Shopify-MCP/build/index.jsClaude Desktop — add to claude_desktop_config.json:
{
"mcpServers": {
"shopify": {
"command": "node",
"args": ["/absolute/path/to/Shopify-MCP/build/index.js"],
"env": {
"SHOPIFY_DOMAIN": "your-store.myshopify.com",
"SHOPIFY_CLIENT_ID": "xxxxxxxxxxxx",
"SHOPIFY_CLIENT_SECRET": "xxxxxxxxxxxx"
}
}
}
}Then ask Claude things like "What are my 5 most recent unfulfilled orders?" or "Create a 15% discount code called WELCOME15".
Security notes
The access token grants API access to your store — treat it like a password. Keep it in host environment variables or your MCP client config; never commit it.
Scope the token minimally: if you only need reporting, grant read-only scopes.
The server only ever calls your store's
/admin/apiGraphQL endpoint; the Shopify token never leaves the server.In remote mode, always set
MCP_AUTH_TOKEN— without it the endpoint is open to anyone who finds the URL.
Development
npm run watch # recompile on changeThe server is plain TypeScript using @modelcontextprotocol/sdk. Each tool group lives in src/tools/, src/shopify.ts holds the GraphQL client (API version 2025-07), and src/server.ts assembles the MCP server used by both entry points (src/index.ts for stdio, src/http.ts for HTTP).
Available Tools
12 toolsadjust-inventoryA
Adjust the available inventory quantity of a product variant at a location by a delta (positive to add stock, negative to remove). Use get-product-by-id to find the variant's inventoryItem ID and get-locations for the location ID.
Inputs: delta (required), locationId (required), inventoryItemId (required), reason.
create-discount-codeA
Create a basic discount code (percentage or fixed amount off the whole order) that customers can enter at checkout.
Inputs: code (required), title (required), value (required), valueType (required), +3 more.
get-customer-ordersA
Get a customer's profile along with their most recent orders.
Inputs: customerId (required), limit.
get-customersA
List customers, optionally filtered by a search query (name, email, phone, or e.g. 'orders_count:>5').
Inputs: limit, searchQuery.
get-locationsA
List the store's inventory locations. Location IDs are needed to adjust inventory.
Inputs: no named parameters.
get-order-by-idA
Get full details for a single order, including line items, shipping address, and totals.
Inputs: orderId (required).
get-ordersA
List recent orders, optionally filtered by a Shopify order search query (e.g. 'financial_status:paid', 'fulfillment_status:unfulfilled', 'created_at:>2026-01-01', or an order name like '#1001').
Inputs: limit, searchQuery.
get-product-by-idA
Get full details for a single product, including description, images, and variants.
Inputs: productId (required).
get-productsA
List products from the Shopify store, optionally filtered by a search query (e.g. a title, 'status:active', or 'tag:sale').
Inputs: limit, searchQuery.
get-shop-infoA
Get basic information about the connected Shopify store (name, domain, currency, plan).
Inputs: no named parameters.
update-productC
Update a product's title, description, or status (ACTIVE, DRAFT, or ARCHIVED).
Inputs: productId (required), title, status, descriptionHtml.
update-variant-priceA
Update the price (and optionally compare-at price) of a product variant.
Inputs: price (required), productId (required), variantId (required), compareAtPrice.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a distinct resource and action: shop info, products, variants, orders, customers, locations, inventory, and discounts. Tools like get-customers and get-customer-orders are clearly differentiated by list vs. profile-with-orders, and get-products vs. get-product-by-id are unambiguous.
All tools follow the same lowercase kebab-case verb-noun pattern, such as get-products, update-product, adjust-inventory, and create-discount-code. There are no mixed conventions or vague generic verbs, making the naming highly predictable.
Twelve tools is a well-scoped count for a Shopify management server, covering the most common store operations without overwhelming the agent. Each tool earns a place and there is minimal redundancy.
The set covers common read operations and several mutations, but has notable lifecycle gaps: products can be updated but not created or deleted, orders can be fetched but not fulfilled or modified, and customers can be listed but not created or edited. Inventory adjustment and discount creation are present, yet the overall surface is partial rather than full CRUD.
Related MCP Connectors
MCP server for Shoprocket — orders, products, customers, store stats and discount codes.
Unofficial Shopify MCP Pack — wraps the Shopify Admin REST API (2024-01)
Unified MCP server for 70+ eCommerce platforms: products, orders, customers, and more.
Hosted Shopify MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThis MCP server connects clients with Shopify store data, enabling retrieval of product and customer information via exposed tools.7MIT
- AlicenseNot gradedqualityCmaintenanceA comprehensive MCP server for Shopify Admin API integration, enabling AI assistants to manage products, orders, customers, inventory, analytics, and more through natural language.19 npm20MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for the Shopify Admin API, enabling 36 tools for managing products, orders, customers, inventory, fulfillments, collections, analytics, marketing, content, and webhooks.1MIT
- AlicenseNot gradedqualityDmaintenanceProduction-grade MCP server for the Shopify Admin GraphQL API, exposing typed tools for AI agents to manage products, orders, customers, and more.Business Source 1.1