Shopify MCP
Allows reading Shopify shop, products, and orders data via read-only tools.
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 list my recent orders"
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
A focused, read-only Model Context Protocol server for Shopify. It lets an assistant answer store operations questions without giving the model a general GraphQL console.
The four tools are get_shop, list_products, get_product, and list_orders. Mutations are left
out deliberately: an inventory or price write deserves a separate approval-oriented design.
Two ways to run it
Local: one store, environment credentials, and stdio transport.
Hosted: multiple Shopify installations, OAuth, encrypted tokens, bearer-protected Streamable HTTP, cursor pagination, retries, health checks, metrics, and uninstall cleanup.
Related MCP server: Clind MCP Server
Local setup
You need Python 3.11+ and a Shopify Admin API token with read_products, read_orders, or both.
python -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .envRun shopify-mcp after loading SHOPIFY_SHOP and SHOPIFY_ACCESS_TOKEN. An MCP client entry looks
like this:
{
"mcpServers": {
"shopify": {
"command": "/absolute/path/to/.venv/bin/shopify-mcp",
"env": {
"SHOPIFY_SHOP": "your-store.myshopify.com",
"SHOPIFY_ACCESS_TOKEN": "shpat_replace_me",
"SHOPIFY_API_VERSION": "2026-07"
}
}
}
}Hosted setup
The hosted service uses Shopify OAuth. Each installation gets a separate MCP bearer token; the Shopify Admin token is encrypted at rest and never reaches the MCP client.
Generate an encryption key:
python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'Copy .env.example to .env and set BASE_URL, SHOPIFY_CLIENT_ID,
SHOPIFY_CLIENT_SECRET, TOKEN_ENCRYPTION_KEY, and DATABASE_PATH. Keep secrets in your hosting
platform's secret manager rather than committing .env.
In Shopify, configure:
Callback: https://your-host/auth/callback
Webhook: https://your-host/webhooks/app-uninstalledStart the container:
docker compose up --buildInstall a store by opening:
https://your-host/install?shop=your-store.myshopify.comThe callback displays the MCP URL (https://your-host/mcp) and bearer token once. Reinstalling a
store rotates that credential. Remote requests use Authorization: Bearer smcp_....
The OpenAI Responses API accepts the token through the remote MCP tool's authorization field. A
ChatGPT custom connector may require a full interactive OAuth authorization server depending on
workspace policy; this service is currently an OAuth resource server with provisioned bearer
credentials, not a general-purpose authorization server.
Design
Each tool owns a fixed GraphQL query. List calls are capped at 50 records and return
page_info.endCursor for the next call. The response includes Shopify throttle status.
The client applies timeouts and retries network failures, HTTP 429 responses, and 5xx responses with exponential backoff and jitter. Hosted MCP uses stateless JSON Streamable HTTP for easy horizontal transport scaling.
OAuth state is random, expires after ten minutes, and is consumed once. Callback and webhook HMACs use constant-time comparison. Expiring offline access and refresh tokens are encrypted and rotated before expiry; a per-store lock prevents concurrent use of Shopify's single-use refresh token. MCP tokens are stored only as SHA-256 digests. Uninstall webhooks remove all credentials.
The service emits JSON request logs, Prometheus-text metrics at /metrics, liveness at /healthz,
and database readiness at /readyz. Restrict /metrics at the proxy or private network.
Development
pip install -e '.[dev]'
ruff check .
pytestTests use mock HTTP transports and temporary encrypted databases; no Shopify store is required.
Production boundary
This is a deployable single-node production baseline, not a compliance certification. Before serving real merchants:
Put it behind HTTPS, a WAF, and request-size/rate limits.
Use a managed secret store and define encryption-key rotation procedures.
Replace SQLite before running multiple replicas.
Ship logs and metrics to an observability platform and configure alerts.
Register all Shopify-required compliance webhooks and complete protected-customer-data review.
Add an authorization server when a target MCP client cannot supply a bearer token.
Run dependency, container, and application security scans and commission a security review.
Product variants remain limited to the first 25. See DEPLOYMENT.md for the operations checklist.
License
MIT
Available Tools
4 toolsget_productA
Get one product by numeric ID or Shopify GID.
Inputs: product_id (required). Returns: object
get_shopB
Return basic information about the connected Shopify shop.
Inputs: no named parameters. Returns: object
list_ordersB
List recent orders, optionally using Shopify order search syntax.
Inputs: after, limit, search. Returns: object
list_productsA
List products, optionally using Shopify product search syntax.
Inputs: after, limit, search. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct resource: products, orders, and shop information. The list/get distinction clearly separates collection retrieval from single-item retrieval, leaving no ambiguity.
All tool names follow a consistent verb_noun pattern (list_products, get_product, list_orders, get_shop), making the API predictable and easy to navigate.
With 4 tools, the server is concise and well-scoped for basic read-only access to Shopify data. While not extensive, the count is reasonable for the limited functionality provided.
The surface is heavily read-only, lacking create, update, or delete operations for products and orders. Missing common resources like customers and inventory leaves significant gaps for any real-world Shopify workflow.
Maintenance
Related MCP Connectors
Hosted Shopify MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MerchantFlow is a hosted, read-only ecommerce analytics MCP server for Shopify and WooCommerce. It gives AI assistants tenant-scoped access to revenue, profit and loss, product and SKU profitability, COGS coverage, fulfillment costs, advertising spend, ROAS, marketing performance, cohorts, LTV, and business valuation across connected commerce and marketing platforms. Connect with OAuth over Streamable HTTP. No local server installation is required.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThis MCP server connects clients with Shopify store data, enabling retrieval of product and customer information via exposed tools.7MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA Shopify-focused MCP server that enables AI agents to manage store operations like order tracking, product discovery, and checkout link generation. It facilitates customer-facing interactions including shipping estimates and real-time inventory searches.-
- AlicenseNot gradedqualityDmaintenanceRead-only Shopify Admin API MCP server for business reporting, exposing tools like get_shop_summary, list_recent_orders, and search_products.2,831 npmMIT
- AlicenseCqualityDmaintenanceAn MCP server providing AI agents with full access to the Shopify Admin API via 136 tools for managing products, orders, customers, collections, and more.10045 npmMIT