
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 分