MBA
For developers + agencies

A real API.
A real MCP server.

Eight typed tools, grouped into Basket AI's four named agents (Discovery, Bundle, Insight, Replenishment). Bearer auth. JSON in / JSON out. Schema-validated responses. Six platforms (Shopify, Magento, WooCommerce, BigCommerce, Adobe Commerce, OroCommerce) under one API. npm install, paste a key, ship.

$49/month flat · No usage caps · BYO LLM key for AI features

HTTP

One bearer-auth call, three lines of JSON back.

Same shape across recommendations, substitutions, basket cohesion, and bundle proposals.

curl -H "Authorization: Bearer mba_live_..." \
  "https://app.marketbasketanalysis.com/api/v1/recommendations?product_id=8472918765&limit=3"

Mint the key in the MBA admin on whichever platform the merchant runs. One key per surface (storefront, agent, custom backend) so you can rotate independently.

MCP

One snippet in your claude_desktop_config.json.

The same config works in Claude Code, Cursor, and Cline. OpenAI Agent SDK and Anthropic Agent SDK both speak MCP too.

{
  "mcpServers": {
    "marketbasketanalysis": {
      "command": "npx",
      "args": ["-y", "@marketbasketanalysis/mcp"],
      "env": {
        "MBA_API_KEY": "mba_live_...",
        "MBA_API_BASE": "https://app.marketbasketanalysis.com"
      }
    }
  }
}

Restart the host. Eight tools show up: get_recommendations, find_substitutes, get_bundle_for_cart, propose_quote_bundle, score_cross_sell, analyze_basket, predict_reorder, propose_subscription_bundle.

The boring stuff that matters

Production-grade defaults out of the box.

SHA-256 key storage

Plaintext shown once. Revoke and re-mint without downtime. Per-shop scope, no cross-tenant leakage even if a key leaks.

SSRF-guarded base URL

MBA_API_BASE must be public HTTPS. Localhost and RFC-1918 ranges are rejected by the SDK unless ALLOW_LOCAL_API_BASE is explicitly set for dev.

Sanitized error surface

4xx / 5xx upstream errors come back as “MBA API 401” not “invalid_token: sk_live_abc...”. Raw bodies hit stderr for ops, never the agent.

Open source MCP package

MIT-licensed npm package at @marketbasketanalysis/mcp. Fork it, audit it, vendor it into your stack if you want.

Ready to turn your order data into revenue?

Install on your platform in under 10 minutes. Or book a consulting call and we'll do the launch for you.