TokenBudget
io.github.adamhursey/tokenbudget
MCP server OK 7 tools
Sourced LLM API prices and cost budgets for agent runs across OpenAI, Claude, Gemini and more.
Technical sheet
- Author
- adamhursey (registry namespace)
- Repository
- —
- Site
- —
- Version
- 0.2.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://tokenbudget.netlify.app/mcp Streamable HTTP
- Tools
- 7
- Categories
- AI, agents and memory, Commerce and marketing
- Last updated
- 25 Nov 2026
- Published
- 25 Nov 2026
Verified author and popularity
Entry not claimed yet. Is it your project? Claim it
Not “Popular” for now Removed automatically as soon as the criteria are no longer met.
- Distinct visitors of this entry over 30 days: 0 (30 needed) not yet
- or install configs copied over 30 days: 0 (5 needed) not yet
- and a successful test less than 14 days old: tested 28 Nov 2026 met
Badge updates by itself. Always “tested on …”, never “certified”. How it works
[](https://latlas.dev/en/mcp/io.github.adamhursey/tokenbudget)<a href="https://latlas.dev/en/mcp/io.github.adamhursey/tokenbudget"><img src="https://latlas.dev/badge/statut/mcp/io.github.adamhursey/tokenbudget.svg?lang=en" alt="Status on L’Atlas" height="20"></a>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.adamhursey/tokenbudget)<a href="https://latlas.dev/en/mcp/io.github.adamhursey/tokenbudget"><img src="https://latlas.dev/badge/fiche/io.github.adamhursey/tokenbudget.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://tokenbudget.netlify.app/mcp
- Last result
- OK 28 Nov 2026, 09:32
- Response time
- 1,185 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- tokenbudget 0.2.0
- Tools
- 7
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 09:32 | OK | 1,185 ms | 7 |
Exposed tools (7, from 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | no | Prompt text. Counted with an estimator, never stored. |
| messages | array<object> | no | Chat messages [{role, content}]. Counted with an estimator, never stored. |
| system | string | no | System prompt text. |
| input_tokens | integer | no | Exact input token count, if you have it. Overrides text and gives an exact cost. |
| output_tokens | integer | no | Expected output tokens (or the max_tokens you will allow). |
| cached_input_tokens | integer | no | How many input tokens will be read from the prompt cache. |
| batch | boolean | no | Price with the provider's batch API discount where one is listed. |
| models | array<string> | no | 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"> | no | Only these providers. |
| date | string | no | 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| turns | integer | yes | Number of model calls in the loop. |
| system_tokens | integer | no | |
| tools_tokens | integer | no | Tokens of tool definitions sent every turn. |
| task_tokens | integer | no | Tokens of the first user message. |
| output_tokens_per_turn | integer | no | Default 800. |
| tool_result_tokens_per_turn | integer | no | Default 1500. |
| cache | boolean | no | Assume prompt caching of the previous turn. Default true. |
| budget_usd | number | no | |
| models | array<string> | no | 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"> | no | 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | no | Prompt text. Counted with an estimator, never stored. |
| messages | array<object> | no | Chat messages [{role, content}]. Counted with an estimator, never stored. |
| system | string | no | System prompt text. |
| input_tokens | integer | no | Exact input token count, if you have it. Overrides text and gives an exact cost. |
| reserve_output_tokens | integer | no | |
| models | array<string> | no | 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"> | no | 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | no | Prompt text. Counted with an estimator, never stored. |
| messages | array<object> | no | Chat messages [{role, content}]. Counted with an estimator, never stored. |
| models | array<string> | no | 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| providers | array<enum: "anthropic" | "openai" | "google" | "deepseek" | "mistral" | "groq"> | no | Only these providers. |
| provider | enum: "anthropic" | "openai" | "google" | "deepseek" | "mistral" | "groq" | no | One provider (same as providers with one item). |
| min_context | integer | no |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | yes |
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).
| Parameter | Type | Required | Description |
|---|---|---|---|
| kind | enum: "bug" | "wrong-price" | "missing-model" | "idea" | "praise" | "other" | no | |
| message | string | yes | |
| model | string | no | Model id the feedback is about, if any. |
| endpoint | string | no | Tool or endpoint the feedback is about, e.g. plan_agent_run. |
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://tokenbudget.netlify.app/mcp. Formats taken from each client’s documentation.
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"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.
TokenBudget · L’Atlas · Tested on
[TokenBudget — L’Atlas](https://latlas.dev/en/mcp/io.github.adamhursey/tokenbudget)Source : Registre officiel MCP · retrieved 2 Dec 2026. L’Atlas adds no data beyond this source and its own tests.