Skip to main content
Glama

ShopOps MCP

ShopifyおよびWooCommerceストアを管理するための、Model Context Protocol (MCP) を実装したAI駆動型サーバー。

License: MIT TypeScript MCP


機能

  • ShopifyおよびWooCommerce用のストアコネクタ。

  • 在庫、価格、顧客、注文、製品パフォーマンス、レポートを網羅する11個のMCPツール。

  • ストアの概要、在庫、最近の注文、トップ顧客を公開する4個のMCPリソース。

  • 移動平均需要と安全在庫計算を用いた在庫予測。

  • RFMベースの顧客セグメンテーション(7つの異なるセグメント)。

  • マージンベースの最適化提案を含むデータ駆動型の価格分析。

  • 注文の異常/不正検知。

  • 製品パフォーマンスのABC分析。

  • 自動化された日次および週次レポート。

  • デュアルトランスポート:ローカル stdio および Streamable HTTP (MCPize)。

  • TypeScript、@modelcontextprotocol/sdk v1.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ツール

ツール

説明

store_connect

ShopifyまたはWooCommerceストアへの接続を確立し、認証情報を検証します。

inventory_status

現在の在庫レベル、バックオーダーフラグ、在庫不足アラートを返します。

inventory_forecast

移動平均需要と安全在庫バッファを使用して、将来の在庫要件を予測します。

pricing_analyze

価格弾力性レポートを生成し、価格が不適切な(安すぎる/高すぎる)SKUを特定します。

pricing_optimize

マージン分析、販売速度、設定可能な価格ルールに基づいて、最適な価格ポイントを提案します。

customers_segment

RFM分析を実行し、顧客を7つのセグメントのいずれかに割り当てます。

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

生涯価値(LTV)、購入頻度、直近の購入日によってランク付けされた上位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トランスポート

Streamable 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バケットにアップロードされます。


Proライセンス

ShopOpsは無料モードで提供されます。store_demo_seed、store_connect、inventory_status、pricing_analyze、customers_segment、product_performance、report_daily はオープンです。以下のツールにはProライセンスが必要です:

  • inventory_forecast — 移動平均需要予測 + 再発注点

  • pricing_optimize — 実用的な価格変更の推奨

  • customers_churn — 解約リスクスコアリング + リテンションの推奨

  • order_anomalies — 不正/異常検知

  • report_weekly — 週次トレンドレポート + AIインサイト

Proライセンスを購入する(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 tools
customers_churnChurn RiskA
Read-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 SegmentationA
Read-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 ForecastA
Read-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 StatusA
Read-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 DetectionA
Read-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 AnalysisA
Read-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 OptimizationA
Read-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)A
Read-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 ReportA
Read-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 ReportA
Read-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

    A4.3/5.0

    Scored across 12 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      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.
      -