Skip to main content
Glama
Shopify Commerce MCP Server

Shopify Commerce MCP Server

by minijy

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 token

  • Automatic 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 config

Open 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_draft always creates DRAFT and never auto-publishes.

  • After shopify_set_product_status switches the status to ACTIVE, the product is still not considered published.

  • shopify_publish_product and shopify_unpublish_product are modeled separately; Harness should require human confirmation before calling them.

  • The configuration Web Server only listens on 127.0.0.1 and 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 stdio

Business 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 tools
shopify_config_status查看配置状态A
Read-onlyIdempotent

仅返回配置来源和凭证是否存在,不测试网络连接,也不返回密钥。

Inputs: no named parameters.

shopify_connection_status检查连接A
Read-onlyIdempotent

验证 Shopify 连接、API 版本和授权范围,不返回任何密钥。

Inputs: no named parameters.

shopify_create_product_draft创建商品草稿B

创建 DRAFT 商品;该工具不会自动上架或发布到销售渠道。

Inputs: title (required), seo, tags, handle, +3 more.

shopify_get_product读取商品A
Read-onlyIdempotent

读取一个商品及前 20 个变体。

Inputs: id (required).

shopify_list_publications列出销售渠道C
Read-onlyIdempotent

列出可用于发布商品的 Shopify publications。

Inputs: first.

shopify_publish_product发布商品A

将 ACTIVE 商品发布到指定销售渠道。此操作会改变店铺可见性,调用前应获得用户确认。

Inputs: id (required), publicationIds (required), publishAt.

shopify_search_products搜索商品B
Read-onlyIdempotent

按 Shopify 搜索语法查询商品,返回分页结果。

Inputs: after, first, query.

shopify_set_product_status设置商品状态A
Idempotent

把商品设为 ACTIVE、DRAFT、ARCHIVED 或 UNLISTED;ACTIVE 不等于已发布。

Inputs: id (required), status (required).

shopify_unpublish_product下架商品A
Destructive

从指定销售渠道撤下商品;不会删除商品。此操作调用前应获得用户确认。

Inputs: id (required), publicationIds (required).

shopify_update_product更新商品A
Idempotent

更新商品基础信息;不改变发布渠道。

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

    A3.7/5.0

    Scored across 10 tools

    Disambiguation4/5

    大部分工具目标明确,如搜索/获取/发布/撤下等动作清晰区分。唯一可能混淆的是 shopify_connection_status 和 shopify_config_status,两者都涉及状态检查,但描述中已明确区分网络连接与配置来源。整体边界清晰,仅有轻微模糊。

    Naming Consistency4/5

    绝大多数工具遵循 shopify_动词_名词 的模式,如 search_products、get_product、publish_product。但 shopify_connection_status 和 shopify_config_status 使用名词+status 而非动词开头,造成轻微不一致。整体模式仍可预测,偏差较小。

    Tool Count5/5

    10个工具覆盖商品搜索、读取、创建、更新、状态管理、发布/撤下以及连接检查,数量适中。每个工具都有明确职责,没有冗余或臃肿,符合该服务器聚焦商品管理的定位。

    Completeness4/5

    商品生命周期覆盖较完整:可创建草稿、更新信息、设置状态、发布到渠道并撤下。缺少商品删除功能(但可通过 ARCHIVED 状态归档)以及变体编辑(仅读取变体),属于可容忍的小缺口,不影响核心流程。

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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 npm
      1
      MIT
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides 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.
      -
    • A
      license
      D
      quality
      D
      maintenance
      Enables interaction with Shopify store data through the GraphQL API, providing tools for managing products, customers, orders, and collections.
      21
      9
      MIT