TokenZero
io.github.tokenzero-ai/tokenzero
MCP server OK
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
Technical sheet
- Author
- tokenzero-ai (registry namespace)
- Repository
- github.com/tokenzero-ai/tokenzero
- Site
- tokenzero.sh
- Version
- 0.2.2
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://tokenzero.sh/mcp Streamable HTTP
- Tools
- 6
- Categories
- AI, agents and memory, Development and code
- Last updated
- 26 Oct 2026
- Published
- 26 Oct 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.github.tokenzero-ai/tokenzero)<a href="https://latlas.dev/en/mcp/io.github.tokenzero-ai/tokenzero"><img src="https://latlas.dev/badge/fiche/io.github.tokenzero-ai/tokenzero.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://tokenzero.sh/mcp
- Last result
- OK 28 Nov 2026, 08:40
- Response time
- 1,239 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- tokenzero 0.3.0
- Tools
- 6
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 08:40 | OK | 1,239 ms | 6 |
Exposed tools (6, from tools/list, 28 Nov 2026)
try_tokenzero
Try TokenZero (no key needed)
Call this first: no API key, no signup, no setup. Shows what TokenZero would do to one of your LLM calls: it runs the four savings engines (prompt-cache formatting, edge cache, cascade advice, signed receipt) on a sample or your own prompt and model, and returns the list-price saving, the signed receipt and a copy-paste keyless curl that makes a real call on a free model. Pass {} for the default, or {"model": "gpt-6.1-sol", "system": "...", "prompt": "..."}.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | no | a priced model id; default gpt-6.1-sol |
| system | string | no | your system prompt (optional) |
| prompt | string | no | your user message (optional) |
audit_repo_token_waste
Audit a repo for LLM token waste
No API key needed. Static-analyze a public GitHub repo (e.g. {"repo": "owner/name"}) or a set of source files for LLM token waste: uncached static prompts, frontier models on extraction tasks, hot loops, non-deterministic repeat calls, and prompt-caching mis-integration (caching gated on model names, volatile values in the system prompt, random ids in history, wrong-provider cache markers, misplaced breakpoints, cost math that ignores cached tokens). Returns findings with fixes and an estimated recoverable percentage.
| Parameter | Type | Required | Description |
|---|---|---|---|
| repo | string | no | GitHub owner/name (public) |
| files | array<object> | no | Alternative to repo: files to analyze |
optimize_prompt_payload
Make a request body cache-friendly
No API key needed. Rewrite an OpenAI Chat/Responses or Anthropic Messages request body so its static prefix is provider-cacheable (Anthropic cache_control breakpoints, OpenAI prompt_cache_key). Returns the optimized body, what changed, the token profile and the projected per-request saving. Never changes the tokens the model sees.
| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | The request body |
| endpoint | enum: "/v1/chat/completions" | "/v1/responses" | "/v1/messages" | no | |
| strategy | enum: "static" | "conversation" | no |
calculate_model_arbitrage
Price a workload across models
No API key needed; only `model` is required (e.g. {"model": "gpt-6.1-sol"}, defaults 2,000 tokens in and 400 out). Price a workload at list prices across models: cost per request and per month for the requested model, its cheaper sibling, and the effect of prompt caching. The result names the pricing table version it used.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | yes | model id, e.g. gpt-6.1-sol or claude-sonnet-5-5 |
| input_tokens | number | no | per request; default 2000 |
| output_tokens | number | no | per request; default 400 |
| requests_per_month | number | no | |
| static_tokens | number | no | portion of input_tokens that is a fixed prefix (system + tools) |
| compare_to | array<string> | no |
provision_workspace
Create a free TokenZero workspace
Create a TokenZero workspace and key with no form. Returns the key once, the base URLs that route through it (OPENAI_BASE_URL / ANTHROPIC_BASE_URL), the one-click dashboard link and the badge URL. Free up to the monthly free tier; nothing is billed.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | no | workspace name (default mcp-agent) |
workspace_metrics
Read a workspace savings scorecard
Live value scorecard for a TokenZero workspace: hard savings and net ROI per window, the four engines' contribution, speed, parity, availability and privacy posture, per-model breakdown and one-click recommendations. Needs the workspace key (tz_live_…); pass demo: true for a labelled sample.
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | no | workspace key (tz_live_…) |
| window | enum: "24h" | "7d" | "30d" | "all" | no | |
| demo | boolean | no | return the sample scorecard instead |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://tokenzero.sh/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http tokenzero https://tokenzero.sh/mcpCustomize > Connectors > + Add > Add custom connector ; Name : tokenzero ; URL : https://tokenzero.sh/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : tokenzero ; Server URL : https://tokenzero.sh/mcp ; Create as a plugin{
"mcpServers": {
"tokenzero": {
"url": "https://tokenzero.sh/mcp"
}
}
}{
"mcpServers": {
"tokenzero": {
"type": "http",
"url": "https://tokenzero.sh/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"tokenzero": {
"url": "https://tokenzero.sh/mcp"
}
}
}{
"mcpServers": {
"tokenzero": {
"httpUrl": "https://tokenzero.sh/mcp"
}
}
}[mcp_servers.tokenzero]
url = "https://tokenzero.sh/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
TokenZero · L’Atlas · Tested on
[TokenZero — L’Atlas](https://latlas.dev/en/mcp/io.github.tokenzero-ai/tokenzero)Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.