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 分