Mcp Shopify

io.github.codespar由 GitHub 帳號 codespar 發布v0.2.2更新於 Nov 3, 2026

MCP server for Shopify — Admin REST API (orders, products, customers, inventory, fulfillments)

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

Shopify Admin REST API 的 MCP 伺服器,讓助理讀取並修改商店的訂單、商品、客戶、庫存、出貨、折扣與退款。

可以做什麼
  • 列出、檢視、建立、更新與取消訂單,包含草稿訂單與放棄的結帳
  • 列出、檢視、建立與更新商品、變體、圖片、智慧與自訂集合以及中繼欄位
  • 列出與建立客戶
  • 依增量調整某地點的庫存,並列出出貨地點
  • 建立出貨、更新物流追蹤資訊、列出訂單交易並辦理退款
  • 建立價格規則與折扣碼,並註冊 webhook 訂閱
適用情境
適合需要讓助理直接操作 Shopify 商店後台資料的情境,例如補貨、訂單與退款處理、出貨編排、商品目錄或折扣設定,而不必透過經銷商或手動在後台點選。
執行需求
透過 npm 套件(npx @codespar/mcp-shopify)以 stdio 在本機執行,需要 Node.js 以及連線到商店 myshopify.com 網域的網路。需要 SHOPIFY_SHOP(商店子網域)與 SHOPIFY_ACCESS_TOKEN(私有或自訂應用程式的 Admin API 權杖);SHOPIFY_API_VERSION 為選用,預設 2024-01。自訂應用程式須被授予所需的 Admin API 權限範圍。
安裝前請注意
此權杖可寫入真實商店資料:工具會建立、更新與取消訂單,修改商品與庫存,辦理退款,建立折扣碼並註冊 webhook,出錯會影響真實客戶與金流。只授予必要的權限範圍,並妥善保管 SHOPIFY_ACCESS_TOKEN。退款與建立折扣涉及金流。README 另提到付費企業版,與本套件是分開的。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

@codespar/mcp-shopify

MCP server for Shopify — global ecommerce platform Admin REST API.

Shopify is the global DTC standard and dominant across LatAm for brands operating internationally (complementary to Nuvemshop/Tiendanube for regional-only merchants, also in this catalog). Agents building merchant tools — restocking, refund automation, marketing campaigns, fulfillment orchestration — integrate directly with the Admin API rather than through a reseller.

Tools (28)

ToolPurpose
list_ordersList orders with optional filters.
get_orderGet a single order by ID with full detail.
create_orderCreate a new order.
update_orderUpdate an existing order (tags, note, email, shipping_address, metafields, etc).
cancel_orderCancel an order.
list_productsList products with optional filters.
get_productGet a single product by ID including all variants and images.
create_productCreate a new product with variants, options, and images.
update_productUpdate an existing product's fields, variants, or images.
list_customersList customers with optional query filter.
create_customerCreate a new customer record.
adjust_inventoryAdjust the available inventory for a specific inventory_item at a specific location by a delta (positive to...
create_fulfillmentCreate a fulfillment for an order (mark line items as shipped, attach tracking number and carrier).
update_fulfillment_trackingUpdate the tracking number, tracking company, or tracking URL on an existing fulfillment (post-ship trackin...
create_draft_orderCreate a draft order (invoice-style quote).
complete_draft_orderConvert a draft order into a real order.
create_price_ruleCreate a price rule (the policy that governs discounts — percentage/fixed amount, prerequisites, entitlemen...
create_discount_codeCreate a discount code tied to an existing price rule (the customer-facing string like 'SUMMER20').
create_smart_collectionCreate a smart collection — an automated collection populated by rules (e.g.
create_custom_collectionCreate a custom collection — a manually curated collection.
create_metafieldAttach a metafield (custom typed field) to a resource (shop, product, variant, customer, order, collection,...
create_variantAdd a new variant to an existing product (size/color/SKU permutation with its own price and inventory).
update_variantUpdate an existing product variant's price, SKU, barcode, options, weight, or inventory policy.
list_transactionsList all payment transactions for an order (authorizations, captures, sales, refunds, voids) including gate...
list_abandoned_checkoutsList abandoned checkouts (carts where the customer entered contact info but did not complete checkout).
list_locationsList all fulfillment locations (physical stores, warehouses, 3PLs).
create_refundRefund one or more line items on an order.
register_webhookRegister a webhook subscription for a Shopify event topic (orders/create, orders/paid, products/update, app...

Install

bash
npm install @codespar/mcp-shopify

Environment

bash
SHOPIFY_SHOP="acme"               # subdomain (acme.myshopify.com)SHOPIFY_ACCESS_TOKEN="shpat_..."  # Admin API access token (secret)SHOPIFY_API_VERSION="2024-01"     # Optional. Defaults to 2024-01.

Authentication

Private/custom app access token sent as header on every request:

X-Shopify-Access-Token: <SHOPIFY_ACCESS_TOKEN>

Create a custom app in Shopify admin → Settings → Apps and sales channels → Develop apps, grant the Admin API scopes you need (read/write orders, products, customers, inventory, fulfillments), and install to generate the token.

Run

bash
# stdio (default — for Claude Desktop, Cursor, etc)npx @codespar/mcp-shopify
# HTTP (for server-to-server testing)MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-shopify

API surface

Uses the Shopify Admin REST API at https://{shop}.myshopify.com/admin/api/{version}. Default version is 2024-01 (stable). Override with SHOPIFY_API_VERSION when newer stable versions ship.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

來源:packages/ecommerce/shopify/README.md,提交 d0a519a

工具

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

版本歷史

1
  1. v0.2.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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