Skip to main content
Glama

marketbasketanalysis-mcp

Server Details

Co-purchase intelligence and merchant ops tools for AI shopping, ecommerce, and B2B agents

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Server Listing
@marketbasketanalysis/mcp
ChatGPT
–
Claude
–

TDQS

A4.2/5.0

Scored across 6 tools

Disambiguation4/5

The set explicitly delineates boundaries: get_recommendations is single-product while get_bundle_for_cart is multi-item cart completion, and get_opportunities lists while explain_opportunity drills into one id. The only residual overlap is analyze_basket versus score_cross_sell, since a two-product basket is effectively a pair, but the descriptions distinguish '2+ products' from 'exactly two'.

Naming Consistency4/5

All names are snake_case with a leading verb (analyze_, explain_, get_, score_) targeting a clear object, so the pattern is predictable. Minor deviation: three get_ tools with different semantics and one name (get_bundle_for_cart) breaking the simple verb_noun shape, but all remain readable.

Tool Count5/5

Six tools is well-scoped for a market-basket analysis server and each earns its place: mining, explaining, single-product recommendation, cart completion, pair scoring, and basket scoring. Nothing is redundant or padding.

Completeness4/5

The read-only analysis lifecycle (mine -> explain -> recommend -> complete cart -> validate pair/basket) is covered with no dead ends. Gaps are minor but real: no product lookup/search to resolve names to ids, no way to act on an opportunity (publish/dismiss), and platform coverage is uneven since opportunity tools are BigCommerce-only.

Available Tools

6 tools
analyze_basketA
Read-onlyIdempotent
Inspect

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).

explain_opportunityA
Read-onlyIdempotent
Inspect

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).

get_bundle_for_cartA
Read-onlyIdempotent
Inspect

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_opportunitiesA
Read-onlyIdempotent
Inspect

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?'. Read-only. Pair with explain_opportunity for the evidence behind 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_recommendationsA
Read-onlyIdempotent
Inspect

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.

score_cross_sellA
Read-onlyIdempotent
Inspect

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).

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • 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
    • 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
      42 npm
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources