
Shopify Mcp
io.github.miller-joe由 GitHub 账号 miller-joe 发布v0.1.2更新于 Oct 24, 2026
MCP server for Shopify Admin API with a ComfyUI bridge for AI product image generation.
概览
让助手通过 Admin GraphQL API 管理 Shopify 店铺,包括商品、订单、库存,并可选通过 ComfyUI 生成 AI 商品图片。
- 可以做什么
- 把 Shopify Admin GraphQL API 封装为工具,覆盖商品、变体、集合、元字段、元对象、草稿订单、发货、Webhook、客户以及 ShopifyQL 分析。写入类工具会创建、更新和删除店铺数据,发货工具可将订单标记为已发货并通知客户。配置 ComfyUI 地址后,桥接工具可生成商品图片,并在一次调用中创建或更新带图商品。
- 适用场景
- 适合让助手直接读取或修改 Shopify 店铺的场景,例如批量编辑商品、更新库存、处理草稿订单、发货,或运行 ShopifyQL 报表。只有在你也运行 ComfyUI 并希望自动附加生成图片时,才需要启用桥接工具。
- 运行要求
- 以 npm 包形式在本地运行(Node 20+),支持 stdio 或 streamable HTTP。需要 SHOPIFY_STORE 和密钥 SHOPIFY_ACCESS_TOKEN(shpat_ 开头的 Admin API 令牌,需具备相应权限);SHOPIFY_API_VERSION 可选。ComfyUI 桥接工具需要 COMFYUI_URL,可选 COMFYUI_PUBLIC_URL 和 COMFYUI_DEFAULT_CKPT。需要访问 Shopify 网络,桥接还需访问 ComfyUI。
安装
在 SourceWeft 中
- 打开 控制台中的 Shopify Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
shopify-mcp
MCP server for Shopify. Full Admin GraphQL API tooling plus an AI-driven product creation bridge via ComfyUI image generation.
The pitch
Every other Shopify MCP is a plain Admin API wrapper. This one pairs with @miller-joe/comfyui-mcp so you can say things like:
"Create a product called 'Nebula Dreamer'. Generate a cosmic abstract image for it, description matching the vibe, tagged astrology, status draft."
Claude then runs ComfyUI, gets an image back, creates the Shopify product, and attaches the image, all in one call.
Install
Connect an MCP client
Or point your MCP gateway at the Streamable HTTP endpoint.
Configuration
Transports
The server speaks streamable HTTP by default (great for Claude Code, MetaMCP, raw fetch). Pass --stdio (or set MCP_TRANSPORT=stdio) to switch into stdio mode, which is what stdio-first clients like Claude Desktop and the MCP Inspector expect:
Getting a Shopify access token
Easy path, existing dev store: Shopify Admin → Apps → Develop apps → Create custom app → enable relevant Admin API scopes (write_products, read_orders, write_inventory, read_customers) → install → copy the admin API access token (starts with shpat_).
For new apps (post-Jan 2026): legacy custom-app tokens are deprecated for freshly-created apps. Use the Dev Dashboard token-exchange flow once to obtain a working token, then supply it here. Multi-tenant OAuth is on the roadmap.
Tools
Core Admin
Metafields
Draft orders
Webhooks
Metaobjects
Fulfillment
Partial fulfillment is supported. Pass specific fulfillmentOrderLineItems with quantity per line, or omit the array to fulfill everything on the fulfillment order.
Variants and product options
For an entirely new product, creating the first real variant requires strategy="REMOVE_STANDALONE_VARIANT" to replace the auto-generated "Default Title" variant.
Collections and tagging
Analytics (ShopifyQL)
Examples:
FROM sales SHOW total_sales BY day SINCE -30d TIMESERIESFROM products SHOW product_title, quantity_sold BY product_id SINCE -7d ORDER BY quantity_sold DESC LIMIT 10
ComfyUI bridge (when COMFYUI_URL is configured)
Template placeholders for bulk_regenerate_images: {title}, {handle}.
Example: the whole pitch in one call
ComfyUI generates the image, Shopify creates the product with the image attached, and you get the product ID and image URL back. One prompt, one call, real listing.
Architecture
Bridge tools call ComfyUI directly over HTTP, get an image URL, and pass it to Shopify's productCreateMedia mutation. Shopify fetches and hosts the image on its CDN.
Development
Requires Node 20+.
Roadmap
Shipped:
- Core products CRUD plus image attach
- Orders read, Inventory set + locations, Customers read
- ComfyUI bridge:
generate_and_create_product,generate_product_image,bulk_regenerate_images - Metafields:
set_metafield,list_metafields,delete_metafield - Draft orders: create / update / complete / delete / list / get
- Collections and tagging: CRUD, product add/remove,
add_tags/remove_tags - Variants and product options: bulk create / update / delete / reorder plus
add_product_options - Fulfillment: list/get fulfillment orders, create fulfillment (partial supported), update tracking, cancel
- Webhooks: list / get / create / update / delete
- Metaobjects: definitions list plus metaobject CRUD
- ShopifyQL analytics:
run_shopifyql_querywith ASCII-table rendering - Image refinement bridge:
refine_product_image(ComfyUI img2img on product images)
Planned:
- OAuth token-exchange flow for new-app auth.
License
MIT © Joe Miller
Support
If this saves you time, consider supporting development:
来源:README.md,提交 fa2c64c
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分