Koskamo

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.

TokenBudget MCP logo, by TokenBudgetCommunity listingStreamable HTTPNo sign-inEndpoint checked 2026-11-26Published by TokenBudget
MCP endpoint (Streamable HTTP)
https://tokenbudget.netlify.app/mcp
Vendor documentation

What its tools do

7 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

Can change data (1)

7 of 7 have a description · 7 of 7 declare behavior hints · 2 of 7 with parameters document them all

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

Community listingRegistry 0.2.0

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
Server-advertised capabilities
{
  "tools": {
    "listChanged": false
  }
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

TokenBudget prices LLM requests and whole agent runs across OpenAI, Anthropic, Google, DeepSeek, Mistral and Groq. Use plan_agent_run before a long task, estimate_cost before a big single request, check_context_fit before sending a large input. Pass exact token counts when you have them. Report wrong prices with send_feedback.

Tools

7 advertised

estimate_cost — Estimate the cost of one LLM request across models
Advertised by the server during the last successful anonymous check.
Advertised read-only

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.

estimate_cost input schema
{
  "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."
    }
  }
}
estimate_cost annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true
}
plan_agent_run — Budget a multi-turn agent run
Advertised by the server during the last successful anonymous check.
Advertised read-only

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.

plan_agent_run input schema
{
  "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."
    }
  }
}
plan_agent_run annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true
}
check_context_fit — Check which models' context windows fit an input
Advertised by the server during the last successful anonymous check.
Advertised read-only

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.

check_context_fit input schema
{
  "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
    }
  }
}
check_context_fit annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true
}
count_tokens — Estimate token counts per tokenizer
Advertised by the server during the last successful anonymous check.
Advertised read-only

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.

count_tokens input schema
{
  "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."
    }
  }
}
count_tokens annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true
}
list_models — List models with prices and limits
Advertised by the server during the last successful anonymous check.
Advertised read-only

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.

list_models input schema
{
  "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
    }
  }
}
list_models annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true
}
get_model_pricing — Get one model's price and limits
Advertised by the server during the last successful anonymous check.
Advertised read-only

Price, context window, long-prompt surcharge, announced price changes and source for one model id.

get_model_pricing input schema
{
  "type": "object",
  "required": [
    "model"
  ],
  "properties": {
    "model": {
      "type": "string"
    }
  }
}
get_model_pricing annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true
}
send_feedback — Send feedback about this tool
Advertised by the server during the last successful anonymous check.

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).

send_feedback input schema
{
  "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."
    }
  }
}
send_feedback annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": false,
  "destructiveHint": false
}

Prompts

Not advertised

No prompt definitions available.

Resources

Not advertised

No resource definitions available.

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.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http tokenbudget-mcp https://tokenbudget.netlify.app/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add tokenbudget-mcp --url https://tokenbudget.netlify.app/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable tokenbudget-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "tokenbudget-mcp": {
      "url": "https://tokenbudget.netlify.app/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "tokenbudget-mcp": {
      "type": "streamableHttp",
      "url": "https://tokenbudget.netlify.app/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start tokenbudget-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "tokenbudget-mcp": {
      "type": "http",
      "url": "https://tokenbudget.netlify.app/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http tokenbudget-mcp https://tokenbudget.netlify.app/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://tokenbudget.netlify.app/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "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.