Skip to main content
Glama
@marketbasketanalysis/mcp

@marketbasketanalysis/mcp

by 48x-ai

@marketbasketanalysis/mcp

npm version License MCP

一个 MCP 服务器,让任何 AI 代理都能访问来自电商商家订单历史的真实共同购买洞察和商家运营工具。19 个工具,涵盖发现、捆绑、洞察、补货、商家运营和高级挖掘。可与 Claude Desktop、Claude Code、Cursor、Windsurf、Cline、OpenAI Agent SDK 以及任何支持 MCP stdio 协议的主机配合使用。适用于 Shopify、BigCommerce、WooCommerce、Magento 和 OroCommerce 上的商家。有关哪些工具可覆盖自托管后端,请参阅下文“平台覆盖范围”。

一个 npm 包服务于每个市场。该服务器与平台无关,它是一个 HTTP 客户端,通过公共 REST API 调用商店的 MBA 后端。只需一个开关(MBA_API_BASE,见下文)即可将整个服务器重新指向任何商店。大多数工具适用于全部五个平台;少数工具依赖的后端路由并非每个平台都已提供。每个工具的市场覆盖情况见工具目录的“市场”列。

为什么需要它

当顾客问 AI 购物助手“这个健身背包搭配什么好?”时,助手应基于商家真实的订单数据给出实际答案,而不是泛泛的“你可能也喜欢”式猜测。当商家问 Claude“这周我应该做些什么?”时,助手应从一份按优先级排序的周计划中提取,而不是凭空编造任务。这个服务器只需一行配置,就能让这两种流程适用于任何 MCP 主机。

Related MCP server: dentro MCP

5 行安装(Claude Desktop)

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

将其粘贴到 ~/Library/Application Support/Claude/claude_desktop_config.json(macOS),重启 Claude Desktop,marketbasketanalysis 服务器就会出现在工具列表中,包含全部 19 个工具。

零安装:托管端点

同一个服务器也以托管形式运行于 https://mcp.marketbasketanalysis.com/mcp(MCP streamable HTTP)。无需安装任何东西;将你的密钥作为 bearer 头发送,而不是环境变量:

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

