Shopify Mcp Pro

io.github.den-indance由 GitHub 帳號 den-indance 發布v2.0.5更新於 Oct 24, 2026

Shopify MCP server with real analytics (ShopifyQL), auto-refresh auth, and Shopify API 2026-04.

已驗證STDIO僅桌面資料與分析商業與電商

概覽

AI 產生的概覽

在本機執行的 Shopify Admin API 伺服器,讓助理讀取與管理單一商店的商品、訂單、客戶、庫存、行銷與分析資料。

可以做什麼
列出、建立與更新商品、系列、中繼欄位與中繼物件,並讀取或調整各據點的庫存。瀏覽訂單、草稿訂單、出貨履行、配送區域、退款與交易。查詢客戶與公司,讀取財務彙總和禮品卡。建立與列出折扣、價格規則、頁面、文章、重新導向與 Webhook。執行銷售、商品、轉換、流量、棄購與行銷報表,或直接執行 ShopifyQL 查詢。
適用情境
適合讓助理回答商店銷售、庫存與客戶相關問題,或在對話中完成例行的商品、訂單與行銷操作,而不必開啟後台管理介面。
執行需求
透過 npx 在本機執行,需要 Node.js。需要一個已授予 Admin API 權限範圍的 Shopify 自訂應用程式,並設定環境變數 SHOPIFY_STORE_DOMAIN、SHOPIFY_CLIENT_ID 與 SHOPIFY_CLIENT_SECRET;SHOPIFY_API_VERSION 為選用。分析功能需要 read_analytics 與 read_reports,原始 ShopifyQL 還需要 Level 2 客戶資料存取權。需要能連線至 Shopify 的網路。
安裝前請注意
SHOPIFY_CLIENT_SECRET 是商店憑證,請勿提交至版本控制並應定期輪換。許多工具會寫入線上商店,包括商品與庫存變更、退款、禮品卡、折扣、出貨履行與 Webhook。只授予所需的權限範圍,因為寫入權限會對面向客戶的資料造成實際變更。選用的 SSE 模式會透過 HTTP 暴露此伺服器。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

Shopify MCP Pro

[npm] [smithery badge]

The working Shopify MCP server. Connect Claude to your Shopify store — products, orders, customers, inventory, analytics and more.

Most Shopify MCP packages have broken analytics (stubs that return wrong data), use deprecated API fields that crash at runtime, and require a static token that expires silently. This one doesn't.

Built by Denis Maleev.


Why this one

What's fixedDetail
Analytics tools were stubsgetSalesReport, getConversionReport, getTrafficReport now powered by ShopifyQL — real data
Auth that actually worksUses Client ID + Secret from Shopify Dev Dashboard, tokens refresh automatically — no silent expiry
Deprecated API fieldsgetInventoryLevels, listAbandonedCheckouts updated to Shopify 2026-04 field schema
Runtime crashesgetShippingZones no longer crashes on stores with no delivery profiles
New: runShopifyQLRun any ShopifyQL query directly — same data as Admin → Analytics
Shopify Admin API2026-04 (current GA) + @shopify/shopify-api v13

Quick Start

bash
npx @den.dance/shopify-mcp-pro

Setup

1. Create a Custom App in Shopify

  1. Go to your Shopify Admin → Settings → Apps and sales channels
  2. Click Develop apps (enable custom app development if prompted)
  3. Click Create an app, give it a name (e.g. "Claude MCP")
  4. Go to Configure Admin API scopes and select scopes you need (see list below)
  5. Click Install app
  6. Go to API credentials tab — you'll see Client ID and Client secret

Note: Shopify no longer shows a static access token by default. This server uses OAuth with Client ID + Secret.

2. Configure Claude Desktop

Edit your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
json
{  "mcpServers": {    "shopify": {      "command": "npx",      "args": ["@den.dance/shopify-mcp-pro"],      "env": {        "SHOPIFY_STORE_DOMAIN": "your-store.myshopify.com",        "SHOPIFY_CLIENT_ID": "your-client-id",        "SHOPIFY_CLIENT_SECRET": "your-client-secret",        "SHOPIFY_API_VERSION": "2026-04",        "SHOPIFY_LOG_LEVEL": "WARNING"      }    }  }}

Restart Claude Desktop after saving.

Configure Claude Code

bash
claude mcp add shopify -e SHOPIFY_STORE_DOMAIN=your-store.myshopify.com \  -e SHOPIFY_CLIENT_ID=your-client-id \  -e SHOPIFY_CLIENT_SECRET=your-client-secret \  -- npx @den.dance/shopify-mcp-pro

Environment Variables

