CommerceForAI

v0.1.11
com.commerceforai/mcp Checked 2 days ago Published 17 days ago

Run a store on your own Stripe account: products, orders, shipping, returns, print-on-demand.

Values you need

VariableWhat it is
COMMERCEFORAI_API_KEYrequired secret Store API key (from the dashboard or `npx commerceforai init`)
COMMERCEFORAI_READ_ONLYoptional Set to true to offer only read tools
COMMERCEFORAI_MAX_REFUNDoptional 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-mcp
Add 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/mcp
Add 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

  1. Ask the user for: COMMERCEFORAI_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: get_store, chatgpt_channel, update_chatgpt_channel, check_product_feed, check_storefront, get_approval, setup_status, simulate_order, ….
  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