CommerceForAI
v0.1.11Run a store on your own Stripe account: products, orders, shipping, returns, print-on-demand.
Values you need
| Variable | What it is | |
|---|---|---|
COMMERCEFORAI_API_KEY | required secret | Store API key (from the dashboard or `npx commerceforai init`) |
COMMERCEFORAI_READ_ONLY | optional | Set to true to offer only read tools |
COMMERCEFORAI_MAX_REFUND | optional | Largest refund in cents (default 5000) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mcp -e 'COMMERCEFORAI_API_KEY=<COMMERCEFORAI_API_KEY>' -- npx -y --package=@commerceforai/mcp@0.1.11 commerceforai-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"mcp": {
"args": [
"-y",
"--package=@commerceforai/mcp@0.1.11",
"commerceforai-mcp"
],
"command": "npx",
"env": {
"COMMERCEFORAI_API_KEY": "<COMMERCEFORAI_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp": {
"args": [
"-y",
"--package=@commerceforai/mcp@0.1.11",
"commerceforai-mcp"
],
"command": "npx",
"env": {
"COMMERCEFORAI_API_KEY": "<COMMERCEFORAI_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "COMMERCEFORAI_API_KEY",
"id": "commerceforai-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp": {
"args": [
"-y",
"--package=@commerceforai/mcp@0.1.11",
"commerceforai-mcp"
],
"command": "npx",
"env": {
"COMMERCEFORAI_API_KEY": "${input:commerceforai-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp]
command = "npx"
args = ["-y", "--package=@commerceforai/mcp@0.1.11", "commerceforai-mcp"]
env = { "COMMERCEFORAI_API_KEY" = "<COMMERCEFORAI_API_KEY>" }Remote (hosted)
Run in a terminal
claude mcp add --transport http mcp https://api.commerceforai.com/mcpAdd to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"mcp": {
"args": [
"-y",
"mcp-remote",
"https://api.commerceforai.com/mcp"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp": {
"url": "https://api.commerceforai.com/mcp"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp": {
"type": "http",
"url": "https://api.commerceforai.com/mcp"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://api.commerceforai.com/mcp"]For AI agents
- Ask the user for: COMMERCEFORAI_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_store, chatgpt_channel, update_chatgpt_channel, check_product_feed, check_storefront, get_approval, setup_status, simulate_order, ….
- 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