Token导航 LogoToken导航TokenDH.com
Shopify Insights MCP logo
数据服务未说明官方级别未说明来源级核验

Shopify Insights MCP

MCP Server

Shopify Insights MCP 是一款为 Shopify 商家提供可操作商业洞察的服务,包括销售比较、库存警报和客户细分等功能。

工具数

10

提示词数

0

GitHub Stars

0

资源数

0
TypeScriptClaude库存管理Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

VenticinqueMauro

提供方

VenticinqueMauro

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Shopify洞察MCP

MCP Server for Shopify,提供可操作的业务洞察——比较、警报和建议,而不仅仅是数字。

演示

https://github.com/user-attachments/assets/4541bf2d-8974-4944-b3cb-4b8597d071cf

为什么存在

现有的Shopify MCP服务器返回原始数据。Shopify Insights MCP答案 “这是什么意思?”“我该怎么办?”:

其他MCPShopify Insights MCP
“你的销售额为45000美元”“你有45000美元, 减少12% 比上个月“
“50个产品列表”“有5个产品 关键库存 高需求”
“10个待处理订单”“已有3个订单 5天以上未完成"

堆栈

  • TypeScript + MCP-SDK (@modelcontextprotocol/sdk)
  • Shopify管理员API (GraphQL)
  • 黄道带 用于输入验证
  • 运输: 标准

安装

选项A:npm(推荐)

npm install -g shopify-insights-mcp
shopify-insights-mcp init

init 命令将指导您连接Shopify商店并生成Claude Desktop配置。

选项B:来源

git clone https://github.com/VenticinqueMauro/shopify-insights-mcp.git
cd shopify-insights-mcp
npm install
npm run build
npm run setup       # Guided configuration

Shopify应用程序要求

你需要一个 自定义应用程序 使用这些范围:

  • read_orders, read_products, read_customers

在以下位置创建一个: Shopify管理员>设置>应用程序和销售渠道>开发应用程序

构建与运行

npm run build       # Compile TypeScript → dist/
npm start           # Run the MCP server (stdio)
npm run setup       # Guided setup wizard
npm run inspector   # Open MCP Inspector for debugging

使用Claude Desktop

快速设置(通过npx)

{
  "mcpServers": {
    "shopify-insights": {
      "command": "npx",
      "args": ["-y", "shopify-insights-mcp"],
      "env": {
        "SHOPIFY_SHOP_DOMAIN": "your-store.myshopify.com",
        "SHOPIFY_ACCESS_TOKEN": "shpat_your_token"
      }
    }
  }
}

本地安装

{
  "mcpServers": {
    "shopify-insights": {
      "command": "node",
      "args": ["/path/to/shopify-insights-mcp/dist/index.js"],
      "env": {
        "SHOPIFY_SHOP_DOMAIN": "your-store.myshopify.com",
        "SHOPIFY_ACCESS_TOKEN": "shpat_your_token"
      }
    }
  }
}
shopify-insights-mcp init 自动生成此配置。

然后问克劳德这样的问题:

  • *“这个月的销售额与上个月相比怎么样?”*
  • *“哪些产品呈上升趋势?”*
  • *“有什么订单需要紧急处理吗?”*
  • *“我的客户是如何细分的?”*

配置

所需的环境变量

变量描述
SHOPIFY_SHOP_DOMAIN您的店铺域名(例如。, my-store.myshopify.com)
SHOPIFY_ACCESS_TOKEN管理员API访问令牌(以 shpat_)

可选环境变量

变量默认值描述
SHOPIFY_TIMEZONE从商店自动检测到IANA时区覆盖(例如。, America/New_York).当您的Shopify商店时区设置不正确时使用
SHOPIFY_API_VERSION2025-01Shopify管理API版本
SHOPIFY_MAX_RECORDS1000每次工具调用获取的最大记录数。大型商店增加

工具(10)

销售和收入

工具说明
get_sales_summary销售汇总,包括期间与期间的比较。收入、订单、AOV、销售量
get_sales_comparison并排比较两个自定义日期范围
get_revenue_breakdown按产品、供应商或产品类型细分的收入

产品与库存

工具说明
get_product_performance按收入、销售量或订单数对产品进行排名
get_inventory_alerts库存预警:缺货、低库存、超库检测
get_trending_products趋势产品(上涨/下跌)与上期相比

客户

工具说明
get_customer_segments自动细分:VIP、忠诚、回归、新、非活动
get_top_customers按总支出或订单数对客户进行排名

运营

工具说明
get_order_alerts需要注意的订单:延迟履行、财务问题、高价值待处理
get_fulfillment_metrics运营指标:完成率、财务状况、健康评分

建筑

src/
├── index.ts                  # Entry point
├── server.ts                 # Tool registration & request handler
├── shopify/
│   ├── auth.ts               # Credentials from env vars
│   ├── client.ts             # GraphQL wrapper
│   └── queries/              # Orders, products, customers queries
├── tools/
│   ├── sales/                # 3 sales tools
│   ├── products/             # 3 product tools
│   ├── customers/            # 2 customer tools
│   └── operations/           # 2 operations tools
├── analytics/
│   ├── comparisons.ts        # Change calculation (%, direction)
│   ├── insights.ts           # Automatic insight generation
│   └── recommendations.ts    # Actionable recommendations
├── types/
│   └── shopify.ts            # Shared GraphQL types
└── utils/
    ├── dates.ts              # Period handling & date formatting
    ├── formatting.ts         # Currency, percentage, number formatting
    └── errors.ts             # Standard error handling

输出示例

📊 SALES SUMMARY - THIS MONTH

CURRENT METRICS:
• Revenue: $1,245,000.00
• Orders: 234
• Avg Order Value: $5,320.51
• Units Sold: 892

VS. PREVIOUS MONTH:
• Revenue: +18.0% (+$190,000.00)
• Orders: +12.0% (+25)
• Avg Order Value: +5.4% (+$272.00)

💡 INSIGHTS:
• 📈 Revenue grew 18.0% compared to the previous period.
• 🛒 Order volume increased 12.0% (+25 orders).

📋 RECOMMENDATIONS:
• 🚀 Leverage the positive momentum by increasing investment in top-performing channels.
• 📦 Ensure sufficient stock to sustain demand growth.

测试

# Run unit tests
npm test

# Manual test via JSON-RPC over stdio
export $(grep -v '^#' .env | xargs)
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_sales_summary","arguments":{"period":"month"}}}' | node dist/index.js

# Or use MCP Inspector
npm run inspector

贡献

欢迎投稿!请随时打开问题或提交pull请求。

许可证

麻省理工学院

目录标签

目录标签

TypeScriptClaude库存管理Shopify数据分析本地部署商业智能销售分析客户细分

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

10

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP