Shopify Commerce MCP Server
Provides tools for managing Shopify products, including search, draft creation, updates, status changes, and publishing/unpublishing to sales channels via the Shopify Admin API.
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 Commerce MCP Server search for products with the tag 'summer' and list their titles"
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 Commerce MCP Server
A standalone Shopify Admin GraphQL MCP Server for use with Codex, DeepSeek Harness, and other MCP Clients. It provides product search, draft creation, update, publish, and unpublish tools, as well as a local credentials configuration page.
Capabilities
Securely configure
shop domain + client ID + client secret, or an existing Admin API access tokenAutomatic Client Credentials token exchange, in-memory caching, and expiration refresh
Product search, details, draft creation, basic information updates, and status switching
Publication (sales channel) listing, publishing, and unpublishing
Secrets never enter MCP tool output or logs; config file permissions are
0600
Related MCP server: Shopify MCP Server
Installation and Running
Requires Node.js 20 or higher.
pnpm install
pnpm configOpen http://127.0.0.1:3210, fill in the credentials, save, and test the connection. Then use pnpm start to launch the stdio MCP Server.
Environment variables take precedence over the local config file: SHOPIFY_SHOP, SHOPIFY_CLIENT_ID, SHOPIFY_CLIENT_SECRET, SHOPIFY_API_VERSION. You can also use SHOPIFY_ACCESS_TOKEN to provide an access token directly. The default config file is located at ~/.config/shopify-commerce-mcp/config.json; it can be overridden via SHOPIFY_MCP_CONFIG_PATH.
Shopify Setup
In the Shopify Dev Dashboard, create an App, select API scopes, publish an App Version, and install the App to the store. The recommended minimum permissions are write_products and write_publications.
Client Credentials only apply to server-side integrations where the App and store belong to the same Shopify Organization. To integrate with other merchants' stores, use the Shopify OAuth installation flow instead; the MCP Tools do not need to change for this—only the authentication layer and multi-tenant credential storage need to be replaced.
Security and Action Semantics
shopify_create_product_draftalways createsDRAFTand never auto-publishes.After
shopify_set_product_statusswitches the status toACTIVE, the product is still not considered published.shopify_publish_productandshopify_unpublish_productare modeled separately; Harness should require human confirmation before calling them.The configuration Web Server only listens on
127.0.0.1and should not be exposed to the public internet through a reverse proxy.
Run pnpm test to execute automated tests that don't require real store credentials.
Registering in Codex
codex mcp add shopify-commerce -- node /absolute/path/to/src/index.js stdioBusiness orchestration, publish confirmation, and batch processing rules are not kept in this repository; use it together with the standalone shopify-product-operator-skill.
Available Tools
10 toolsshopify_config_status查看配置状态ARead-onlyIdempotent
仅返回配置来源和凭证是否存在,不测试网络连接,也不返回密钥。
Inputs: no named parameters.
shopify_connection_status检查连接ARead-onlyIdempotent
验证 Shopify 连接、API 版本和授权范围,不返回任何密钥。
Inputs: no named parameters.
shopify_create_product_draft创建商品草稿B
创建 DRAFT 商品;该工具不会自动上架或发布到销售渠道。
Inputs: title (required), seo, tags, handle, +3 more.
shopify_get_product读取商品ARead-onlyIdempotent
读取一个商品及前 20 个变体。
Inputs: id (required).
shopify_list_publications列出销售渠道CRead-onlyIdempotent
列出可用于发布商品的 Shopify publications。
Inputs: first.
shopify_publish_product发布商品A
将 ACTIVE 商品发布到指定销售渠道。此操作会改变店铺可见性,调用前应获得用户确认。
Inputs: id (required), publicationIds (required), publishAt.
shopify_search_products搜索商品BRead-onlyIdempotent
按 Shopify 搜索语法查询商品,返回分页结果。
Inputs: after, first, query.
shopify_set_product_status设置商品状态AIdempotent
把商品设为 ACTIVE、DRAFT、ARCHIVED 或 UNLISTED;ACTIVE 不等于已发布。
Inputs: id (required), status (required).
shopify_unpublish_product下架商品ADestructive
从指定销售渠道撤下商品;不会删除商品。此操作调用前应获得用户确认。
Inputs: id (required), publicationIds (required).
shopify_update_product更新商品AIdempotent
更新商品基础信息;不改变发布渠道。
Inputs: id (required), seo, tags, title, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
大部分工具目标明确,如搜索/获取/发布/撤下等动作清晰区分。唯一可能混淆的是 shopify_connection_status 和 shopify_config_status,两者都涉及状态检查,但描述中已明确区分网络连接与配置来源。整体边界清晰,仅有轻微模糊。
绝大多数工具遵循 shopify_动词_名词 的模式,如 search_products、get_product、publish_product。但 shopify_connection_status 和 shopify_config_status 使用名词+status 而非动词开头,造成轻微不一致。整体模式仍可预测,偏差较小。
10个工具覆盖商品搜索、读取、创建、更新、状态管理、发布/撤下以及连接检查,数量适中。每个工具都有明确职责,没有冗余或臃肿,符合该服务器聚焦商品管理的定位。
商品生命周期覆盖较完整:可创建草稿、更新信息、设置状态、发布到渠道并撤下。缺少商品删除功能(但可通过 ARCHIVED 状态归档)以及变体编辑(仅读取变体),属于可容忍的小缺口,不影响核心流程。
Related MCP Connectors
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.
Remote MCP for 1,500+ APIs. Vault-managed credentials; OAuth or API key. Search, load, and execute.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Shopify stores through GraphQL API, providing tools for managing products, customers, orders, and more.10MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Shopify store data via the GraphQL Admin API to manage products, customers, orders, and collections. Supports multi-store configurations and provides comprehensive management tools for e-commerce administration in both local and remote environments.12 npm1MIT
- -licenseNot gradedqualityNot gradedmaintenanceProvides integration with Shopify to list and search for products via the Shopify Admin API. It enables users to retrieve product details and perform searches by title or handle within a Shopify store.-
- AlicenseDqualityDmaintenanceEnables interaction with Shopify store data through the GraphQL API, providing tools for managing products, customers, orders, and collections.219MIT