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 分