{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.48x-ai/marketbasketanalysis-mcp",
  "slug": "io.github.48x-ai.marketbasketanalysis-mcp",
  "title": "marketbasketanalysis-mcp",
  "summary": "Co-purchase intelligence and merchant ops tools for AI shopping, ecommerce, and B2B agents",
  "version": "0.7.1",
  "serverKey": "marketbasketanalysis-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.48x-ai.marketbasketanalysis-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.48x-ai.marketbasketanalysis-mcp/install.md",
  "trust": {
    "score": 82,
    "grade": "B",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-02T07:49:48.367581699Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@marketbasketanalysis/mcp@0.7.1"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add marketbasketanalysis-mcp -e 'MBA_API_KEY=<MBA_API_KEY>' -- npx -y @marketbasketanalysis/mcp@0.7.1"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"marketbasketanalysis-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"@marketbasketanalysis/mcp@0.7.1\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"MBA_API_KEY\": \"<MBA_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"marketbasketanalysis-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"@marketbasketanalysis/mcp@0.7.1\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"MBA_API_KEY\": \"<MBA_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"MBA_API_KEY\",\n      \"id\": \"mba-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"marketbasketanalysis-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"@marketbasketanalysis/mcp@0.7.1\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"MBA_API_KEY\": \"${input:mba-api-key}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.marketbasketanalysis-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"@marketbasketanalysis/mcp@0.7.1\"]\nenv = { \"MBA_API_KEY\" = \"<MBA_API_KEY>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://mcp.marketbasketanalysis.com/mcp",
      "headers": [
        {
          "name": "Authorization",
          "description": "Bearer <mba_live_ API key>, minted in the merchant admin (API keys page)",
          "isRequired": true,
          "isSecret": true
        },
        {
          "name": "X-MBA-Base",
          "description": "Optional backend override; must be an MBA-operated plane (app.marketbasketanalysis.com or bigcommerce.marketbasketanalysis.com)"
        },
        {
          "name": "X-MBA-Platform",
          "description": "Optional platform hint (shopify, bigcommerce, woocommerce, magento, orocommerce)"
        }
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http marketbasketanalysis-mcp https://mcp.marketbasketanalysis.com/mcp --header 'Authorization: <Authorization>' --header 'X-MBA-Base: <X-MBA-Base>' --header 'X-MBA-Platform: <X-MBA-Platform>'"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"marketbasketanalysis-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://mcp.marketbasketanalysis.com/mcp\",\n        \"--header\",\n        \"Authorization: <Authorization>\",\n        \"--header\",\n        \"X-MBA-Base: <X-MBA-Base>\",\n        \"--header\",\n        \"X-MBA-Platform: <X-MBA-Platform>\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"marketbasketanalysis-mcp\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\",\n        \"X-MBA-Base\": \"<X-MBA-Base>\",\n        \"X-MBA-Platform\": \"<X-MBA-Platform>\"\n      },\n      \"url\": \"https://mcp.marketbasketanalysis.com/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"marketbasketanalysis-mcp\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\",\n        \"X-MBA-Base\": \"<X-MBA-Base>\",\n        \"X-MBA-Platform\": \"<X-MBA-Platform>\"\n      },\n      \"type\": \"http\",\n      \"url\": \"https://mcp.marketbasketanalysis.com/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.marketbasketanalysis-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://mcp.marketbasketanalysis.com/mcp\", \"--header\", \"Authorization: <Authorization>\", \"--header\", \"X-MBA-Base: <X-MBA-Base>\", \"--header\", \"X-MBA-Platform: <X-MBA-Platform>\"]"
        }
      ]
    }
  ],
  "env": [
    {
      "name": "MBA_API_KEY",
      "required": true,
      "secret": true,
      "description": "Per-store MBA API key (mba_live_...), minted in the merchant admin",
      "help": "Per-store MBA API key (mba_live_...), minted in the merchant admin",
      "placeholder": "<MBA_API_KEY>"
    },
    {
      "name": "MBA_API_BASE",
      "required": false,
      "secret": false,
      "description": "Override for self-hosted WooCommerce/Magento backends; defaults to the MBA hosted backend",
      "help": "Override for self-hosted WooCommerce/Magento backends; defaults to the MBA hosted backend",
      "placeholder": "<MBA_API_BASE>"
    },
    {
      "name": "MBA_PLATFORM",
      "required": false,
      "secret": false,
      "description": "Store platform (shopify, bigcommerce, woocommerce, magento, orocommerce); drives per-platform path mapping and tool gating",
      "help": "Store platform (shopify, bigcommerce, woocommerce, magento, orocommerce); drives per-platform path mapping and tool gating",
      "placeholder": "<MBA_PLATFORM>"
    }
  ],
  "expectedTools": [
    "get_recommendations",
    "find_substitutes",
    "get_rationale",
    "get_bundle_for_cart",
    "propose_subscription_bundle",
    "score_cross_sell",
    "score_return_risk",
    "analyze_basket",
    "predict_reorder",
    "forecast_bundle",
    "get_weekly_plan",
    "execute_weekly_plan_action",
    "get_opportunities",
    "explain_opportunity",
    "triage_opportunity",
    "get_drift_alerts",
    "explain_drift",
    "get_forecast_alerts",
    "mine_hui_itemsets"
  ],
  "agentSteps": [
    "Ask the user for: MBA_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: get_recommendations, find_substitutes, get_rationale, get_bundle_for_cart, propose_subscription_bundle, score_cross_sell, score_return_risk, analyze_basket, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-02T07:49:48.367581699Z"
}
