MCP server
TokenBudget
io.github.adamhursey/tokenbudget
Checked 28 Nov 2026, 11:13 UTC · Connected to it and listed its tools
Sourced LLM API prices and cost budgets for agent runs across OpenAI, Claude, Gemini and more.
Working at last checkAbout 1,920 tokens per request once connected7 tools
https://tokenbudget.netlify.app/mcp
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Working at last check
- Tools
- 7
- Token cost
- About 1,920 tokens per request
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 28 Nov 2026, 11:13 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http tokenbudget https://tokenbudget.netlify.app/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.tokenbudget] url = "https://tokenbudget.netlify.app/mcp"
Gemini CLI
{"mcpServers":{"tokenbudget":{"httpUrl":"https://tokenbudget.netlify.app/mcp"}}}
Cursor
{"mcpServers":{"tokenbudget":{"url":"https://tokenbudget.netlify.app/mcp"}}}
VS Code
{"servers":{"tokenbudget":{"type":"http","url":"https://tokenbudget.netlify.app/mcp"}}}
Antigravity
agy mcp add tokenbudget https://tokenbudget.netlify.app/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"tokenbudget","server_url":"https://tokenbudget.netlify.app/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"tokenbudget","server_url":"https://tokenbudget.netlify.app/mcp"}
Tools
check_context_fit~333 tokens
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.count_tokens~221 tokens
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.estimate_cost~519 tokens
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 reqget_model_pricing~68 tokens
Price, context window, long-prompt surcharge, announced price changes and source for one model id.list_models~177 tokens
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.plan_agent_run~423 tokens
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 tsend_feedbackSends messages · ~179 tokens
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).
Browse
Related MCP servers
- CanaryGuard 402
Deterministic prompt-injection detection & sanitization for AI agents via x402 on Base. - FernTool Network Tools
24 free tools: IP/VPN lookup, WHOIS, DNS, SPF/DMARC, site up/down, redirects, time zones. No key. - TokenTally by Harlo
Count tokens (o200k/cl100k), truncate to a budget, chunk text for RAG and estimate LLM cost. - DDG Agent Services
Pay-per-call x402 gateway: agent tools, OpenAI-compatible LLM, market data, RPC, security audits. - PlanLimits
AI coding plan limits (Claude Code, Codex, Cursor, Copilot): router, picker, status, budget check - Agent Finops Budget Spend Guard
Agent FinOps Spend Guard, Deterministic Budget Passport, LLM Token Cost Router & VIP Discounts. - FreeTier Agent API
x402 or card pay-per-call: invoice JSON, DNS, whois, SSL, geocode, RSS feeds, sitemaps, QR codes - Webbersites X402 Data Api
45 pay-per-call AI agent tools: scraping, SEO, crypto data, lint, agent memory. x402 USDC on Base.
Badge for your README
[](https://aptlynx.net/servers/io.github.adamhursey/tokenbudget)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents