CartAI MCP Server

v1.0.6
ai.cartai/cartai-mcp-server Checked 1 day ago Published 10 days ago

Agentic checkout with or without a human in the loop, product catalog, and an agent wallet.

Values you need

VariableWhat it is
CARTAI_API_KEYrequired secret CartAI API key from the CartAI portal

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add cartai-mcp-server -e 'CARTAI_API_KEY=<CARTAI_API_KEY>' -- npx -y --package=cartai-mcp-server@1.0.6 cartai-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "args": [
        "-y",
        "--package=cartai-mcp-server@1.0.6",
        "cartai-mcp"
      ],
      "command": "npx",
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "args": [
        "-y",
        "--package=cartai-mcp-server@1.0.6",
        "cartai-mcp"
      ],
      "command": "npx",
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "CARTAI_API_KEY",
      "id": "cartai-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "cartai-mcp-server": {
      "args": [
        "-y",
        "--package=cartai-mcp-server@1.0.6",
        "cartai-mcp"
      ],
      "command": "npx",
      "env": {
        "CARTAI_API_KEY": "${input:cartai-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.cartai-mcp-server]
command = "npx"
args = ["-y", "--package=cartai-mcp-server@1.0.6", "cartai-mcp"]
env = { "CARTAI_API_KEY" = "<CARTAI_API_KEY>" }

For AI agents

  1. Ask the user for: CARTAI_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: create_checkout, create_search_checkout, get_checkout, cancel_checkout, get_status_history, send_interactive_inputs, search_products, get_product_details, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json