Skip to main content
Glama

ShopOps MCP

Сервер на базе ИИ, реализующий протокол Model Context Protocol (MCP) для управления магазинами на Shopify и WooCommerce.

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-анализ и распределяет клиентов по семи сегментам.

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 клиентов, ранжированных по пожизненной ценности (LTV), частоте покупок и давности.


Конфигурация

Создайте файл .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 — отчет о трендах за неделю + ИИ-инсайты

Купить 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.
      -