Skip to content
MCP server

CartAI MCP Server

MCP server giving AI agents product search, payments and checkout on merchant sites

Runs locally

CartAI MCP Server is an MCP server for e-commerce. It runs locally on your machine and is started by your AI client.

Platforms
API, CLI, VS Code
Runs
Locally
What it can do
Can delete data (1 tool)
Access
Needs a secret key or token
Version
1.0.6
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "cartai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "cartai-mcp-server"
      ],
      "env": {
        "CARTAI_API_KEY": "<CARTAI_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • CARTAI_API_KEYCartAI API key from the CartAI portalRequired

About CartAI MCP Server

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.

Tools this server provides (13)

Taken from the project documentation; the running server may differ.

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_checkoutName suggests: changes
Start an async checkout for one or more product URLs
create_search_checkoutName suggests: changes
Start an async checkout from product names on a given merchant
get_checkoutName suggests: reads
Fetch the current state of a checkout task
cancel_checkoutName suggests: changes
Cancel an in-progress checkout
get_status_historyName suggests: reads
Get the step-by-step event log for a task
send_interactive_inputsName suggests: changes
Send an MFA/OTP code to a checkout task waiting for it
search_productsName suggests: reads
Discover products by name across merchants
get_product_detailsName suggests: reads
Retrieve details, variants and pricing for a product URL
get_checkout_estimatesName suggests: reads
Compute pre-checkout shipping and tax estimates
create_payment_sessionName suggests: changes
Create a hosted payment session URL for card authorization
delete_payment_sessionName suggests: deletes
Invalidate a payment session
get_payment_credentialsName suggests: reads
Retrieve a scoped payment credential for an authorized session
create_credential_sessionName suggests: changes
Create a secure vault URL for storing a merchant login

What it does

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

CartAI MCP Server 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.

How AIPoweredBot checks servers