Skip to content
Claude Tools API ready · Claude Desktop via MCP

Connect Claude to OrderCore.

Use Claude with OrderCore in two ways: direct Anthropic tool calls against the canonical tooling export, or Claude Desktop connected to a local MCP server that wraps the same checkout flow.

New to agent commerce? Start with the 5-minute quickstart or what an MCP commerce server is.

Direct-AI evaluation: 10 calls/day Local MCP over stdio Same checkout tools as public direct-AI flow
Three steps

Get from API key to first checkout session

1. Get your API key

Use an OrderCore API key with write scope and decide which API base URL Claude should hit.

terminal
export ORDERCORE_BASE_URL="https://api.ordercore.ai"
export ORDERCORE_API_KEY="oc_live_..."

2. Build the local MCP server

Compile the standalone OrderCore MCP wrapper once. Claude Desktop will start this binary over stdio.

terminal
go build -o ./bin/ordercore-mcp ./cmd/ordercore-mcp

3. Ask Claude to create the first session

After Claude Desktop reloads, ask for a checkout session with a specific SKU and quantity.

terminal
Create a checkout session for sku 3f4f8d41...
quantity 1, currency USD.
Claude Desktop config

claude_desktop_config.json

json
{
  "mcpServers": {
    "ordercore": {
      "command": "/ABSOLUTE/PATH/TO/ordercore-project/bin/ordercore-mcp",
      "env": {
        "ORDERCORE_BASE_URL": "https://api.ordercore.ai",
        "ORDERCORE_API_KEY": "oc_live_..."
      }
    }
  }
}
Example exchange

What Claude says and what OrderCore returns

Prompt to Claude

terminal
Create a checkout session for sku 3f4f8d41-6d9e-42cd...
quantity 1, currency USD.
Then tell me the next step.

OrderCore tool result

json
{
  "id": "gid://ordercore.ai/Checkout/sess_123",
  "currency": "USD",
  "status": "incomplete",
  "line_items": [
    {
      "quantity": 1
    }
  ]
}

Claude follow-up

terminal
I created the checkout session.
Next step: attach buyer details, create the
payment intent, and complete checkout after
Stripe confirmation.
Verification

Use the built-in smoke flows

Direct tooling smoke

terminal
BASE_URL=https://api.ordercore.ai \
make smoke-direct-ai-tooling

Anthropic tool-call smoke

terminal
API_KEY=oc_live_xxx \
ANTHROPIC_API_KEY=sk-ant-... \
BASE_URL=https://api.ordercore.ai \
make e2e-anthropic

Standalone MCP server build

terminal
go build -o ./bin/ordercore-mcp ./cmd/ordercore-mcp