Skip to main content
Glama

ShopOps MCP

基于 AI 的服务器,实现了用于管理 Shopify 和 WooCommerce 商店的模型上下文协议 (MCP)。

License: MIT TypeScript MCP


功能特性

  • 商店连接器:支持 Shopify 和 WooCommerce。

  • 11 个 MCP 工具:涵盖库存、定价、客户、订单、产品表现和报告。

  • 4 个 MCP 资源:提供商店概览、库存、近期订单和顶级客户信息。

  • 使用移动平均需求和安全库存计算进行库存预测。

  • 基于 RFM 的客户细分(7 个不同细分市场)。

  • 数据驱动的定价分析,提供基于利润率的优化建议。

  • 订单异常/欺诈检测。

  • 产品表现的 ABC 分析。

  • 自动化每日和每周报告。

  • 双重传输:本地 stdio 和可流式传输的 HTTP (MCPize)。

  • TypeScript, @modelcontextprotocol/sdk v1.29+, Zod v4。

  • 提供免费层级,以及 25 美元和 45 美元的付费计划。


Related MCP server: Commerce-MCP

快速入门

# 1. Install the package
npm i shopops-mcp

# 2. Create a .env file (see Configuration section)
cp .env.example .env

# 3. Run the server (local stdio mode)
npx shopops-mcp run --transport stdio

# 4. Or start the HTTP endpoint (MCPize deployment)
npx shopops-mcp run --transport http --port 8080

服务器将读取环境变量,连接到配置的商店,并公开 MCP 工具和资源。


MCP 工具

工具

描述

store_connect

建立与 Shopify 或 WooCommerce 商店的连接并验证凭据。

inventory_status

返回当前库存水平、缺货标记和低库存警报。

inventory_forecast

使用移动平均需求和安全库存缓冲来预测未来的库存需求。

pricing_analyze

生成价格弹性报告并识别定价过低或过高的 SKU。

pricing_optimize

基于利润率分析、销售速度和可配置的定价规则建议最佳价格点。

customers_segment

执行 RFM 分析并将客户分配到七个细分市场之一。

customers_churn

对客户进行流失风险评分并提供留存建议。

order_anomalies

使用模式识别模型检测潜在的欺诈或错误订单。

product_performance

进行 ABC 分析并返回每个产品类别的贡献指标。

report_daily

生成 JSON/CSV 格式的每日运营摘要(销售额、库存、警报)。

report_weekly

生成包含趋势可视化的每周绩效报告。


MCP 资源

资源

描述

store://overview

高级商店指标:总销售额、订单、客户和毛利率。

store://inventory

完整的库存目录,包含现有数量、预留库存和预测的短缺情况。

store://orders/recent

最近 100 个订单的列表,包含状态、总价值和支付方式。

store://customers/top

按终身价值、购买频率和最近一次购买时间排名的前 50 名客户。


配置

在项目根目录创建一个 .env 文件。需要以下变量:

变量

所需对象

描述

SHOPIFY_API_KEY

Shopify

私有应用 API 密钥。

SHOPIFY_API_PASSWORD

Shopify

私有应用密码。

SHOPIFY_STORE_DOMAIN

Shopify

商店域名 (例如 myshop.myshopify.com)。

WOOCOMMERCE_CONSUMER_KEY

WooCommerce

REST API 消费者密钥。

WOOCOMMERCE_CONSUMER_SECRET

WooCommerce

REST API 消费者密钥。

WOOCOMMERCE_STORE_URL

WooCommerce

商店 URL (例如 https://example.com)。

MCP_PORT

HTTP 传输

可流式传输 HTTP 端点的端口 (默认 8080)。

MCP_LOG_LEVEL

全部

日志详细程度 (error, warn, info, debug)。

MCP_PRICING_MODEL

定价工具

定价策略 (margin_based)。

MCP_FORECAST_WINDOW_DAYS

库存预测

预测天数 (默认 30)。

可选变量:

变量

描述

MCP_ENABLE_ANONYMIZATION

设置为 true 时,报告中的个人身份数据将被掩码处理。

MCP_REPORT_S3_BUCKET

如果提供,每日/每周报告将上传到指定的 S3 存储桶。


专业版许可证

ShopOps 以 免费模式 发布 — store_demo_seedstore_connectinventory_statuspricing_analyzecustomers_segmentproduct_performancereport_daily 是开放的。以下工具需要 专业版许可证

  • inventory_forecast — 移动平均需求预测 + 再订货点

  • pricing_optimize — 可操作的价格调整建议

  • customers_churn — 流失风险评分 + 留存建议

  • order_anomalies — 欺诈/异常检测

  • report_weekly — 周环比趋势报告 + AI 洞察

购买专业版许可证 (€29,终身,3 台机器): https://automatiabcn.lemonsqueezy.com/buy/cbbe44f0-a146-4c65-88c8-71f371037758

或者获取 Indie MCP Stack Bundle (€69,包含所有 4 个服务器)。

export LEMONSQUEEZY_LICENSE_KEY=YOUR-KEY-HERE

或者在您的 MCP 客户端配置中:

{
  "mcpServers": {
    "shopops-mcp": {
      "command": "npx",
      "args": ["-y", "shopops-mcp-server"],
      "env": { "LEMONSQUEEZY_LICENSE_KEY": "YOUR-KEY-HERE" }
    }
  }
}

验证信息在本地缓存 24 小时 — 首次运行后完全支持离线使用。


许可证

ShopOps MCP 在 MIT 许可证 下发布。请参阅 LICENSE 获取完整条款。


作者:Automatia BCN

A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
1dRelease cycle
3Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    D
    quality
    D
    maintenance
    Enables natural-language control of e-commerce operations including product management, order processing, inventory tracking, customer service, content generation, and advertising analytics through 15 integrated MCP tools. Provides a local-first commerce automation solution with SQLite storage and extensible channel adapters for end-to-end online store workflows.
    15
    3
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Hosted MCP server connecting Shopify, Klaviyo, GA4, Meta Ads, Google Ads, Xero, Gorgias and 20+ e-commerce data sources so AI assistants can answer merchant questions that span every source at once.

View all related MCP servers

Related MCP Connectors

  • Connect e-commerce and marketing data to AI assistants via MCP.

  • Co-purchase intelligence and merchant ops tools for AI shopping, ecommerce, and B2B agents

  • Manage your Jumpseller store with AI. Products, orders, customers, and more.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/automatiabcn/shopops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server