Docs / Spend control over MCP

Give Claude (or any MCP agent) a budget

Short answer: add the @countersign/mcp server to your MCP client's config — one paste, no install step — and the agent gains 13 tools for governed spending: a pre-flight spend guard, spending limits, human approvals, payment-challenge guards for x402 and AP2, a signed audit ledger, and a kill switch. Works in Claude, Cursor, and any client that speaks the Model Context Protocol.

The one-paste setup

{ "mcpServers": { "countersign": {
  "command": "npx", "args": ["-y", "@countersign/mcp"],
  "env": { "COUNTERSIGN_URL": "https://app.countersign.network",
           "COUNTERSIGN_API_KEY": "csk_…" } } } }

The key is self-serve: POST /signup at app.countersign.network/start returns a free key and an isolated sandbox tenant pre-seeded with a three-backend demo fleet — no account, no human in the loop. The server is stdio-only and brain-free: it talks to the hosted Core (or your self-hosted one) through the same public API you could call yourself.

What the agent can (and can't) do with it

What it can't do matters just as much: Countersign never holds keys, never signs, never moves funds. The MCP server carries decisions, not custody — the enforcement lives in the wallet rails and the fail-closed Core.

Why gate an LLM's spending at all?

Because the failure modes are the model's, not the wallet's: a retry loop, a misread price, a prompt-injected "pay this now." A budget stated in the prompt is advice; a policy enforced outside the model is a control. The guard makes every spend a checked API call, and the kill switch makes "stop everything" one action instead of a runbook.

Honest scope: everything here is testnet-only — no mainnet, no custody, no PII. The hosted sandbox seeds a mock three-backend fleet so you can exercise policy, guard, freeze, and ledger end-to-end; the vendor enforcement described on this page was proven live on real testnet backends. Mainnet follows a third-party security audit.

Try it in 60 seconds — no account, no human

Self-serve key, an isolated sandbox tenant with a three-backend demo fleet, testnet only.

Get a free key → Watch the freeze GitHub