Skip to content
MCP server

TokenBudget

MCP server returning sourced LLM API prices and cost budgets for agent runs

Answered our latest tool-list check yesterday with 7 tools. It will be marked verified after 3 successful checks in 7 days.

Install

TokenBudget is an MCP server for ai models and llm tooling. It runs as a hosted remote server, so there is nothing to install locally.

Platforms
API
Runs
Remotely
What it can do
Can change data (1 tool)
Version
0.2.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add --transport http tokenbudget https://tokenbudget.netlify.app/mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "tokenbudget": {
      "type": "http",
      "url": "https://tokenbudget.netlify.app/mcp"
    }
  }
}

Claude Code setup guide

In Customize → Connectors → Add → Add custom connector

https://tokenbudget.netlify.app/mcp

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "tokenbudget": {
      "url": "https://tokenbudget.netlify.app/mcp"
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "tokenbudget": {
      "type": "http",
      "url": "https://tokenbudget.netlify.app/mcp"
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

In chatgpt.com → Plugins → + → Add custom MCP server

https://tokenbudget.netlify.app/mcp

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

ChatGPT setup guide

Add with the CLI

Run in a terminal

codex mcp add tokenbudget --url https://tokenbudget.netlify.app/mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.tokenbudget]
url = "https://tokenbudget.netlify.app/mcp"

Codex setup guide

Add to Grok Bot desktop app → Connect apps → Add a custom connector

https://tokenbudget.netlify.app/mcp

Enter a Name (for example "TokenBudget"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

Full Grok Bot setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "tokenbudget": {
      "type": "http",
      "url": "https://tokenbudget.netlify.app/mcp"
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "tokenbudget": {
          "httpUrl": "https://tokenbudget.netlify.app/mcp"
        }
      }
    }

    Or run: gemini mcp add -s user --transport http tokenbudget https://tokenbudget.netlify.app/mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "tokenbudget": {
          "serverUrl": "https://tokenbudget.netlify.app/mcp"
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "tokenbudget": {
          "url": "https://tokenbudget.netlify.app/mcp",
          "transport": "http"
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "tokenbudget": {
          "type": "streamableHttp",
          "url": "https://tokenbudget.netlify.app/mcp"
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "tokenbudget": {
          "url": "https://tokenbudget.netlify.app/mcp"
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "tokenbudget": {
          "url": "https://tokenbudget.netlify.app/mcp"
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "tokenbudget": {
          "url": "https://tokenbudget.netlify.app/mcp"
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "tokenbudget": {
          "url": "https://tokenbudget.netlify.app/mcp"
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About TokenBudget

TokenBudget is a remote Model Context Protocol server that gives AI agents access to current language model API pricing across providers such as OpenAI, Anthropic Claude and Google Gemini. Instead of hardcoding rates, an agent can query the server to look up what a given model costs and estimate spend before it starts a job.

The server runs over streamable HTTP at a hosted endpoint, so MCP-compatible clients can connect to it without installing anything locally. Its focus is on cost planning for agent runs, letting a workflow set a budget and check projected token expenses against it.

It suits developers building multi-step agents who need to keep API spend predictable, and teams comparing model costs when choosing which LLM to route a task to.

Tools this server provides (7)

Read directly from the server.

The server marks 1 of 7 tools as able to change data.

From the server's own tool labels and tool names; not verified by us.

estimate_costSays 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 s
plan_agent_runSays 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.
check_context_fitSays 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.
count_tokensSays 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.
list_modelsSays 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.
get_model_pricingSays read-only
Price, context window, long-prompt surcharge, announced price changes and source for one model id.
send_feedbackSays it can change data
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).

What it does

Sourced model pricing
Returns LLM API prices for multiple providers, including OpenAI, Claude and Gemini models.
Run cost budgets
Lets an agent work against a cost budget for a planned run.
Remote MCP endpoint
Served over streamable HTTP so clients can connect without a local install.
Multi-provider comparison
Covers several LLM vendors so costs can be compared across models.

Good for

  • Estimating token spend before an agent starts a multi-step task
  • Comparing per-model API prices when choosing an LLM for a workflow
  • Enforcing a spending cap on autonomous agent runs
  • Giving an AI assistant up-to-date LLM pricing data on demand

TokenBudget FAQ

How do I connect to TokenBudget?

It is available as a remote MCP server over streamable HTTP at a hosted endpoint, so any MCP client that supports that transport can connect.

Which LLM providers are covered?

The server lists prices for OpenAI, Claude and Gemini models, among others.

How do I add TokenBudget to Claude Code?

Run this command in your terminal: claude mcp add --transport http tokenbudget https://tokenbudget.netlify.app/mcp

What are the best alternatives to TokenBudget?

The closest alternatives to TokenBudget are Agent Cost MCP Server, MCP Cost Optimizer, ComparEdge LLM Cost, Llm Cost Estimator and uplinkswitch.

Where this comes from

  • Description: written from its MCP Registry entry.
  • Status and tools: checked automatically by AIPoweredBot on 29 November 2026.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers