shopops-mcp
ShopOps MCP
基于 AI 的服务器,实现了用于管理 Shopify 和 WooCommerce 商店的模型上下文协议 (MCP)。
功能特性
商店连接器:支持 Shopify 和 WooCommerce。
11 个 MCP 工具:涵盖库存、定价、客户、订单、产品表现和报告。
4 个 MCP 资源:提供商店概览、库存、近期订单和顶级客户信息。
使用移动平均需求和安全库存计算进行库存预测。
基于 RFM 的客户细分(7 个不同细分市场)。
数据驱动的定价分析,提供基于利润率的优化建议。
订单异常/欺诈检测。
产品表现的 ABC 分析。
自动化每日和每周报告。
双重传输:本地
stdio和可流式传输的 HTTP (MCPize)。TypeScript,
@modelcontextprotocol/sdkv1.29+, Zod v4。提供免费层级,以及 25 美元和 45 美元的付费计划。
Related MCP server: Ecommerce AI 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 工具
工具 | 描述 |
| 建立与 Shopify 或 WooCommerce 商店的连接并验证凭据。 |
| 返回当前库存水平、缺货标记和低库存警报。 |
| 使用移动平均需求和安全库存缓冲来预测未来的库存需求。 |
| 生成价格弹性报告并识别定价过低或过高的 SKU。 |
| 基于利润率分析、销售速度和可配置的定价规则建议最佳价格点。 |
| 执行 RFM 分析并将客户分配到七个细分市场之一。 |
| 对客户进行流失风险评分并提供留存建议。 |
| 使用模式识别模型检测潜在的欺诈或错误订单。 |
| 进行 ABC 分析并返回每个产品类别的贡献指标。 |
| 生成 JSON/CSV 格式的每日运营摘要(销售额、库存、警报)。 |
| 生成包含趋势可视化的每周绩效报告。 |
MCP 资源
资源 | 描述 |
| 高级商店指标:总销售额、订单、客户和毛利率。 |
| 完整的库存目录,包含现有数量、预留库存和预测的短缺情况。 |
| 最近 100 个订单的列表,包含状态、总价值和支付方式。 |
| 按终身价值、购买频率和最近一次购买时间排名的前 50 名客户。 |
配置
在项目根目录创建一个 .env 文件。需要以下变量:
变量 | 所需对象 | 描述 |
| Shopify | 私有应用 API 密钥。 |
| Shopify | 私有应用密码。 |
| Shopify | 商店域名 (例如 |
| WooCommerce | REST API 消费者密钥。 |
| WooCommerce | REST API 消费者密钥。 |
| WooCommerce | 商店 URL (例如 |
| HTTP 传输 | 可流式传输 HTTP 端点的端口 (默认 |
| 全部 | 日志详细程度 ( |
| 定价工具 | 定价策略 ( |
| 库存预测 | 预测天数 (默认 |
可选变量:
变量 | 描述 |
| 设置为 |
| 如果提供,每日/每周报告将上传到指定的 S3 存储桶。 |
专业版许可证
ShopOps 以 免费模式 发布 — store_demo_seed、store_connect、inventory_status、pricing_analyze、customers_segment、product_performance 和 report_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
Available Tools
12 toolscustomers_churnChurn RiskARead-onlyIdempotent
Identify customers at risk of churning based on RFM recency + frequency signals. Returns an object with at_risk, hibernating, and lost arrays — each contains customer id, name, email, last_order_date, days_since_last_order, total_spent, total_orders, and a win_back_recommendation string. Use this for targeted re-engagement campaigns.
Inputs: store_id (required).
customers_segmentCustomer SegmentationARead-onlyIdempotent
RFM (Recency, Frequency, Monetary) customer segmentation. Categorizes customers into segments: Champions, Loyal, Potential, At Risk, New, Hibernating, Lost — with actionable recommendations.
Inputs: store_id (required).
inventory_forecastInventory ForecastARead-onlyIdempotent
Predict stock depletion dates using moving-average sales velocity. Returns reorder points, safety stock levels, and suggested reorder quantities for each product.
Inputs: store_id (required), product_id.
inventory_statusInventory StatusARead-onlyIdempotent
Snapshot of current stock levels for a connected store. Returns a summary object with total product count, out-of-stock count, low-stock count (≤10 units), plus two arrays: out_of_stock and low_stock — each containing product id, title, sku, quantity, and status. Items are sorted by urgency (lowest quantity first). Read-only and idempotent.
Inputs: store_id (required).
order_anomaliesOrder Anomaly DetectionARead-onlyIdempotent
Statistical anomaly detection on recent orders. Flags high-value orders (>3σ from mean), velocity spikes (customer ordering unusually fast), unusual quantities, off-hours purchases (2am-5am), and new-customer high-value orders. Returns an array of anomalies with order_id, anomaly_type, severity (low/medium/high), reason, and recommended_action. Useful for fraud detection and revenue spike investigation.
Inputs: store_id (required).
pricing_analyzePricing AnalysisARead-onlyIdempotent
Analyze pricing across products with margin calculation, sales velocity, and rule-based price optimization suggestions. Returns an array where each element contains product_title, current_price, cost, margin_percent, daily_units_sold, revenue_per_day, suggested_price (or null if no change recommended), and suggestion_reason. Pass product_id to scope to a single product, omit for full catalog.
Inputs: store_id (required), product_id.
pricing_optimizePricing OptimizationARead-onlyIdempotent
Filtered pricing recommendations — only products where a price change is suggested. Returns a summary with total_suggestions count and an optimizations array (product, current_price, suggested_price, change_percent, reason, daily_revenue), sorted by absolute change_percent (biggest moves first). Use this instead of pricing_analyze when you only want actionable changes.
Inputs: store_id (required).
product_performanceProduct Performance (ABC Analysis)ARead-onlyIdempotent
Product performance report with ABC analysis. Category A = top 80% revenue, B = next 15%, C = bottom 5%. Includes trends, margins, and daily sales velocity.
Inputs: store_id (required), period_days.
report_dailyDaily ReportARead-onlyIdempotent
Daily operational report: orders, revenue, top products, new vs returning customers, low stock alerts, and anomaly count.
Inputs: store_id (required), date.
report_weeklyWeekly ReportARead-onlyIdempotent
Weekly trend report: revenue/order changes vs previous week, customer segment distribution, trending products, and AI-generated insights.
Inputs: store_id (required).
store_connectConnect StoreA
Manage Shopify or WooCommerce store connections. action="connect" adds a new store and performs an initial sync of products, orders, and customers; action="sync" refreshes cached data for an existing store; action="list" returns all connected stores with their sync counts. Returns a JSON payload with store metadata (id, name, platform, url, counts, last_sync) — credentials are never returned.
Inputs: action (required), name, platform, url, +3 more.
store_demo_seedSeed Demo StoreA
Create a realistic demo store populated with 20 products, 40 customers across 6 archetype buckets (champions, loyal, new, at-risk, hibernating, one-off), and 150+ orders spanning the last 6 months. Use this to explore ShopOps without real Shopify or WooCommerce credentials — every tool (inventory_status, customers_segment, order_anomalies, report_weekly, etc.) will return meaningful output on the returned store_id. Safe to call multiple times; each call creates a new demo store with a unique ID. Returns the store_id plus product/customer/order counts.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a distinct aspect of shop operations (customers, inventory, orders, pricing, products, reports, store management). Even similar tools like customers_churn and customers_segment have clear differences in scope and output. There is no overlap that would cause confusion.
All tool names follow a consistent 'domain_verb' pattern using snake_case (e.g., customers_churn, inventory_forecast, order_anomalies). This makes it easy to infer the tool's purpose and domain from its name.
With 12 tools, the server covers all essential aspects of shop operations without being overwhelming. Each tool serves a clear purpose, and the count is appropriate for the server's scope.
The tool set provides comprehensive coverage for analyzing and managing a shop: customer segmentation and churn, inventory status and forecasting, order anomaly detection, pricing analysis and optimization, product performance, daily/weekly reports, and store connectivity. There are no obvious gaps for the intended use case.
Maintenance
Related MCP Connectors
Run your online store with your own AI: products, orders, customers, ads, emails and reports.
Let your AI manage WooCommerce and Shopify stores: products, SEO, descriptions and images.
AI commerce for Shopify: product search, comparison, recommendations, and checkout via MCP.
Run storefronts, listings, orders, content, fulfillment, and analytics through AI.
Related MCP Servers
- AlicenseAqualityBmaintenanceMulti-channel inventory intelligence for Shopify and Amazon sellers. 28 tools for stockout risk, demand forecasts, purchase order management, and sales analytics — with human-in-the-loop safeguards.53436 npm2MIT
- AlicenseNot gradedqualityCmaintenanceEcommerce AI - MCP server providing AI-powered tools and automation by MEOK AI Labs9 npm28 PyPIMIT
- FlicenseNot gradedqualityNot gradedmaintenanceHosted 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.-
- FlicenseNot gradedqualityDmaintenanceProvides Shopify demand forecasting, reorder recommendations, and dollar-impact reports as MCP tools.-