Skip to main content
Glama
@marketbasketanalysis/mcp

@marketbasketanalysis/mcp

by 48x-ai

@marketbasketanalysis/mcp

npm version License MCP

Ein MCP-Server, der jeder KI-Agentur Zugriff auf echte Co-Purchase-Intelligenz und Merchant-Ops-Werkzeuge aus der Bestellhistorie eines E-Commerce-Händlers gibt. 19 Tools in den Bereichen Discovery, Bundle, Insight, Replenishment, Merchant Ops und Advanced Mining. Funktioniert mit Claude Desktop, Claude Code, Cursor, Windsurf, Cline, dem OpenAI Agent SDK und jedem anderen Host, der das MCP-stdio-Protokoll spricht. Funktioniert für Händler auf Shopify, BigCommerce, WooCommerce, Magento und OroCommerce. Siehe „Plattformabdeckung“ weiter unten für die Tools, die die selbst gehosteten Backends erreichen.

Ein einziges npm-Paket bedient jeden Marktplatz. Der Server ist plattformagnostisch; er ist ein HTTP-Client, der über die öffentliche REST-API das MBA-Backend eines Stores aufruft. Sie richten den gesamten Server mit einem einzigen Schalter auf einen beliebigen Store aus (MBA_API_BASE, siehe unten). Die meisten Tools funktionieren auf allen fünf Plattformen; einige wenige hängen von einer Backend-Route ab, die noch nicht jede Plattform ausliefert. Die Marktplatzabdeckung pro Tool ist die Spalte „Marktplatz“ im Tool-Katalog.

Warum es das gibt

Wenn ein Kunde einen KI-Einkaufsagenten fragt: „Was passt zu dem Fitnessrucksack?“, sollte der Agent eine echte Antwort auf Basis der tatsächlichen Bestelldaten des Händlers geben – keine generische „Das könnte Ihnen auch gefallen“-Vermutung. Wenn ein Händler Claude fragt: „Woran sollte ich diese Woche arbeiten?“, sollte der Agent aus einem priorisierten Wochenplan schöpfen und nicht Aufgaben erfinden. Dieser Server macht beide Abläufe für jeden MCP-Host mit einer einzigen Konfigurationszeile verfügbar.

Related MCP server: dentro MCP

5-Zeilen-Installation (Claude Desktop)

{
  "mcpServers": {
    "marketbasketanalysis": {
      "command": "npx",
      "args": ["-y", "@marketbasketanalysis/mcp"],
      "env": { "MBA_API_KEY": "mba_live_YOUR_KEY_HERE" }
    }
  }
}

Fügen Sie den Code in ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) ein, starten Sie Claude Desktop neu, und der marketbasketanalysis-Server erscheint mit allen 19 Tools in der Tool-Liste.

Zero-Installation: der gehostete Endpunkt

Der gleiche Server läuft gehostet unter https://mcp.marketbasketanalysis.com/mcp (MCP streamable HTTP). Nichts zu installieren; senden Sie Ihren Schlüssel als Bearer-Header statt als Umgebungsvariable:

claude mcp add --transport http marketbasketanalysis \
  https://mcp.marketbasketanalysis.com/mcp \
  --header "Authorization: Bearer mba_live_YOUR_KEY_HERE"

