TokenZero
Meter, budget and audit LLM spend, with a token-waste scanner for your code
- Pricing
- Freemium
- Platforms
- API, CLI
- Runs
- Remotely
- Version
- 0.2.2
- Listing updated
- 2 days ago
About TokenZero
TokenZero is a freemium MCP server for ai models and llm tooling. It runs as a hosted remote server, so there is nothing to install locally.
TokenZero describes itself as an independent ledger of record for AI spend. Point an SDK's base URL at its gateway, or push usage you already log, and every model call becomes a receipt with model, tokens, provider-reported cost and a counterfactual baseline. Receipts are signed with Ed25519 and hash-chained per workspace, store hashes and metadata only rather than prompts or responses, and can be checked with an open-source verifier. You bring your own provider keys and pay providers directly.
The MCP server adds three tools for coding agents: audit_repo_token_waste and calculate_model_arbitrage run entirely on your machine, while optimize_prompt_payload sends the request body you give it to the TokenZero service, so keep secrets out of it. The static audit looks for large uncached prompts, frontier models doing extraction or classification, LLM calls inside loops and retired model ids. Its figures are estimates at list prices; verified savings come only from gateway receipts.
The open-source tools, including the CLI and a GitHub Action that comments on pull requests, are Apache-2.0 licensed.
Install
Run in a terminal
claude mcp add --transport http tokenzero https://tokenzero.sh/mcpAdd to Settings → Connectors → Add custom connector
https://tokenzero.sh/mcpAdd to ~/.cursor/mcp.json
{
"mcpServers": {
"tokenzero": {
"url": "https://tokenzero.sh/mcp"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"tokenzero": {
"type": "http",
"url": "https://tokenzero.sh/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"tokenzero": {
"serverUrl": "https://tokenzero.sh/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"tokenzero": {
"type": "http",
"url": "https://tokenzero.sh/mcp"
}
}
}Tools this server provides (3)
Taken from the project documentation; the running server may differ.
- audit_repo_token_waste
- Audit the open project for token waste locally
- calculate_model_arbitrage
- Price alternative models locally
- optimize_prompt_payload
- Make a request body cache-friendly via the TokenZero service
What it does
- Signed receipts
- One chained, verifiable record per model call.
- Repo token-waste audit
- Static scan for caching and model-choice savings.
- Model arbitrage pricing
- Compare alternative models at list prices.
- Cache-friendly payloads
- Rewrite request bodies to improve prompt caching.
- PR cost check
- A GitHub Action reports cost changes on each pull request.
- Budget control
- Per-agent and per-key budgets.
- Bring your own keys
- Provider keys pass through and are not stored.
Good for
- Audit a repository for wasted LLM tokens
- Cap spend per agent or API key
- Prove what an AI workload cost with verifiable receipts
- Gate CI when recoverable token waste exceeds a threshold
- Make a prompt friendlier to caching
Pricing
Freemium
Free to start; paid plan prices not published
Prices change. Check tokenzero.sh before you buy.
TokenZero FAQ
Does it read my prompts?
The ledger stores hashes and metadata only. The optimize_prompt_payload tool sends the body you provide to TokenZero, so avoid secrets in it.
Who holds my provider keys?
You do. Keys pass through the gateway and are not stored; you pay providers directly.
Are the savings numbers exact?
Audit figures are static estimates at list prices. Verified savings come from gateway receipts.
What licence do the tools use?
The open-source repository is Apache-2.0.
Is TokenZero free?
TokenZero has a free plan, with paid plans for more usage or features.
How do I add TokenZero to Claude Code?
Run this command in your terminal: claude mcp add --transport http tokenzero https://tokenzero.sh/mcp
What are the best alternatives to TokenZero?
The closest alternatives to TokenZero are Claude Code Ultimate Guide, signafAIde, Toolkien, Lugh and HypePaper.
Alternatives to TokenZero

Claude Code Ultimate Guide
MCP serverMCP server for searching the Claude Code Ultimate Guide from any MCP client
Runs locally- Open source
- 6.5K GitHub stars
- AI models and LLM tooling

signafAIde
MCP serverLocal MCP server to set up, verify and check coverage of signed agent action records
Runs locally- 5 tools
- Freemium
- Security

Toolkien
MCP serverOne MCP gateway for all your MCP servers, with code mode, permissions and audit
Not checked yet- 3 tools
- Remote
- Open source
- AI models and LLM tooling
Lugh
MCP serverWrite, check and dry-run Lugh agent programs with policy, budgets and approvals
Runs locally- 5 tools
- Open source
- AI models and LLM tooling
HypePaper
MCP serverResearch papers, benchmarks, citations and topic experts for AI assistants
- 58 tools
- Remote
- Freemium
- AI models and LLM tooling

One compact entry point that finds, describes and runs hundreds of pay-per-call data tools
- 3 tools
- Remote
- Freemium
- Developer tools