VariableRequiredDescription
SHOPIFY_STORE_DOMAINYese.g. my-store.myshopify.com
SHOPIFY_CLIENT_IDYesFrom Shopify Dev Dashboard
SHOPIFY_CLIENT_SECRETYesFrom Shopify Dev Dashboard
SHOPIFY_API_VERSIONNoDefaults to 2026-04
SHOPIFY_LOG_LEVELNoerror, warning, info, debug (default: warning)
TRANSPORT_MODENostdio (default) or sse
PORTNoHTTP port for SSE mode (default: 3000)

API Scopes

Minimum recommended

  • read_products, write_products
  • read_orders
  • read_customers
  • read_inventory, write_inventory

For analytics

  • read_analytics
  • read_reports

Full feature set

  • read_draft_orders, write_draft_orders
  • read_fulfillments, write_fulfillments
  • read_shipping
  • read_marketing_events, write_marketing_events
  • read_discounts, write_discounts
  • read_price_rules, write_price_rules
  • read_themes
  • read_content, write_content
  • read_metaobjects, write_metaobjects
  • read_gift_cards, write_gift_cards

You don't need all scopes — the server works with whatever you grant. Tools requiring missing scopes return auth errors without affecting others.


Tools

Products & Inventory

  • listProducts — list with filters, pagination, sort
  • getProduct — get by ID (includes inventory item IDs)
  • createProduct, updateProduct
  • getInventoryLevels — current stock across locations
  • adjustInventory — adjust quantities
  • listCollections
  • setMetafield
  • listMetaobjectDefinitions, createMetaobject, listMetaobjects

Orders & Fulfillment

  • listOrders, getOrder
  • createDraftOrder, listDraftOrders
  • createFulfillment, listFulfillmentOrders
  • getShippingZones
  • createRefund
  • listTransactions

Customers & B2B

  • listCustomers, getCustomer
  • getCustomerAnalytics
  • createCompany, listCompanies

Financial

  • getFinancialSummary
  • createGiftCard, listGiftCards

Marketing & Content

  • createDiscountCode, listDiscounts
  • listPriceRules
  • createPage, listPages
  • createArticle, listBlogs
  • createRedirect
  • createWebhook, listWebhooks

Analytics & Reporting

  • getSalesReport — revenue, orders, AOV (ShopifyQL)
  • getProductAnalytics — top products by sales (ShopifyQL)
  • getConversionReport — product conversion funnel (ShopifyQL)
  • getTrafficReport — sales by referrer source (ShopifyQL)
  • getAbandonmentReport — cart abandonment by date range
  • listAbandonedCheckouts
  • getMarketingReport
  • getCustomerAnalytics
  • runShopifyQL — run any ShopifyQL query directly

Store Config

  • getShopInfo
  • listThemes
  • listLocations
  • listMarkets
  • getInventoryReport
  • getCustomReport

ShopifyQL

runShopifyQL lets you run raw ShopifyQL queries — Shopify's native SQL-like analytics language:

FROM sales SHOW total_sales, gross_sales, total_orders SINCE '2026-01-01' UNTIL '2026-05-19'FROM products SHOW total_sales BY product_title ORDER BY total_sales DESC LIMIT 10FROM sessions SHOW sessions BY referrer_source

Requires read_reports scope + Level 2 customer data access in your Shopify app settings.


Example prompts for Claude

  • "Show sales for last month broken down by product"
  • "Which products have less than 10 units in stock?"
  • "Create a 20% discount code valid until end of month"
  • "List abandoned checkouts from the past week"
  • "Run a ShopifyQL query: FROM sales SHOW total_orders SINCE -30d"
  • "Get customer lifetime value metrics"
  • "Show top 10 products by revenue this year"

SSE Mode

For HTTP-based access or cloud deployment:

bash
TRANSPORT_MODE=sse \SHOPIFY_STORE_DOMAIN=your-store.myshopify.com \SHOPIFY_CLIENT_ID=your-client-id \SHOPIFY_CLIENT_SECRET=your-client-secret \PORT=3000 \npx @den.dance/shopify-mcp-pro

Endpoints:

  • GET /sse — SSE stream
  • POST /messages?sessionId={id} — send messages
  • GET /health — health check

Configure Claude Desktop for remote SSE:

json
{  "mcpServers": {    "shopify-remote": {      "transport": {        "type": "sse",        "url": "https://your-server.com/sse"      }    }  }}

Security

  • Never commit credentials to version control
  • Use environment variables for all secrets
  • Create separate apps with minimal scopes for different use cases
  • Regularly rotate your Client Secret

License

MIT

來源:README.md,提交 0e54958

工具

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

版本歷史

1
  1. v2.0.5最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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