Shopify MCP

io.scalably由 scalably.io 發布v1.1.0更新於 Oct 24, 2026

Read-only Shopify Admin GraphQL MCP: query, introspect, bulk export, ShopifyQL. 6 tools.

概覽

AI 產生的概覽

一個在本機執行的唯讀 MCP 伺服器,讓助理查詢一個或多個商店的 Shopify Admin GraphQL API。

可以做什麼
列出已設定的 Shopify 商店及其別名、網域與驗證方式,多商店時可為每次呼叫選擇商店。執行任意唯讀 Admin GraphQL 查詢,變更操作會在送達 Shopify 前被查詢解析器拒絕。對 GraphQL 結構描述進行內省,可取得完整目錄或單一類型。啟動並輪詢非同步批次匯出(JSONL),用於大量資料。執行 ShopifyQL 分析查詢,需要 read_reports 權限。
適用情境
適合助理需要檢視 Shopify 商店即時資料(商品、訂單、客戶、庫存、主題或報表),且不希望有任何寫入風險的情境。也適合需要以一個伺服器實體管理多家商店的代理機構。
執行需求
透過 uvx(Python 套件)或 Claude Desktop 的 .mcpb 套件在本機執行,僅限桌面端。需要商店網域(SHOPIFY_SHOP_DOMAIN 或 SHOPIFY_DOMAIN),多商店時需 SHOPIFY_STORES JSON 設定。驗證方式為 SHOPIFY_ACCESS_TOKEN,或 SHOPIFY_CLIENT_ID 加 SHOPIFY_CLIENT_SECRET。權杖需具備 read_products、read_orders、read_customers 等讀取權限,ShopifyQL 另需 read_reports。需要連線至 Shopify API 的網路存取。
安裝前請注意
需要 Shopify Admin API 憑證:SHOPIFY_ACCESS_TOKEN、SHOPIFY_CLIENT_SECRET 或 SHOPIFY_STORES 中的權杖,皆屬機密。唯讀由伺服器解析器強制執行,而非僅依賴 Shopify 權限範圍,因此應只授予讀取權限。客戶資料可能包含個人資訊;README 指出存取 PII 需啟用受保護的客戶資料存取。商店資料僅傳送給 Shopify;連接器聲稱無遙測,權杖僅保存在記憶體中。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Shopify MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Shopify MCP

[License: MIT] [MCP] [Shopify Admin API]

A single MCP server exposing the full Shopify Admin GraphQL API read surface (version 2026-04) through 6 universal tools. Read-only is enforced at the query-parser level: mutations are rejected before they ever reach Shopify, not merely discouraged. Multi-store by design: one server instance can serve many shops.

Built and maintained by Scalably. Runs on the Model Context Protocol. License: MIT.

Why read-only at the parser level? Giving an AI agent write access to a live store is how you end up with a deleted product or a wrong-priced variant. This server enforces read-only by parsing every query and rejecting mutations before they leave the process, not by trusting the model to behave, and not by relying on Shopify-side scopes alone. It's the safety boundary an agent in production actually needs. (more on the pattern)

Install

Claude Code:

bash
claude mcp add shopify -e SHOPIFY_DOMAIN=my-store.myshopify.com -e SHOPIFY_ACCESS_TOKEN=shpat_... -- uvx scalably-shopify-mcp

Codex:

bash
codex mcp add shopify --env SHOPIFY_DOMAIN=my-store.myshopify.com --env SHOPIFY_ACCESS_TOKEN=shpat_... -- uvx scalably-shopify-mcp

Claude Desktop: download shopify-mcp.mcpb from the latest GitHub release and open it.

Setup

Single store (simplest)

  • SHOPIFY_DOMAIN or SHOPIFY_SHOP_DOMAIN - <shop>.myshopify.com
  • Auth path A: SHOPIFY_ACCESS_TOKEN (legacy shpat_)
  • Auth path B: SHOPIFY_CLIENT_ID + SHOPIFY_CLIENT_SECRET (Dev Dashboard custom app, client-credentials OAuth, 24h tokens auto-refreshed)

The single store registers under alias default; callers can omit the shop argument on tool calls.

Multi-store (agency setups)

Set SHOPIFY_STORES to a JSON object mapping alias to store config:

json
{  "main":   {"domain": "my-store.myshopify.com",        "client_id": "...", "client_secret": "..."},  "outlet": {"domain": "my-store-outlet.myshopify.com", "client_id": "...", "client_secret": "..."},  "legacy": {"domain": "legacy-store.myshopify.com",    "access_token": "shpat_..."}}
  • Each store can use either client_id + client_secret (Dev Dashboard OAuth) or access_token (legacy shpat_).
  • Aliases: [a-z0-9][a-z0-9_-]{0,63}, lowercase-normalized on load.
  • Token cache is per-store-domain; one throttled store doesn't block others.

Scopes needed (read-only)

Minimum viable: read_products read_orders read_customers.

Recommended baseline: read_products read_orders read_customers read_inventory read_locations read_fulfillments read_discounts read_content read_themes read_files read_markets read_metaobjects read_metaobject_definitions read_reports read_translations read_locales read_shipping.

