Shopify MCP Server
Provides tools for interacting with a Shopify store's Admin GraphQL API, enabling AI agents to access and manage products, orders, customers, inventory, and sales data, including creating draft products for review.
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 ServerWhere is my order #1042?"
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 Agents + MCP
AI agents for Shopify stores, built on a Model Context Protocol (MCP) server that exposes a store's products, orders, customers, inventory and sales data as tools any AI assistant or agent can call.
One tool layer, two surfaces:
MCP server (
src/mcp/) — connect it to any MCP-compatible client and ask questions about the store in plain language.Agent suite (
src/agents/) — four ready-made agents that use the same tools to do store-operations work on their own: catalog audits, order triage, inventory/reorder alerts and customer support answers, compiled into a daily briefing by an orchestrator.
Runs against a real store through the Shopify Admin GraphQL API, or in demo mode with a built-in sample store — no credentials needed to try it.
Quick start
npm install
# 1. Full demo: exercises the MCP tools, then runs all agents
npm run demo
# 2. Just the agents' daily briefing
npm run agents
# 3. Run the MCP server (stdio) — normally launched by your MCP client
npm run mcp
# 4. Verify the MCP server end to end with a real MCP client
npm run verify-mcp
# Tests and type checking
npm test
npm run typecheckWith no environment variables set, everything runs in demo mode against the sample store "Northwind Living" (8 products, 6 orders, 5 customers — including a draft product, an out-of-stock bestseller and unfulfilled paid orders, so every agent has real work to report).
Related MCP server: shopify
Connect a real Shopify store
In Shopify admin: Settings > Apps and sales channels > Develop apps > Create an app.
Configure Admin API scopes:
read_products,write_products,read_orders,read_customers,read_inventory.Install the app and reveal the Admin API access token once.
Set the environment (copy
.env.example):
export SHOPIFY_STORE_DOMAIN="my-store.myshopify.com"
export SHOPIFY_ADMIN_ACCESS_TOKEN="shpat_..."
# optional: SHOPIFY_API_VERSION=2025-01The same code now runs live. The only write operation, shopify_create_draft_product, creates draft products only — it never publishes anything to the storefront on its own.
Use with an MCP client
Build once (npm run build), then add the server to your MCP client's configuration:
{
"mcpServers": {
"shopify": {
"command": "node",
"args": ["/path/to/shopify-agents-mcp/dist/mcp/server.js"],
"env": {
"SHOPIFY_STORE_DOMAIN": "my-store.myshopify.com",
"SHOPIFY_ADMIN_ACCESS_TOKEN": "shpat_..."
}
}
}
}Omit the env block to explore with the demo store first.
MCP tools
Tool | What it does |
| Store name, domain, email, currency, timezone |
| List products; filter by search term and status |
| Full product detail by ID or handle, incl. variants and stock |
| Create a DRAFT product for review (never auto-publishes) |
| List orders; filter by fulfillment / financial status |
| Full order detail by ID or order number (e.g. |
| List customers with order counts and total spent |
| Variants at or below a stock threshold, lowest first |
| Orders, gross sales, AOV and top products for the last N days |
| One search across products, orders and customers |
Agents
Agent | Job |
Catalog Agent | Audits listings: missing descriptions/tags, SKUs, drafts stuck unpublished, active products out of stock; can draft product descriptions |
Orders Agent | Morning triage: paid-but-unfulfilled queue (oldest first), high-value orders, pending payments, refunds |
Inventory Agent | Low/out-of-stock report with reorder quantities based on the last 30 days of sales |
Support Agent | Answers customer questions ("Where is my order?", stock, prices) from live store data; says so and offers escalation when it cannot find an answer |
Orchestrator | Runs all agents and compiles one daily store briefing |
Example questions for the Support Agent (try them in the demo):
"Where is my order #1042?"
"Is the stoneware vase in stock?"
"How much is the Belgian linen throw?"
Project structure
src/
config.ts Environment config; demo mode when no credentials
shopify/
types.ts Shared store data types
client.ts Shopify Admin GraphQL client + demo-mode data service
mock-data.ts Built-in sample store for demo mode
mcp/
tools.ts The 10 Shopify tools (single source of truth)
server.ts MCP server (stdio transport)
agents/
catalog-agent.ts Listing audit + description drafting
orders-agent.ts Fulfillment triage
inventory-agent.ts Low-stock + reorder suggestions
support-agent.ts Customer Q&A grounded in store data
orchestrator.ts Daily briefing across all agents
run.ts CLI: npm run agents
demo.ts CLI: npm run demo
scripts/
verify-mcp.ts Spawns the server and calls it as an MCP client
tests/
shopify-agents-mcp.test.ts
docs/
DEMO_GUIDE.md A 5-minute walkthrough for showing this to a clientHow it is built
TypeScript (strict), Node 20+, ESM
@modelcontextprotocol/sdkfor the MCP server,zodfor tool input schemasShopify Admin GraphQL API (2025-01) via
fetch— no heavyweight SDK dependencyvitestfor tests; the suite runs entirely in demo mode, no network or store needed
Roadmap ideas
Fulfillment creation and tracking updates from the Orders Agent
Discount and price-rule tools
Webhook listener so agents react to new orders in real time
HTTP/SSE transport for hosted MCP deployments
License
MIT — see LICENSE.
Author
Saad Abdullah — full-stack developer (React, Django REST Framework, Node.js/TypeScript) GitHub: saadkhantareen
This server cannot be deployed
Maintenance
Related MCP Connectors
Shopify MCP Pack — wraps the Shopify Admin REST API (2024-01)
Connect AI to store orders, products and inventory with scoped access and human approvals.
Hosted Shopify MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Discover, plan and run tools across your connected business systems through one OAuth MCP endpoint
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.1518 npm2MIT
- AlicenseAqualityCmaintenanceEnables AI agents to read and write Shopify store data including products, orders, customers, inventory, and more via the Admin GraphQL API.2858 npmMIT
- FlicenseNot gradedqualityDmaintenanceProvides access to the Shopify Storefront API via MCP, enabling AI assistants to query and interact with Shopify store data such as products, collections, carts, and customer information.-
- AlicenseNot gradedqualityDmaintenanceProduction-grade MCP server for the Shopify Admin GraphQL API, exposing typed tools for AI agents to manage products, orders, customers, and more.201 npmMIT