Shopify MCP Server
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 "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 MCP ServerCreate 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 |
| 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 the MCP endpoint at /mcp/<MCP_AUTH_TOKEN>, plus a /healthz health check.
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).
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.
Related MCP Servers
- Alicense-qualityDmaintenanceThis MCP server connects clients with Shopify store data, enabling retrieval of product and customer information via exposed tools.6MIT
- Alicense-qualityDmaintenanceA comprehensive MCP server for Shopify Admin API integration, enabling AI assistants to manage products, orders, customers, inventory, analytics, and more through natural language.1718MIT
- Alicense-qualityBmaintenanceMCP server for the Shopify Admin API, enabling 36 tools for managing products, orders, customers, inventory, fulfillments, collections, analytics, marketing, content, and webhooks.121MIT
- Alicense-qualityDmaintenanceProduction-grade MCP server for the Shopify Admin GraphQL API, exposing typed tools for AI agents to manage products, orders, customers, and more.10MIT
Related MCP Connectors
Official remote MCP server for Color Me Shop.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for interacting with the Supabase platform
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/barlasarda91/Shopify-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server