适用于任何支持远程连接的 MCP 客户端(Claude Code、Cursor、Smithery、自定义代理)。可选头:X-MBA-Base 可重新指向另一个由 MBA 运营的数据平面(例如 https://bigcommerce.marketbasketanalysis.com);X-MBA-Platform 与 MBA_PLATFORM 环境变量对应。按设计,自托管的 WooCommerce 和 Magento 商店无法从托管端点访问;请使用上面的 npx 安装,并将 MBA_API_BASE 指向你自己的站点。

将服务器指向你的商店(MBA_API_BASE)

基础 URL 是每家商店各自的配置。默认情况下,服务器与共享托管后端 https://app.marketbasketanalysis.com 通信。如果你的数据位于其他地方——BigCommerce 商店、自托管后端或暂存实例——请设置 MBA_API_BASE,以便每个工具都能访问你自己的数据平面:

{
  "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 是重新指向整个服务器的唯一开关;全部 19 个工具都通过它路由。对于非本地主机,该值必须是 https:// URL(回环、私有、链路本地和元数据服务主机将被拒绝)。若要针对 localhost 上的后端进行本地开发,请设置 ALLOW_LOCAL_API_BASE=1 以允许使用 http://localhost 作为基础 URL。环境变量更改在服务器启动时生效,因此编辑该值后请重启你的 MCP 主机。

各平台的 MBA_API_BASE

基础 URL 是每家商店各自的配置。Shopify、BigCommerce 和 OroCommerce 商店由共享托管后端提供服务,因此它们使用默认值。WooCommerce 和 Magento 在商店安装内部本地运行后端,因此请将服务器指向商店自己的域名:

平台

MBA_API_BASE

Shopify

不设置(托管默认 https://app.marketbasketanalysis.com)

BigCommerce

不设置(托管默认)

OroCommerce

不设置(精简托管客户端,同一托管后端)

WooCommerce

https://your-store.example.com(WordPress 站点 URL)。其路由位于 marketbasketanalysis/v1 下;服务器会自动映射路径。哪些工具适用,请参阅“平台覆盖范围”。

Magento

https://your-magento.example.com(/rest 基础路径)。其路由位于 V1/marketbasketanalysis 下;服务器会自动映射路径。哪些工具适用,请参阅“平台覆盖范围”。

平台覆盖范围

服务器会写入规范的 /api/v1/... 路径,并根据平台重写它们,因为 WooCommerce 和 Magento 在商店内部按照各自的 REST 约定运行后端(分别为 marketbasketanalysis/v1 和 V1/marketbasketanalysis)。

19 个工具中有 10 个可覆盖 WooCommerce 和 Magento:其中 6 个源自 /recommendations(get_recommendations、get_bundle_for_cart、score_cross_sell、analyze_basket、propose_subscription_bundle、score_return_risk),另外还有 find_substitutes、get_rationale、forecast_bundle 和 predict_reorder。

其余 9 个属于商家运营工具组:get_opportunities、triage_opportunity、get_weekly_plan、execute_weekly_plan_action、get_drift_alerts、get_forecast_alerts、explain_opportunity、explain_drift 和 mine_hui_itemsets。这些端点在自托管后端上并不存在。在自托管后端调用其中一个,会返回一个明确指出端点名称的清晰“此平台不可用”错误,而非不透明的 404,并且不会产生网络往返。

有关分步安装(各操作系统的配置文件位置、如何生成 API 密钥、故障排除):

身份验证

服务器从你的 MCP 主机传入的环境中读取 MBA_API_KEY,并在每个请求中将其作为 Bearer 令牌发送。要获取密钥:

  1. 打开 MarketBasketAnalysis 管理后台(Shopify 应用抽屉,或 BigCommerce / WooCommerce / Magento / OroCommerce 管理后台)。

  2. 点击左侧导航中的“API 密钥”。

  3. 点击“创建密钥”,为其命名,并复制 mba_live_ 值(该值只显示一次)。

密钥按商店独立、可撤销,并可在同一界面轮换。后端只存储 SHA-256 哈希,因此如果密钥泄露,请重新生成。

不同市场的身份验证模型各不相同;MCP 服务器对此做了抽象,但仍值得了解:

  • Shopify、BigCommerce:Bearer mba_live_... 直接透传。这是常见路径。

  • WooCommerce:Bearer 使用 Woo 生成的密钥,该密钥必须带有 customer_data 作用域才能使用 predict_reorder。

  • Magento:工具通过 Magento REST 接口(/V1/marketbasketanalysis/* 和 /V1/mba/*)访问商店;部分路由在商店侧受管理员令牌 / ACL 作用域保护。

  • OroCommerce:对于 /api/ 路由,商店位于平台 OAuth2 防火墙之后;MCP 服务器实际调用的是精简客户端所代理到的托管后端,因此 mba_live_ 密钥仍然适用。

工具目录

19 个工具,按四个 Basket AI agent 角色以及两个运营组编排。“市场” 一列说明哪些后端提供了工具所调用的路由,这与该服务器当前能够访问哪些后端并非一回事:请参阅上文“平台覆盖范围”。“全部五个”指 Shopify、BigCommerce、WooCommerce、Magento、OroCommerce。

发现

工具

描述

必需参数

市场

get_recommendations

某个商品的互补商品。

product_id

全部五个

find_substitutes

商品不可用时的替代选项。

product_id

全部五个

get_rationale

针对某个推荐商品对的一句话“为什么”。

product_id, related_product_id

全部五个

捆绑包

这些工具的一切都源自 /recommendations(服务器在客户端一侧编排捆绑/评分逻辑),因此它们不需要额外的后端路由,适用于所有环境。

工具

描述

必需参数

市场

get_bundle_for_cart

多商品购物车中缺失的套件组件。

product_ids

全部五个

propose_subscription_bundle

周期性订阅套件建议。

seed_product_ids

全部五个

洞察

同样源自 /recommendations,因此适用于所有环境。

工具

描述

必需参数

市场

score_cross_sell

对 (a, b) 商品对的强度判定。

product_a, product_b

全部五个

score_return_risk

捆绑商品的退货风险得分。

product_ids

全部五个

analyze_basket

针对建议捆绑商品的凝聚度得分。

product_ids

全部五个

补货与预测

工具

描述

必需参数

市场

predict_reorder

每个客户 / SKU 的 B2B 补货周期。

customer_id

Shopify、BigCommerce、WooCommerce、Magento。当 MBA_PLATFORM=orocommerce 时隐藏。

forecast_bundle

每周 Holt-Winters 预测 + 购买数量。

bundle_id

Shopify、BigCommerce、Magento(/forecast/bundle-inventory)。不适用于 OroCommerce。

商家运营

这些工具调用的是当前由 BigCommerce 提供的 Bearer /api/v1 路由。Shopify 通过其嵌入式管理视图提供机会、漂移和每周计划,而不是 /api/v1 路由,因此这些工具针对 BigCommerce 后端解析。唯一的例外是 /explain-opportunity,它现在已由 BigCommerce 和 Shopify 提供;/explain-drift 仍仅限 BigCommerce。在缺少这些路由的平台上,工具会显示干净的上游 404。

工具

描述

必需参数

市场

get_weekly_plan

按排名排列的每周操作列表。

(无)

BigCommerce

execute_weekly_plan_action

派发特定操作(需确认)。

action_id, confirm

BigCommerce

get_opportunities

挖掘出的机会,已排名。

(无)

BigCommerce

explain_opportunity

统计信息(支持度 / 置信度 / 提升度 / 样本数),以及针对某个机会的模板化“为何这是一个好的交叉销售”说明。

opportunity_id

BigCommerce, Shopify

triage_opportunity

激活 / 暂停 / 归档(需确认)。

opportunity_id, action, confirm

BigCommerce(POST /opportunities/{id}/action);其他平台上的管理后台网格。

get_drift_alerts

置信度已发生漂移的规则。

(无)

BigCommerce

explain_drift

统计信息,以及针对某个漂移警报的模板化“为何这对商品发生漂移”说明(若商品对已消失,则优雅降级)。

alert_id

BigCommerce

get_forecast_alerts

存在缺货 / 需求下降风险的捆绑包。

(无)

BigCommerce

高级挖掘

工具

描述

必需参数

市场

mine_hui_itemsets

高效用项集挖掘(Plus / Enterprise)。

orders

Shopify, BigCommerce, WooCommerce, OroCommerce。Plus / Enterprise 层级。

每个工具的示例提示词

将以下任意一条粘贴到 Claude Desktop / Claude Code / Cursor 聊天窗口中(在完成服务器配置后):

  • get_recommendations: "使用 marketbasketanalysis 查找客户在购买健身背包(产品 8472918765)时还会一起购买什么。"

  • find_substitutes: "DSLR 机身缺货。有什么好的替代品?"

  • get_rationale: "为什么健身背包会推荐搭配水壶?"

  • get_bundle_for_cart: "我的购物车里有相机机身、32GB SD 卡和三脚架。要凑成一套完整的套件,可能还缺什么?"

  • propose_subscription_bundle: "为客户 9876 打造一个每月订阅套件。"

  • score_cross_sell: "清洁套件是 DSLR 相机机身的一个好的交叉销售品吗?"

  • score_return_risk: *"相机 + 镜头 * 三脚架 + 背包 的退货风险如何?"*

  • analyze_basket: "我正在考虑把相机 + 镜头 + SD 卡 + 包捆绑在一起。根据实际客户数据,这是一个强捆绑包吗?"

  • predict_reorder: "Acme Corp(客户 7654321)本周有什么需要补货的?"

  • forecast_bundle: "预测 b-camera-kit 捆绑包未来 12 周的需求,并推荐采购数量。"

  • get_weekly_plan: "我的每周计划里有什么?"

  • execute_weekly_plan_action: "运行我每周计划中的操作 a-42,已确认。"

  • get_opportunities: "给我看看排名前三的推荐机会。"

  • explain_opportunity: "为什么机会 opp-17 是一个好的交叉销售?"

  • triage_opportunity: "激活机会 opp-17,已确认。"

  • get_drift_alerts: "我的规则中是否有发生漂移的?"

  • explain_drift: "为什么漂移警报 alert-7 中的那对商品会发生漂移?"

  • get_forecast_alerts: "哪些捆绑包有缺货风险?"

  • mine_hui_itemsets: "从这份 90 天订单数据中挖掘前 20 个高效用项集。"(Plus / Enterprise 层级)

每个工具的说明文档位于 cookbook 中。

环境变量

变量

必需

默认值

说明

MBA_API_KEY

是

--

从你的管理后台获取的 mba_live_... 密钥。

MBA_API_BASE

否

https://app.marketbasketanalysis.com

每个商店的基础 URL。为 BigCommerce、自托管或预发布(staging)后端设置此项,使服务器指向你的数据平面。非本地主机必须为 https://。

MBA_PLATFORM

否

(any)

设置为 shopify 或 bigcommerce 以暴露受平台限制的工具(例如 predict_reorder)。

MBA_SENTRY_DSN

否

--

选择加入的错误遥测(商家控制)。

MBA_DEBUG_ERRORS

否

--

设置为 1 可将上游错误正文打印到 stderr。

ALLOW_LOCAL_API_BASE

否

--

设置为 1 以在开发期间允许 MBA_API_BASE 中使用 localhost。

开发

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

添加新工具

每个工具都是 src/tools/ 下的一个独立模块。要添加一个工具:

  1. 创建 src/tools/myNewTool.ts,导出 definition 和 handler。对于简单的 GET,可参照 src/tools/getRecommendations.ts 的结构;对于带确认门控的 POST,可参照 src/tools/triageOpportunity.ts 的结构。

  2. 在 src/tools/index.ts 中注册它:导入该模块并将其添加到 allModules 数组。

  3. 在 src/tools/myNewTool.test.ts 中添加测试,覆盖:缺少密钥的回复、正常路径,以及至少一条上游错误路径。参照 src/tools/findSubstitutes.test.ts。

  4. 在以上表格和 dist/mcp/smithery.yaml 中为其编写文档。

分发产物

monorepo 根目录下的 dist/mcp/ 目录存放安装示例(Claude Desktop、Cursor、Windsurf)、Smithery YAML 以及 Anthropic 市场提交内容。完整布局请参阅 dist/mcp/README.md。

发布

在 package.json 中提升版本号(保持 server.json 和 src/index.ts 同步),合并到 main,然后打上 mcp-v$VERSION 标签并推送该标签。工作流依次运行类型检查、测试、构建、标签/版本匹配检查,然后使用 NPM_TOKEN 仓库密钥执行 npm publish --access public --provenance。还提供 workflow_dispatch 手动触发,用于紧急运行。

完整的运维检查清单(包括一次性 NPM_TOKEN 设置和无需 CI 的手动发布后备方案)位于 docs/RELEASE.md。

故障排查

症状

原因 / 修复

工具抽屉中未出现服务器

JSON 拼写错误,或 npx 不在 PATH 中。检查主机的 MCP 日志。

"Error: MBA_API_KEY environment variable not set"

env 块缺失或值为空。

"MBA API 401"

密钥已撤销或错误;生成一个新密钥。

"MBA API unreachable"

网络连接失败;请查看 https://status.marketbasketanalysis.com。

工具在首次调用时超时

首次 npx -y 冷启动会下载包;如需重复调用的速度,请全局安装。

"MBA API returned malformed response"

上游后端发生漂移;设置 MBA_DEBUG_ERRORS=1 可在 stderr 中查看正文。

predict_reorder 缺失

该工具受平台门控:当 MBA_PLATFORM 未设置、为 shopify 或 bigcommerce 时,它会被注册。补货预测路由在 WooCommerce 和 Magento 上同样存在,但工具门控尚未在那里开放它。

如需更深入的诊断,请参阅 dist/mcp/ 下各 IDE 的设置文档。

许可证

UNLICENSED,专有。

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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      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
      46 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