L'Atlas / Serveurs MCP / TokenZero

TokenZero

io.github.tokenzero-ai/tokenzero

Serveur MCP OK

Faire examiner Voir les tarifs

LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.

Fiche technique

Auteur
tokenzero-ai (espace de noms du registre)
Dépôt
github.com/tokenzero-ai/tokenzero
Site
tokenzero.sh
Version
0.2.2
Transport
Streamable HTTP
Authentification
Aucune (constatée par notre test)
Adresse du serveur
https://tokenzero.sh/mcp Streamable HTTP
Outils
6
Catégories
IA, agents et mémoire, Développement et code
Dernière mise à jour
26 oct. 2026
Publication
26 oct. 2026

Badge pour votre README

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/io.github.tokenzero-ai/tokenzero.svg)](https://latlas.dev/mcp/io.github.tokenzero-ai/tokenzero)
HTML
<a href="https://latlas.dev/mcp/io.github.tokenzero-ai/tokenzero"><img src="https://latlas.dev/badge/fiche/io.github.tokenzero-ai/tokenzero.svg" alt="Référencé sur L’Atlas" height="20"></a>

Nos tests

Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode

Adresse
https://tokenzero.sh/mcp
Dernier résultat
OK 28 nov. 2026, 08:40
Temps de réponse
1 239 ms (initialize + tools/list)
Version du protocole
2025-11-25
Nom annoncé
tokenzero 0.3.0
Outils
6

Historique

DateRésultatRéponseOutils
28 nov. 2026, 08:40OK1 239 ms6

Outils exposés (6, réponse à 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": "..."}.

ParamètreTypeRequisDescription
modelstringnona priced model id; default gpt-6.1-sol
systemstringnonyour system prompt (optional)
promptstringnonyour 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.

ParamètreTypeRequisDescription
repostringnonGitHub owner/name (public)
filesarray<object>nonAlternative 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.

ParamètreTypeRequisDescription
bodyobjectouiThe request body
endpointenum: "/v1/chat/completions" | "/v1/responses" | "/v1/messages"non
strategyenum: "static" | "conversation"non

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.

ParamètreTypeRequisDescription
modelstringouimodel id, e.g. gpt-6.1-sol or claude-sonnet-5-5
input_tokensnumbernonper request; default 2000
output_tokensnumbernonper request; default 400
requests_per_monthnumbernon
static_tokensnumbernonportion of input_tokens that is a fixed prefix (system + tools)
compare_toarray<string>non

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.

ParamètreTypeRequisDescription
namestringnonworkspace 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.

ParamètreTypeRequisDescription
keystringnonworkspace key (tz_live_…)
windowenum: "24h" | "7d" | "30d" | "all"non
demobooleannonreturn the sample scorecard instead

Compatibilité clients

Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport acceptédoc

Configs prêtes à copier

Adresse distante utilisée : https://tokenzero.sh/mcp. Formats repris de la documentation de chaque client.

Claude Code
claude mcp add --transport http tokenzero https://tokenzero.sh/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : tokenzero ; URL : https://tokenzero.sh/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : tokenzero ; Server URL : https://tokenzero.sh/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "tokenzero": {
      "url": "https://tokenzero.sh/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "tokenzero": {
      "type": "http",
      "url": "https://tokenzero.sh/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "tokenzero": {
      "url": "https://tokenzero.sh/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "tokenzero": {
      "httpUrl": "https://tokenzero.sh/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.tokenzero]
url = "https://tokenzero.sh/mcp"

Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.