TokenBudget MCP
Provides LLM API pricing data and cost estimation tools for agents, supporting budget calculation for multi-turn loops, context window checks, and token counting across multiple providers like OpenAI, Anthropic, and Google.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://tokenbudget.netlify.app/mcpWhat its tools do
7 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Can change data (1)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Availability 1 of 1 checks passed in 30 days
What you can do with it
- Estimate cost for a single LLM request
- Plan and budget a multi-turn agent run
- Check if models fit specific context windows
- List available models and their current pricing
Source and maintenance
Protocol and capabilities
- Server
- tokenbudget 0.2.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 7 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": false
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
7 advertised
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.
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Price on this day (YYYY-MM-DD), to see announced price changes. Default today."
},
"text": {
"type": "string",
"description": "Prompt text. Counted with an estimator, never stored."
},
"batch": {
"type": "boolean",
"description": "Price with the provider's batch API discount where one is listed."
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "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."
},
"system": {
"type": "string",
"description": "System prompt text."
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "Chat messages [{role, content}]. Counted with an estimator, never stored."
},
"providers": {
"type": "array",
"items": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string"
},
"description": "Only these providers."
},
"input_tokens": {
"type": "integer",
"minimum": 0,
"description": "Exact input token count, if you have it. Overrides text and gives an exact cost."
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"description": "Expected output tokens (or the max_tokens you will allow)."
},
"cached_input_tokens": {
"type": "integer",
"minimum": 0,
"description": "How many input tokens will be read from the prompt cache."
}
}
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}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.
{
"type": "object",
"required": [
"turns"
],
"properties": {
"cache": {
"type": "boolean",
"description": "Assume prompt caching of the previous turn. Default true."
},
"turns": {
"type": "integer",
"maximum": 500,
"minimum": 1,
"description": "Number of model calls in the loop."
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "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": {
"type": "array",
"items": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string"
},
"description": "Only these providers."
},
"budget_usd": {
"type": "number",
"exclusiveMinimum": 0
},
"task_tokens": {
"type": "integer",
"minimum": 0,
"description": "Tokens of the first user message."
},
"tools_tokens": {
"type": "integer",
"minimum": 0,
"description": "Tokens of tool definitions sent every turn."
},
"system_tokens": {
"type": "integer",
"minimum": 0
},
"output_tokens_per_turn": {
"type": "integer",
"minimum": 0,
"description": "Default 800."
},
"tool_result_tokens_per_turn": {
"type": "integer",
"minimum": 0,
"description": "Default 1500."
}
}
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}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.
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Prompt text. Counted with an estimator, never stored."
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "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."
},
"system": {
"type": "string",
"description": "System prompt text."
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "Chat messages [{role, content}]. Counted with an estimator, never stored."
},
"providers": {
"type": "array",
"items": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string"
},
"description": "Only these providers."
},
"input_tokens": {
"type": "integer",
"minimum": 0,
"description": "Exact input token count, if you have it. Overrides text and gives an exact cost."
},
"reserve_output_tokens": {
"type": "integer",
"minimum": 0
}
}
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}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.
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Prompt text. Counted with an estimator, never stored."
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "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."
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "Chat messages [{role, content}]. Counted with an estimator, never stored."
}
}
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}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.
{
"type": "object",
"properties": {
"provider": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string",
"description": "One provider (same as providers with one item)."
},
"providers": {
"type": "array",
"items": {
"enum": [
"anthropic",
"openai",
"google",
"deepseek",
"mistral",
"groq"
],
"type": "string"
},
"description": "Only these providers."
},
"min_context": {
"type": "integer",
"minimum": 0
}
}
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}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.
{
"type": "object",
"required": [
"model"
],
"properties": {
"model": {
"type": "string"
}
}
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}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).
{
"type": "object",
"required": [
"message"
],
"properties": {
"kind": {
"enum": [
"bug",
"wrong-price",
"missing-model",
"idea",
"praise",
"other"
],
"type": "string"
},
"model": {
"type": "string",
"description": "Model id the feedback is about, if any."
},
"message": {
"type": "string",
"maxLength": 1000
},
"endpoint": {
"type": "string",
"description": "Tool or endpoint the feedback is about, e.g. plan_agent_run."
}
}
}{
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}Prompts
Not advertised
Resources
Not advertised
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 1 of 1 (100%)
- Average latency
- 753 ms
- 95th percentile latency
- 753 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 753 ms · metadata changed · 7 tool(s)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http tokenbudget-mcp https://tokenbudget.netlify.app/mcpCodex
codex mcp add tokenbudget-mcp --url https://tokenbudget.netlify.app/mcpCursor
{
"mcpServers": {
"tokenbudget-mcp": {
"url": "https://tokenbudget.netlify.app/mcp"
}
}
}Cline
{
"mcpServers": {
"tokenbudget-mcp": {
"type": "streamableHttp",
"url": "https://tokenbudget.netlify.app/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"tokenbudget-mcp": {
"type": "http",
"url": "https://tokenbudget.netlify.app/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http tokenbudget-mcp https://tokenbudget.netlify.app/mcpClaude Desktop
https://tokenbudget.netlify.app/mcpWindsurf
{
"mcpServers": {
"tokenbudget-mcp": {
"serverUrl": "https://tokenbudget.netlify.app/mcp"
}
}
}Let your agent find its tools
Find servers like TokenBudget MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.