TokenBudget
io.github.adamhursey/tokenbudget
Serveur MCP OK 7 outils
Sourced LLM API prices and cost budgets for agent runs across OpenAI, Claude, Gemini and more.
Fiche technique
- Auteur
- adamhursey (espace de noms du registre)
- Dépôt
- —
- Site
- —
- Version
- 0.2.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://tokenbudget.netlify.app/mcp Streamable HTTP
- Outils
- 7
- Catégories
- IA, agents et mémoire, Commerce et marketing
- Dernière mise à jour
- 25 nov. 2026
- Publication
- 25 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.adamhursey/tokenbudget)<a href="https://latlas.dev/mcp/io.github.adamhursey/tokenbudget"><img src="https://latlas.dev/badge/fiche/io.github.adamhursey/tokenbudget.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://tokenbudget.netlify.app/mcp
- Dernier résultat
- OK 28 nov. 2026, 09:32
- Temps de réponse
- 1 185 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- tokenbudget 0.2.0
- Outils
- 7
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 09:32 | OK | 1 185 ms | 7 |
Outils exposés (7, réponse à tools/list, 28 nov. 2026)
estimate_cost
Estimate the cost of one LLM request across models
Price one LLM request (input + expected output) on many models at once, cheapest first, with current list prices from each provider's own pricing page (source URL and check date included), prompt-cache and batch discounts, long-prompt surcharges and announced price changes. Also says whether the request fits each model's context window. Call this before an expensive request to pick a model or to stay inside a budget.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| text | string | non | Prompt text. Counted with an estimator, never stored. |
| messages | array<object> | non | Chat messages [{role, content}]. Counted with an estimator, never stored. |
| system | string | non | System prompt text. |
| input_tokens | integer | non | Exact input token count, if you have it. Overrides text and gives an exact cost. |
| output_tokens | integer | non | Expected output tokens (or the max_tokens you will allow). |
| cached_input_tokens | integer | non | How many input tokens will be read from the prompt cache. |
| batch | boolean | non | Price with the provider's batch API discount where one is listed. |
| models | array<string> | non | Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id. |
| providers | array<enum: "anthropic" | "openai" | "google" | "deepseek" | "mistral" | "groq"> | non | Only these providers. |
| date | string | non | Price on this day (YYYY-MM-DD), to see announced price changes. Default today. |
plan_agent_run
Budget a multi-turn agent run
Estimate the total cost of an agent loop that re-sends its growing context every turn, with prompt caching, on many models. Returns total cost, peak context, how many turns fit in each model's context window, how many turns fit in a budget, and a recommended model. Use before starting a long agent task.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| turns | integer | oui | Number of model calls in the loop. |
| system_tokens | integer | non | |
| tools_tokens | integer | non | Tokens of tool definitions sent every turn. |
| task_tokens | integer | non | Tokens of the first user message. |
| output_tokens_per_turn | integer | non | Default 800. |
| tool_result_tokens_per_turn | integer | non | Default 1500. |
| cache | boolean | non | Assume prompt caching of the previous turn. Default true. |
| budget_usd | number | non | |
| models | array<string> | non | Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id. |
| providers | array<enum: "anthropic" | "openai" | "google" | "deepseek" | "mistral" | "groq"> | non | Only these providers. |
check_context_fit
Check which models' context windows fit an input
Say which models can take this input plus the output you want to reserve, which cannot, and which do not publish a context window. Use before sending a very large document or conversation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| text | string | non | Prompt text. Counted with an estimator, never stored. |
| messages | array<object> | non | Chat messages [{role, content}]. Counted with an estimator, never stored. |
| system | string | non | System prompt text. |
| input_tokens | integer | non | Exact input token count, if you have it. Overrides text and gives an exact cost. |
| reserve_output_tokens | integer | non | |
| models | array<string> | non | Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id. |
| providers | array<enum: "anthropic" | "openai" | "google" | "deepseek" | "mistral" | "groq"> | non | Only these providers. |
count_tokens
Estimate token counts per tokenizer
Estimate how many tokens a text is for each tokenizer family (OpenAI o200k, Claude legacy and 2026, Gemini, DeepSeek, Mistral, Qwen), with an error band. Estimates only; for exact counts use the provider's count endpoint.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| text | string | non | Prompt text. Counted with an estimator, never stored. |
| messages | array<object> | non | Chat messages [{role, content}]. Counted with an estimator, never stored. |
| models | array<string> | non | Model ids to compare, e.g. ["claude-sonnet-5-5", "gpt-6.2-sol", "gemini-3.8-flash"]. Omit to compare every listed model. list_models gives every id. |
list_models
List models with prices and limits
List every model this tool prices, with input, output, cache and batch prices per 1M tokens, context window, max output, source URL and the day the price was checked.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| providers | array<enum: "anthropic" | "openai" | "google" | "deepseek" | "mistral" | "groq"> | non | Only these providers. |
| provider | enum: "anthropic" | "openai" | "google" | "deepseek" | "mistral" | "groq" | non | One provider (same as providers with one item). |
| min_context | integer | non |
get_model_pricing
Get one model's price and limits
Price, context window, long-prompt surcharge, announced price changes and source for one model id.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| model | string | oui |
send_feedback
Send feedback about this tool
Report a wrong price, a missing model, a bug or an idea. Read by a person. Keep it under 1000 characters and do not include prompts, secrets or personal data (they are scrubbed anyway).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| kind | enum: "bug" | "wrong-price" | "missing-model" | "idea" | "praise" | "other" | non | |
| message | string | oui | |
| model | string | non | Model id the feedback is about, if any. |
| endpoint | string | non | Tool or endpoint the feedback is about, e.g. plan_agent_run. |
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.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://tokenbudget.netlify.app/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http tokenbudget https://tokenbudget.netlify.app/mcpCustomize > Connectors > + Add > Add custom connector ; Name : tokenbudget ; URL : https://tokenbudget.netlify.app/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : tokenbudget ; Server URL : https://tokenbudget.netlify.app/mcp ; Create as a plugin{
"mcpServers": {
"tokenbudget": {
"url": "https://tokenbudget.netlify.app/mcp"
}
}
}{
"mcpServers": {
"tokenbudget": {
"type": "http",
"url": "https://tokenbudget.netlify.app/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"tokenbudget": {
"url": "https://tokenbudget.netlify.app/mcp"
}
}
}{
"mcpServers": {
"tokenbudget": {
"httpUrl": "https://tokenbudget.netlify.app/mcp"
}
}
}[mcp_servers.tokenbudget]
url = "https://tokenbudget.netlify.app/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
TokenBudget · L’Atlas · Test du
[TokenBudget — L’Atlas](https://latlas.dev/mcp/io.github.adamhursey/tokenbudget)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.