Add read_all_orders for order history older than 60 days. Enable Protected customer data access in Dev Dashboard, Configuration, if the agent needs customer PII.

Tools (6)

ToolWhat it does
shopify_list_storesList all Shopify stores configured for this agent. Call first.
shopify_graphql_queryArbitrary read-only GraphQL. Mutations rejected by the parser.
shopify_graphql_introspectSchema introspection, full catalog or a single type.
shopify_bulk_queryLaunch an async bulk export (JSONL).
shopify_bulk_pollPoll a bulk operation status and download URL.
shopify_shopifyqlShopifyQL analytics (SQL-like; requires read_reports).

Every non-list tool takes an optional shop argument (alias or domain). Required when more than one store is configured; auto-selected when exactly one.

Coverage

The full Admin GraphQL API read surface: any object, field, or connection accessible with the token's scopes is reachable via shopify_graphql_query. Anything large-scale (more than 10k records) should use shopify_bulk_query. Analytics goes through shopify_shopifyql.

Configuration

VariableRequiredPurpose
SHOPIFY_DOMAIN, SHOPIFY_SHOP_DOMAINone of these or SHOPIFY_STORESSingle-store admin domain, <shop>.myshopify.com
SHOPIFY_ACCESS_TOKENsee aboveLegacy shpat_ access token (single-store auth path B)
SHOPIFY_CLIENT_ID, SHOPIFY_CLIENT_SECRETsee aboveDev Dashboard custom-app credentials (single-store auth path A)
SHOPIFY_STORESnoJSON object mapping alias to store config; takes precedence over the single-store variables above
SHOPIFY_STORE_<ALIAS>_DOMAIN, _CLIENT_ID, _CLIENT_SECRET, _ACCESS_TOKENnoPrefix-key alternative to SHOPIFY_STORES for multi-store setups; one set of keys per store alias
SHOPIFY_REQUEST_TIMEOUT_SECONDSnoHTTP request timeout in seconds (default 60)
SHOPIFY_LOG_LEVELnoINFO (default) or DEBUG

Read-only enforcement

Every query is parsed with graphql-core before transmission. The parser rejects:

  • subscription operations (not supported by the Admin API anyway)
  • Any top-level mutation except bulkOperationCancel (cancels an in-flight bulk job, no shop-data write)
  • Malformed GraphQL (syntax errors)
  • Queries over 100KB

bulkOperationRunQuery is not in the generic parser allowlist. Legitimate bulk exports go through the dedicated shopify_bulk_query tool, which validates the inner query with the same read-only check before wrapping it in the bulk mutation. Single source of truth, no reliance on Shopify-side validation.

Rate limiting

Per-store cost-based leaky bucket (Shopify's model). Each response includes extensions.cost.throttleStatus. On THROTTLED errors, the server sleeps ceil((requestedQueryCost - currentlyAvailable) / restoreRate) seconds (minimum 1s) and retries up to 3 times before surfacing the error. Buckets are independent per store: a throttle on one store doesn't affect another.

Reply shape

Tool replies mirror the underlying call rather than a uniform envelope. shopify_list_stores returns a JSON array of {alias, domain, name, currency, auth_mode}; every GraphQL-backed tool (shopify_graphql_query, shopify_graphql_introspect, shopify_bulk_query, shopify_bulk_poll, shopify_shopifyql) returns the raw Shopify Admin API response, {"data": ..., "errors": ..., "extensions": ...}, unwrapped. Tool-level failures (bad input, redacted transport errors) raise a plain error.

Limits

100KB query size ceiling. Bulk exports: exactly one top-level connection per query, max 5 total connections, max depth 2, every nested connection node selects id without an alias; one bulk operation at a time per shop on API versions through 2025-10, up to 5 on 2026-01 and later. API version defaults to 2026-04; override per call with api_version="YYYY-MM".

Verify

Each release lists the package version, the .mcpb sha256 and the production commit it was derived from in CHANGELOG.md. CI runs the tests and a clean install of the built wheel on every push.

Privacy Policy

This connector runs locally, on your own machine, under your own Shopify credentials. It is a thin read-only bridge between your MCP client and Shopify's Admin API.

  • Data collection: The connector collects no personal data and contains no telemetry, analytics, or external reporting. It does not phone home.
  • Data usage: Shopify store data you query is returned to your local MCP client to fulfill your request, and is not used for any other purpose.
  • Data storage: The connector stores nothing persistently. Access tokens are held in memory only for the life of the process and are never written to disk. The only network destination is Shopify's own API (*.myshopify.com), enforced by a domain allowlist.
  • Third-party sharing: None. Data flows only between your machine and Shopify. No third party, including the connector's author, ever receives your data or credentials.
  • Retention: No data is retained by the connector after the process exits.
  • Secret handling: Access tokens, client secrets, and all Shopify token prefixes are redacted from logs and error messages.
  • Contact: [email protected]

The canonical hosted version of this policy: https://scalably.io/connector-privacy.html

License

MIT. Copyright Scalably.

Learn more

We write about building production MCP servers and AI agents at scalably.io/blog:

References

來源:README.md,提交 3dd22dd

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分