# CartAI MCP Server

> CartAI MCP Server is an MCP server for e-commerce. MCP server giving AI agents product search, payments and checkout on merchant sites. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** API, CLI, VS Code
- **Website:** https://www.cartai.ai
- **Repository:** https://github.com/thecartai/cartai-mcp-server
- **MCP Registry name:** ai.cartai/cartai-mcp-server
- **Categories:** [e-commerce](https://ai-powered.com/categories/e-commerce)
- **Listing updated:** 2026-11-21

## About

CartAI MCP Server lets an AI assistant place real orders on ecommerce sites. It wraps the CartAI Catalog, Payments, Credentials and Checkout APIs as tools that clients such as Claude Desktop, Cursor and VS Code can call. An agent can search products, compare variants, estimate shipping and tax, and start a checkout from product URLs or plain product names.

Checkouts run asynchronously. Each task returns an ID and a live URL to watch the run, and status can be read step by step or pushed through webhooks. Payments can use a customer's authorized card through a hosted session, and merchant logins can be stored in a vault so the agent signs in when that helps. Tasks can pause for a one-time code when interaction is enabled.

The server suits developers building shopping or purchasing agents who want checkout handled without writing individual merchant integrations. It is published on npm under the Apache 2.0 licence and needs a CartAI API key.

## Features

- **Product search and details:** Finds products by name across merchants and returns variants, pricing and availability.
- **Asynchronous checkout:** Starts checkout tasks from product URLs or names and tracks their status and step history.
- **Shipping and tax estimates:** Calculates pre-checkout shipping and tax for a destination ZIP code.
- **Hosted payment sessions:** Lets customers authorize a card through a hosted link for scoped agent payments.
- **Saved merchant logins:** Stores merchant credentials in a vault so checkouts can sign in on the customer's behalf.
- **Interactive OTP input:** Pauses a checkout that needs a one-time code and accepts the code through a tool call.

## Good for

- Letting an AI assistant buy a known list of items from a named store
- Comparing products and estimating total cost before ordering
- Building a shopping agent that completes purchases on merchant sites
- Monitoring and cancelling in-progress checkout tasks

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add cartai-mcp-server --env CARTAI_API_KEY='<CARTAI_API_KEY>' -- npx -y cartai-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add cartai-mcp-server --env CARTAI_API_KEY='<CARTAI_API_KEY>' -- npx -y cartai-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.cartai-mcp-server]
command = "npx"
args = ["-y", "cartai-mcp-server"]
env = { CARTAI_API_KEY = "<CARTAI_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e CARTAI_API_KEY='<CARTAI_API_KEY>' cartai-mcp-server npx -- -y cartai-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 13 tools deletes data and 6 change data. From the server's own tool labels and tool names; not verified by us.

- `create_checkout` (name suggests: changes): Start an async checkout for one or more product URLs
- `create_search_checkout` (name suggests: changes): Start an async checkout from product names on a given merchant
- `get_checkout` (name suggests: reads): Fetch the current state of a checkout task
- `cancel_checkout` (name suggests: changes): Cancel an in-progress checkout
- `get_status_history` (name suggests: reads): Get the step-by-step event log for a task
- `send_interactive_inputs` (name suggests: changes): Send an MFA/OTP code to a checkout task waiting for it
- `search_products` (name suggests: reads): Discover products by name across merchants
- `get_product_details` (name suggests: reads): Retrieve details, variants and pricing for a product URL
- `get_checkout_estimates` (name suggests: reads): Compute pre-checkout shipping and tax estimates
- `create_payment_session` (name suggests: changes): Create a hosted payment session URL for card authorization
- `delete_payment_session` (name suggests: deletes): Invalidate a payment session
- `get_payment_credentials` (name suggests: reads): Retrieve a scoped payment credential for an authorized session
- `create_credential_session` (name suggests: changes): Create a secure vault URL for storing a merchant login

## FAQ

### Which MCP clients can use CartAI MCP Server?

The documentation lists Claude Desktop, Claude Code, Cursor, VS Code and MCP Inspector.

### How is the server installed?

It runs with npx using the package cartai-mcp-server, with CARTAI_API_KEY set in the client configuration. Node.js 18 or newer is required.

### What licence does CartAI MCP Server use?

The server is licensed under the Apache License 2.0.

### Does a checkout complete immediately?

No. Checkouts run in the background, return a task ID and live URL, and report progress through status calls or webhooks.

### How do I add CartAI MCP Server to Claude Code?

Run this command in your terminal: claude mcp add cartai-mcp-server --env CARTAI_API_KEY='<CARTAI_API_KEY>' -- npx -y cartai-mcp-server

### What are the best alternatives to CartAI MCP Server?

The closest alternatives to CartAI MCP Server are Agentmart, MCP Gateway, Agent Rails, Klack Europe Shopping and Open Shopping Agent.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agentmart](https://ai-powered.com/mcp/agentmart-3): Agentmart is a freemium MCP server for e-commerce.
- [MCP Gateway](https://ai-powered.com/mcp/mcp-gateway-6): MCP Gateway is an MCP server for e-commerce.
- [Agent Rails](https://ai-powered.com/mcp/agent-rails): Agent Rails is a freemium MCP server for e-commerce.
- [Klack Europe Shopping](https://ai-powered.com/mcp/klack-europe-shopping): Klack Europe Shopping is an MCP server for e-commerce.
- [Open Shopping Agent](https://ai-powered.com/mcp/open-shopping-agent): Open Shopping Agent is an open-source MCP server for e-commerce.
- [Synchronity](https://ai-powered.com/mcp/synchronity): Synchronity is a freemium MCP server for e-commerce.
- [Savanto](https://ai-powered.com/mcp/savanto): Savanto is an open-source MCP server for e-commerce.
- [Agent Commerce MCP](https://ai-powered.com/mcp/agent-commerce-mcp): Agent Commerce MCP is an open-source MCP server for agent tooling.

---
Source: https://ai-powered.com/mcp/cartai-mcp-server
