CartAI MCP Server
v1.0.6Agentic checkout with or without a human in the loop, product catalog, and an agent wallet.
Values you need
| Variable | What it is | |
|---|---|---|
CARTAI_API_KEY | required 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-mcpAdd 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
- Ask the user for: CARTAI_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: create_checkout, create_search_checkout, get_checkout, cancel_checkout, get_status_history, send_interactive_inputs, search_products, get_product_details, ….
- 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