Funktioniert mit jedem Remote-fähigen MCP-Client (Claude Code, Cursor, Smithery, benutzerdefinierte Agenten). Optionale Header: X-MBA-Base richtet den Server auf eine andere MBA-betriebene Ebene aus (z. B. https://bigcommerce.marketbasketanalysis.com); X-MBA-Platform spiegelt die Umgebungsvariable MBA_PLATFORM. Selbst gehostete WooCommerce- und Magento-Stores sind vom gehosteten Endpunkt aus bewusst nicht erreichbar; verwenden Sie die obige npx-Installation mit MBA_API_BASE, die auf Ihre eigene Site zeigt.

Den Server auf Ihren Store ausrichten (MBA_API_BASE)

Die Basis-URL ist pro Store konfiguriert. Standardmäßig spricht der Server mit dem gemeinsamen gehosteten Backend unter https://app.marketbasketanalysis.com. Wenn Ihre Daten woanders liegen – ein BigCommerce-Store, ein selbst gehostetes Backend oder eine Staging-Instanz – setzen Sie MBA_API_BASE, damit jedes Tool Ihre eigene Datenebene erreicht:

{
  "mcpServers": {
    "marketbasketanalysis": {
      "command": "npx",
      "args": ["-y", "@marketbasketanalysis/mcp"],
      "env": {
        "MBA_API_KEY": "mba_live_YOUR_KEY_HERE",
        "MBA_API_BASE": "https://your-store-backend.example.com"
      }
    }
  }
}

MBA_API_BASE ist der einzige Schalter, der den gesamten Server umrichtet; alle 19 Tools laufen darüber. Der Wert muss für nicht-lokale Hosts eine https://-URL sein (Loopback-, private, Link-Local- und Metadaten-Dienst-Hosts werden abgelehnt). Für die lokale Entwicklung gegen ein Backend auf localhost setzen Sie ALLOW_LOCAL_API_BASE=1, um eine http://localhost-Basis zuzulassen. Änderungen an Umgebungsvariablen werden beim Serverstart wirksam; starten Sie Ihren MCP-Host nach dem Bearbeiten des Werts neu.

MBA_API_BASE nach Plattform

Die Basis-URL ist pro Store konfiguriert. Shopify-, BigCommerce- und OroCommerce-Stores werden vom gemeinsamen gehosteten Backend bedient und verwenden daher den Standardwert. WooCommerce und Magento betreiben das Backend lokal in der Store-Installation; richten Sie den Server daher auf die eigene Domain des Stores aus:

Plattform

MBA_API_BASE

Shopify

nicht gesetzt (gehosteter Standardwert https://app.marketbasketanalysis.com)

BigCommerce

nicht gesetzt (gehosteter Standardwert)

OroCommerce

nicht gesetzt (schlanker gehosteter Client, gleiches gehostetes Backend)

WooCommerce

https://your-store.example.com (WordPress-Site-URL). Seine Routen liegen unter marketbasketanalysis/v1; der Server mappt Pfade automatisch. Siehe „Plattformabdeckung“ für die Tools, die gelten.

Magento

https://your-magento.example.com (die /rest-Basis). Seine Routen liegen unter V1/marketbasketanalysis; der Server mappt Pfade automatisch. Siehe „Plattformabdeckung“ für die Tools, die gelten.

Plattformabdeckung

Der Server erzeugt kanonische /api/v1/...-Pfade und schreibt sie pro Plattform um, weil WooCommerce und Magento das Backend innerhalb des Stores mit ihren eigenen REST-Konventionen betreiben (marketbasketanalysis/v1 bzw. V1/marketbasketanalysis).

10 der 19 Tools erreichen WooCommerce und Magento: die sechs, die von /recommendations abgeleitet sind (get_recommendations, get_bundle_for_cart, score_cross_sell, analyze_basket, propose_subscription_bundle, score_return_risk), plus find_substitutes, get_rationale, forecast_bundle und predict_reorder.

Die anderen 9 sind die Händler-Ops-Oberfläche: get_opportunities, triage_opportunity, get_weekly_plan, execute_weekly_plan_action, get_drift_alerts, get_forecast_alerts, explain_opportunity, explain_drift und mine_hui_itemsets. Diese Endpunkte existieren auf den selbst gehosteten Backends nicht. Ein Aufruf dort liefert eine klare „auf dieser Plattform nicht verfügbar“-Fehlermeldung, die den Endpunkt nennt, ohne Netzwerk-Round-Trip, statt eines undurchsichtigen 404.

Für die Schritt-für-Schritt-Installation (Speicherort der Config-Datei je Betriebssystem, wo Sie einen API-Schlüssel ausstellen, Fehlerbehebung):

Authentifizierung

Der Server liest MBA_API_KEY aus der Umgebung, die Ihr MCP-Host übergibt, und sendet ihn bei jeder Anfrage als Bearer-Token. So erhalten Sie einen Schlüssel:

  1. Öffnen Sie die MarketBasketAnalysis-Verwaltung (Shopify-App-Drawer oder BigCommerce-/WooCommerce-/Magento-/OroCommerce-Verwaltung).

  2. Klicken Sie im linken Navigationsbereich auf „API keys“.

  3. Klicken Sie auf „Create key“, benennen Sie ihn und kopieren Sie den mba_live_-Wert (er wird nur einmal angezeigt).

Schlüssel sind pro Shop, widerrufbar und können über denselben Bildschirm rotiert werden. Es wird nur der SHA-256-Hash gespeichert; stellen Sie also einen neuen Schlüssel aus, falls ein Schlüssel durchsickert.

Das Authentifizierungsmodell unterscheidet sich je nach Marktplatz; der MCP-Server abstrahiert es, aber es ist wissenswert:

  • Shopify, BigCommerce: Bearer mba_live_... direkt durchgereicht. Das ist der übliche Weg.

  • WooCommerce: Bearer gegen einen von Woo ausgestellten Schlüssel, der für predict_reorder den Bereich customer_data tragen muss.

  • Magento: Die Tools erreichen den Store über die Magento-REST-Oberfläche (/V1/marketbasketanalysis/* und /V1/mba/*); einige Routen sind auf der Store-Seite per Admin-Token / ACL abgesichert.

  • OroCommerce: Der Store sitzt für /api/-Routen hinter der OAuth2-Firewall der Plattform; das gehostete Backend, an das der schlanke Client weiterleitet, ist das, was der MCP-Server tatsächlich aufruft; der mba_live_-Schlüssel gilt also weiterhin.

Tool-Katalog

19 Tools, organisiert in die vier Basket-AI-Agent-Rollen plus zwei operative Gruppen. Die Spalte Marktplatz gibt an, welche Backends die Route ausliefern, die das Tool aufruft – das ist nicht dasselbe wie die Backends, die dieser Server derzeit ERREICHEN kann: siehe „Plattformabdeckung“ oben. „Alle fünf“ bedeutet Shopify, BigCommerce, WooCommerce, Magento, OroCommerce.

Entdeckung

Tool

Beschreibung

Erforderliche Parameter

Marktplatz

get_recommendations

Komplementärprodukte für ein einzelnes Produkt.

product_id

Alle fünf

find_substitutes

Ersatzoptionen, wenn ein Produkt nicht verfügbar ist.

product_id

Alle fünf

get_rationale

Ein-Satz-„Warum“ für ein Empfehlungspaar.

product_id, related_product_id

Alle fünf

Bundle

Diese leiten alles von /recommendations ab (der Server setzt die Bundle-/Scoring-Logik clientseitig zusammen), benötigen also keine zusätzliche Backend-Route und funktionieren überall.

Tool

Beschreibung

Erforderliche Parameter

Marktplatz

get_bundle_for_cart

Fehlende Kit-Komponenten für einen Warenkorb mit mehreren Artikeln.

product_ids

Alle fünf

propose_subscription_bundle

Vorschlag für ein wiederkehrendes Abo-Kit.

seed_product_ids

Alle fünf

Erkenntnis

Ebenfalls von /recommendations abgeleitet, also universell.

Tool

Beschreibung

Erforderliche Parameter

Marktplatz

score_cross_sell

Stärkeurteil für ein Paar (a, b).

product_a, product_b

Alle fünf

score_return_risk

Retourenrisiko-Score für ein Bundle.

product_ids

Alle fünf

analyze_basket

Kohäsions-Score für ein vorgeschlagenes Bundle.

product_ids

Alle fünf

Wiederauffüllung + Prognose

Tool

Beschreibung

Erforderliche Parameter

Marktplatz

predict_reorder

B2B-Nachbestellfrequenz pro Kunde / SKU.

customer_id

Shopify, BigCommerce, WooCommerce, Magento. Ausgeblendet bei MBA_PLATFORM=orocommerce.

forecast_bundle

Wöchentliche Holt-Winters-Prognose + Bestellmenge.

bundle_id

Shopify, BigCommerce, Magento (/forecast/bundle-inventory). Nicht auf OroCommerce.

Händler-Ops

Diese rufen Bearer-/api/v1-Routen auf, die heute auf BigCommerce ausgeliefert werden. Shopify bedient Opportunities, Drift und den Wochenplan über seine eingebetteten Admin-Ansichten statt über eine /api/v1-Route, daher werden diese Tools gegen ein BigCommerce-Backend aufgelöst. Die eine Ausnahme ist /explain-opportunity, das jetzt auf BigCommerce und Shopify ausgeliefert wird; /explain-drift bleibt BigCommerce-exklusiv. Die Tools zeigen auf Plattformen ohne die Route einen sauberen Upstream-404.

Tool

Beschreibung

Erforderliche Parameter

Marketplace

get_weekly_plan

Priorisierte wöchentliche Aktionsliste.

(keine)

BigCommerce

execute_weekly_plan_action

Eine bestimmte Aktion ausführen (mit Bestätigungs-Gate).

action_id, confirm

BigCommerce

get_opportunities

Ermittelte Opportunities, nach Priorität sortiert.

(keine)

BigCommerce

explain_opportunity

Statistiken (Support / Konfidenz / Lift / Stichprobenanzahl) plus eine vorlagenbasierte Erklärung „Warum dies ein gutes Cross-Selling ist“ für eine Opportunity.

opportunity_id

BigCommerce, Shopify

triage_opportunity

Aktivieren / Pausieren / Archivieren (mit Bestätigungs-Gate).

opportunity_id, action, confirm

BigCommerce (POST /opportunities/{id}/action); Admin-Grid auf anderen Plattformen.

get_drift_alerts

Regeln, deren Konfidenz abgedriftet ist.

(keine)

BigCommerce

explain_drift

Statistiken plus eine vorlagenbasierte Erklärung „Warum dieses Paar abgedriftet ist“ für einen Drift-Alert (fällt bei einem nicht mehr vorhandenen Paar kontrolliert zurück).

alert_id

BigCommerce

get_forecast_alerts

Bundles, bei denen ein Stockout-/Nachfragerückgangsrisiko besteht.

(keine)

BigCommerce

Erweitertes Mining

Tool

Beschreibung

Erforderliche Parameter

Marketplace

mine_hui_itemsets

High-Utility-Itemset-Mining (Plus / Enterprise).

orders

Shopify, BigCommerce, WooCommerce, OroCommerce. Plus-/Enterprise-Tarif.

Beispiel-Prompts pro Tool

Fügen Sie einen davon in einen Claude Desktop / Claude Code / Cursor Chat ein, nachdem Sie den Server eingerichtet haben:

  • get_recommendations: "Verwenden Sie marketbasketanalysis, um herauszufinden, was Kunden außerdem mit dem Gym-Rucksack (Produkt 8472918765) kaufen."

  • find_substitutes: "Das DSLR-Gehäuse ist ausverkauft. Was ist ein guter Ersatz?"

  • get_rationale: "Warum wird die Wasserflasche zusammen mit dem Gym-Rucksack empfohlen?"

  • get_bundle_for_cart: "Ich habe ein Kamera-Gehäuse, eine 32GB-SD-Karte und ein Stativ in meinem Warenkorb. Was fehlt wahrscheinlich, um daraus ein komplettes Set zu machen?"

  • propose_subscription_bundle: "Erstelle ein monatliches Abo-Bundle für Kunde 9876."

  • score_cross_sell: "Ist ein Reinigungsset ein gutes Cross-Selling für das DSLR-Kamera-Gehäuse?"

  • score_return_risk: *"Wie hoch ist das Rückgaberisiko für das Kamera-Gehäuse + Objektiv

    • Stativ + Tasche-Bundle?"*

  • analyze_basket: "Ich überlege, Kamera + Objektiv + SD-Karte + Tasche als Bundle anzubieten. Ist das auf Basis tatsächlicher Kundendaten ein starkes Bundle?"

  • predict_reorder: "Was muss Acme Corp (Kunde 7654321) diese Woche nachbestellen?"

  • forecast_bundle: "Prognostiziere das Bundle b-camera-kit für die nächsten 12 Wochen und empfehle eine Bestellmenge."

  • get_weekly_plan: "Was steht auf meinem Wochenplan?"

  • execute_weekly_plan_action: "Führe Aktion a-42 aus meinem Wochenplan aus, bestätigt."

  • get_opportunities: "Zeig mir meine drei besten vorgeschlagenen Opportunities."

  • explain_opportunity: "Warum ist Opportunity opp-17 ein gutes Cross-Selling?"

  • triage_opportunity: "Aktiviere Opportunity opp-17, bestätigt."

  • get_drift_alerts: "Driften irgendwelche meiner Regeln?"

  • explain_drift: "Warum ist das Paar in Drift-Alert alert-7 abgedriftet?"

  • get_forecast_alerts: "Welche Bundles sind von einem Stockout bedroht?"

  • mine_hui_itemsets: "Extrahiere die Top-20-High-Utility-Itemsets aus diesen 90-Tage-Bestelldaten." (Plus-/Enterprise-Tarif)

Ausführliche Dokumentation zu den einzelnen Tools finden Sie im cookbook.

Umgebungsvariablen

Variable

Erforderlich

Standard

Hinweise

MBA_API_KEY

ja

--

Der mba_live_...-Schlüssel aus Ihrer Admin-Oberfläche

MBA_API_BASE

nein

https://app.marketbasketanalysis.com

Basis-URL pro Store. Setzen Sie dies für BigCommerce-, Self-hosted- oder Staging-Backends, damit der Server auf Ihre Datenebene zeigt. Muss für nicht-lokale Hosts https:// sein.

MBA_PLATFORM

nein

(any)

Setzen Sie dies auf shopify oder bigcommerce, um plattformabhängige Tools verfügbar zu machen (z. B. predict_reorder).

MBA_SENTRY_DSN

nein

--

Opt-in-Fehlertelemetrie (händlergesteuert)

MBA_DEBUG_ERRORS

nein

--

Setzen Sie dies auf 1, um die Fehlerantworten des Upstream-Dienstes auf stderr auszugeben.

ALLOW_LOCAL_API_BASE

nein

--

Setzen Sie dies auf 1, um localhost in MBA_API_BASE während der Entwicklung zuzulassen.

Entwicklung

git clone https://github.com/48x-ai/marketbasketanalysis-mcp
cd marketbasketanalysis-mcp
npm install
npm run typecheck
npm test
npm run dev    # tsx-based local run
npm run build  # emit ./dist

Ein neues Tool hinzufügen

Jedes Tool ist ein eigenständiges Modul unter src/tools/. So fügen Sie eines hinzu:

  1. Erstellen Sie src/tools/myNewTool.ts, das definition und handler exportiert. Orientieren Sie sich für ein einfaches GET an src/tools/getRecommendations.ts oder für ein POST mit Bestätigungs-Gate an src/tools/triageOpportunity.ts.

  2. Registrieren Sie es in src/tools/index.ts, indem Sie das Modul importieren und zum allModules-Array hinzufügen.

  3. Fügen Sie Tests in src/tools/myNewTool.test.ts hinzu, die Folgendes abdecken: Antwort bei fehlendem Schlüssel, Happy Path und mindestens einen Upstream-Fehlerpfad. Orientieren Sie sich an src/tools/findSubstitutes.test.ts.

  4. Dokumentieren Sie es in der obigen Tabelle und in dist/mcp/smithery.yaml.

Distributionsartefakte

Das Verzeichnis dist/mcp/ im Monorepo-Root enthält die Installationsbeispiele (Claude Desktop, Cursor, Windsurf), die Smithery-YAML und die Einreichungsinhalte für den Anthropic-Marketplace. Die vollständige Struktur finden Sie in dist/mcp/README.md.

Veröffentlichung

Erhöhen Sie die Version in package.json (halten Sie server.json und src/index.ts synchron), führen Sie den Merge zu main durch, taggen Sie dann mcp-v$VERSION und pushen Sie den Tag. Der Workflow führt Typecheck, Test, Build und eine Prüfung auf Übereinstimmung von Tag und Version aus und führt dann mit dem Repository-Secret NPM_TOKEN den Befehl npm publish --access public --provenance aus. Für Rettungsläufe steht ein manueller workflow_dispatch-Auslöser zur Verfügung.

Die vollständige Operator-Checkliste, einschließlich der einmaligen Einrichtung von NPM_TOKEN und eines manuellen Publish-Fallback ohne CI, finden Sie in docs/RELEASE.md.

Fehlerbehebung

Symptom

Ursache / Behebung

Server erscheint nicht in der Tool-Auswahl

JSON-Tippfehler oder npx nicht im PATH. Prüfen Sie das MCP-Protokoll des Hosts.

"Fehler: MBA_API_KEY-Umgebungsvariable nicht gesetzt"

env-Block fehlt oder Wert leer.

"MBA API 401"

Schlüssel widerrufen oder falsch; stellen Sie einen neuen aus.

"MBA API nicht erreichbar"

Netzwerkverbindung fehlgeschlagen; prüfen Sie https://status.marketbasketanalysis.com.

Tool-Timeout beim ersten Aufruf

Der erste npx -y-Kaltstart lädt das Paket herunter; für schnellere Wiederholungen global installieren.

"MBA API hat eine fehlerhafte Antwort zurückgegeben"

Abweichung des Upstream-Backends; setzen Sie MBA_DEBUG_ERRORS=1, um den Body in stderr zu sehen.

predict_reorder fehlt

Das Tool ist plattformabhängig: Es wird registriert, wenn MBA_PLATFORM nicht gesetzt, shopify oder bigcommerce ist. Die Route zur Nachbestellungsprognose existiert auch auf WooCommerce und Magento, aber das Tool-Gate legt sie dort noch nicht offen.

Für weiterführende Diagnosen siehe die jeweilige Setup-Dokumentation pro IDE unter dist/mcp/.

Lizenz

UNLICENSED, proprietär.

Available Tools

19 tools
analyze_basketAInspect

Run market-basket analysis on a proposed basket / bundle to score its cohesion. Given 2+ products, returns a cohesion score 0..1 representing how strongly they bind together (their affinity) in the merchant's order data. Use this to vet a proposed bundle BEFORE recommending it, so agents can avoid suggesting bundles that look plausible but have no statistical signal. Also useful for 'is this a good bundle?', 'analyze this basket', or 'do these products go together?' questions.

Inputs: product_ids (required).

execute_weekly_plan_actionAInspect

Execute a specific action from the merchant's weekly plan (publish bundle, run mining job, archive rule, etc.). Idempotent by action_id, safe to retry. Use this AFTER the merchant has confirmed which action from get_weekly_plan they want to run; do not call preemptively. Merchant-ops surface: BigCommerce today; on other platforms merchants manage this from the admin, and the tool returns a clear not-available message.

Inputs: confirm (required), action_id (required).

explain_driftAInspect

Explain ONE drift alert: return its prior and current confidence (plus support, lift, and order sample count when the rule is still live) and a short plain-language narrative of how the pair moved versus the prior mining run. Use this when a merchant asks 'why did this pair drift?', 'explain this alert', or 'what changed for these two products?' after seeing it in get_drift_alerts. Different from get_drift_alerts: that lists the feed, this drills into a single alert_id with the change spelled out in a sentence. Handles a disappeared pair gracefully (only the prior confidence is available). BigCommerce only today.

Inputs: alert_id (required).

explain_opportunityAInspect

Explain ONE mined opportunity: return its support, confidence, lift, and order sample count plus a short plain-language narrative of why the pair is a good cross-sell. Use this when a merchant asks 'why is this a good cross-sell?', 'explain this opportunity', or 'why should I bundle these?' after seeing it in get_opportunities. Different from get_opportunities: that lists the ranked set, this drills into a single opportunity_id with the stats spelled out in a sentence. Different from get_rationale: rationale is a generic pair 'why', this is the specific mined opportunity's own numbers. BigCommerce only today.

Inputs: opportunity_id (required).

find_substitutesAInspect

For a given product, recommend the top substitute items that could REPLACE it (not complement it). Substitutes are the inverse of cross-sell: this answers 'what to buy instead', not 'what to buy with'. Use this when the user asks 'what's a substitute for X?', 'X is out of stock, what's a good alternative?', 'recommend a replacement for Y', 'find an equivalent product', or when a procurement agent needs to swap an unavailable SKU. Returns a ranked list with a similarity score and a reason (context_similar / category_match / vendor_match). Works for all five platforms: Shopify, BigCommerce, WooCommerce, Magento, and OroCommerce.

Inputs: product_id (required), limit.

forecast_bundleAInspect

For an inventory, purchasing, or merchant-ops agent: forecast weekly sales and recommend a buy quantity for a specific bundle over a configurable horizon. Uses additive Holt-Winters on the bundle's stored historical sales (demand forecasting). Use this when the agent asks 'how many of bundle X should I order?', 'what should I stock for the next N weeks?', 'what's the demand outlook for bundle Y?', or 'forecast the next 8 weeks for the camera bundle'.

Inputs: bundle_id (required), horizon_weeks.

get_bundle_for_cartAInspect

Given a list of products already in the cart, recommend products that frequently bundle with the cart to complete a high-confidence bundle. This is multi-item basket analysis for cart completion. Use when the user describes a multi-item cart and asks 'what else do I need?', 'what completes this set?', 'what's missing from this bundle?', 'recommend add-ons for this cart', or similar. Different from get_recommendations: this takes MULTIPLE products and returns items that pair with the cart as a whole, not single-item pairings.

Inputs: product_ids (required), limit.

get_drift_alertsAInspect

For a merchant-ops or analytics agent: list active drift alerts, the recommendation rules whose confidence has materially changed (weakened, strengthened, disappeared, emerged) versus the prior mining job. Use this when a merchant asks 'what's changed?', 'is my model still accurate?', 'are any rules drifting?', or wants to investigate a SKU swap / seasonal shift. Merchant-ops surface: BigCommerce today; on other platforms merchants manage this from the admin, and the tool returns a clear not-available message.

Inputs: limit, severity.

get_forecast_alertsAInspect

For an inventory or merchant-ops agent: list forecast-based alerts, the bundles with stockout risk, demand drop, demand spike, or an unreliable forecast curve. Use this when a merchant asks 'what's at risk of stockout?', 'which bundles are losing demand?', 'do I need to reorder anything?', or 'what should I restock?'. Pair with forecast_bundle to drill into a specific bundle. Merchant-ops surface: BigCommerce today; on other platforms merchants manage this from the admin, and the tool returns a clear not-available message.

Inputs: kind, limit, severity.

get_opportunitiesAInspect

List the merchant's ranked bundle / cross-sell opportunities mined from order history, with support / confidence / lift / revenue-weighted score. Use this when a merchant asks 'what are my top opportunities?', 'show me the best bundles I haven't published yet', or 'what should I prioritize?'. Pair with triage_opportunity to act on a specific one. Merchant-ops surface: BigCommerce today; on other platforms merchants manage this from the admin, and the tool returns a clear not-available message.

Inputs: limit, status.

get_rationaleAInspect

Fetch the one-sentence rationale for why product B is recommended alongside product A. Returns a short merchandiser-grade explanation ('these are commonly bought together by customers buying X') suitable for surfacing in a recommendation tile or chat reply. Use this after get_recommendations / get_bundle_for_cart when the agent or user asks 'why are these recommended together?' or 'explain this pairing'.

Inputs: product_id (required), related_product_id (required).

get_recommendationsAInspect

For a given product, recommend the top complementary, frequently-bought-together products customers also bought, based on mined order-history association rules. This is the single-product cross-sell tool. Use this when the user asks 'what goes with X?', 'what should I bundle with X?', 'what do customers also buy with X?', 'recommend products to cross-sell with X', or similar single-product co-purchase questions. Works for all five platforms: Shopify, BigCommerce, WooCommerce, Magento, and OroCommerce.

Inputs: product_id (required), limit.

get_weekly_planAInspect

Fetch the current weekly action plan for the merchant: a ranked list of typed actions (publish opportunity, retire stale bundle, reorder inventory, investigate drift, etc.) the merchant should take this week. Use this when a merchant asks 'what should I work on this week?', 'what's on my plate?', 'show me my weekly plan', or wants a summary of pending tasks before opening the admin. Merchant-ops surface: BigCommerce today; on other platforms merchants manage this from the admin, and the tool returns a clear not-available message.

Inputs: no named parameters.

mine_hui_itemsetsAInspect

Run high-utility itemset (HUI) mining on a caller-supplied payload of orders + per-line unit_profit. Returns top-K itemsets ranked by aggregate utility (sum of profit across all occurrences). Use this when an agent needs to evaluate which item combinations drive the most profit (not just frequency) for a specific time window or product subset. Plus or Enterprise tier required on the merchant account.

Inputs: orders (required), top_k, min_utility.

predict_reorderAInspect

For a sales-rep or inventory / account-management agent: predict when a B2B customer / account is due to reorder. Returns predicted next-order dates for every SKU the customer has ordered >=2 times, with confidence based on the regularity of their cadence (reorder prediction / replenishment forecasting). Bucketed into 'overdue' / 'due_soon' / 'on_track' / 'not_predictable'. Use this when the agent asks 'what's Acme Corp due to reorder?', 'when will customer X need more of Y?', 'show me stockout risks for my B2B accounts', or for proactive replenishment workflows. Works on the Shopify, BigCommerce, WooCommerce, and Magento backends. Not available on OroCommerce.

Inputs: customer_id (required), product_id.

propose_subscription_bundleAInspect

Propose a recurring subscription bundle for a customer based on their first-order items. Given 1-5 seed products the customer has bought, returns a recurring subscription bundle (3-6 items) of the seeds plus complementary products, with a predicted cadence (median days between reorders), a 0..1 confidence score, and a rough monthly_value when prices are known. Use this when a merchant agent asks 'what should they subscribe to?', 'build a monthly subscription bundle from this order', 'propose a subscription bundle', 'recommend a recurring replenishment bundle', or 'what's the right subscription frequency for this customer?'. If a customer_id is supplied the tool blends in the customer's per-SKU reorder cadence; without one it falls back to the seed catalog cohesion alone. Works for all five platforms: Shopify, BigCommerce, WooCommerce, Magento, and OroCommerce (the optional reorder-cadence blend needs a customer_id and is not available on OroCommerce).

Inputs: seed_product_ids (required), kit_size, customer_id, cadence_days.

score_cross_sellAInspect

Score the cross-sell strength (product affinity) between two specific products. Returns the confidence the merchant's real co-purchase data supports for the pair, or a clear 'no signal' result when there's no qualifying rule. Use this to validate a proposed pair before recommending it, or to answer 'is X a good cross-sell for Y?', 'how strong is the affinity between X and Y?', or 'how often are X and Y bought together?'.

Inputs: product_a (required), product_b (required).

score_return_riskAInspect

Predict return risk for a candidate bundle of 2-6 products. Returns the composite bundle return rate (max of items, since one returned item typically returns the whole bundle), each item's historical return rate, and a low/medium/high risk recommendation. Use this when the user asks 'will this bundle get returned?', 'predict return risk for these items', 'fashion bundle risk', 'is this set risky to ship together?', or when an agent is composing a bundle and wants to verify it won't tank the merchant's return KPIs. Backed by return-aware mining over the merchant's real order + refund history.

Inputs: product_ids (required), threshold.

triage_opportunityAInspect

Pause, activate, or archive a specific opportunity from get_opportunities. State-mutating; guarded by confirm=true. Use this after the merchant has explicitly picked an opportunity to act on. Pass action='activate' to publish a proposed rule, 'pause' to temporarily hide an active one, 'archive' to permanently retire it. Merchant-ops surface: BigCommerce today; on other platforms merchants manage this from the admin, and the tool returns a clear not-available message.

Inputs: action (required), confirm (required), opportunity_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 19 tools

    Disambiguation4/5

    Most tools are clearly differentiated by resource and action (single-product vs cart vs subscription, list vs explain vs act), and several descriptions explicitly call out differences from related tools. However, the cluster of explanation tools (get_rationale, explain_opportunity, explain_drift) and the several scoring/analysis tools (score_cross_sell, analyze_basket, score_return_risk) could still cause minor selection confusion from names alone.

    Naming Consistency4/5

    All tool names follow snake_case verb_noun conventions and are mostly predictable (get_*, explain_*, score_*). There are minor inconsistencies: related recommendation tools use different verbs (get_recommendations, find_substitutes, propose_subscription_bundle, get_bundle_for_cart), and predict_reorder vs forecast_bundle split an otherwise uniform forecasting concept.

    Tool Count3/5

    With 19 tools, the server sits in the 16-25 range, which feels heavy and exceeds the ideal well-scoped 3-15 band. The count is defensible given the broad domain coverage, but agents will need to navigate a large surface to find the right tool.

    Completeness4/5

    The tool surface covers a comprehensive market-basket workflow: recommending, substituting, scoring, explaining, mining, alerting, forecasting, and acting on opportunities. Minor gaps exist—such as no direct tool for managing custom rules beyond triage and no bulk scoring—but the core domain is well covered with no critical dead ends.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      Not graded
      maintenance
      Provides structured commerce data for AI agents, enabling real-time product searches and brand discovery across 22,000+ DTC brands without scraping or hallucination.
      5
      38 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI shopping agents to search products, check stock, apply promotions, manage cart sessions, and create cryptographically signed checkout sessions on e-commerce storefronts, while giving merchants analytics into agent intent and catalog demand gaps.
      MIT