mcpcost

43 847 servers counted · 2026-11-29

How many context tokens does an MCP server cost?

The median server in the official MCP registry costs 2 715 tokens of context per session in Claude Opus 5.5. This is the cost of its tool definitions only. The 90th percentile is 21 862 tokens. The 99th percentile is 56 587 tokens. The heaviest server costs 2 054 606 tokens. That is more than 10 full 200k windows. In Claude Code the median is 2 827 tokens, because each tool name gets an mcp__ prefix. We counted 43 847 servers with the Anthropic count_tokens endpoint on 2026-11-29.

Today

2 715median tokens per server in Claude Opus 5.5
21 86290th percentile
56 58799th percentile
2 054 606heaviest server
2 827median in Claude Code
59 %of registry servers answer at all

Questions

Why does an MCP server cost tokens before I send a prompt?

A client sends the model the name, the description and the input schema of each tool. It does this for each connected server at the start of a session. It does this again in each turn. These definitions are part of the prompt. You pay for them in each request. This is true also when the model calls no tool.

How do we count the tokens?

We ask the Anthropic count_tokens endpoint. It returns the exact number of input tokens for a request, as the model will see it. We send one request with the server's tools and one request without them. The difference is what the tools cost. The endpoint is free and calls no model. The number is exact for Claude Opus 5.5. Other models count in a different way. Where the run had a Gemini key, the server page also shows the exact count from the Gemini countTokens endpoint, the same method. We also show an o200k_base estimate over the compact JSON of each tool. The exact count is 1.75 times the estimate at the median (1.62 to 1.86 for 80 % of servers).

What does Claude Code add?

Claude Code names each tool mcp__<server>__<tool>. The longer name costs more tokens. We count that variant too. The median server costs 2 827 tokens in Claude Code against 2 715 with the published names. Claude Code also adds a tool-use system prompt one time per request. For Claude Opus 5.5 it is 286 tokens. Claude Code defers MCP tool definitions by default (tool search) and loads a tool's definition when it needs it, so the count is the ceiling for a session, not what every turn pays.

How many tokens does one specific MCP server cost?

Each remote server in the registry, and each npm or PyPI package server, has a page at https://mcpcost.ulehla.dev/s/<registry name>. The page shows the exact cost in Claude Opus 5.5, the cost in Claude Code, the estimate, the tool count and the status. For a server that is not in the registry, https://mcpcost.ulehla.dev/check probes it now and counts it the same way. In a terminal, npx mcpcost measures the servers in your own Claude Code, Claude Desktop, Cursor, VS Code, Windsurf or Gemini CLI config. With ANTHROPIC_API_KEY set and --claude, mcpcost asks the same endpoint.

What is a good budget?

Half of all servers cost less than 2 715 tokens. A config with a total of a few thousand tokens is cheap. If one server costs more than 20 000 tokens, ask if you need all of its tools. 20 of the 20 heaviest servers are above that limit. The command npx mcpcost --budget 30000 fails a CI run when a config grows past the budget.

Does a server that needs auth also cost tokens?

Yes. After you authenticate, it sends its tool definitions like any other server. The board cannot list the tools of a server that refuses clients without credentials. These servers show “needs auth”. When the open-source package of the publisher is on npm or PyPI, the page shows the tool set of that package instead, with a note. In a terminal, npx mcpcost measures such a server with the headers from your config, or with the credentials you store once through npx mcpcost auth.

The heaviest servers today

ServerToolsClaudeClaude CodeOf Claude's 200k
com.replynodes/mcp762 054 6062 055 2141027.3 %
io.github.ocean1547-ui/nspros-mcp-gateway2 3141 186 6961 223 720593.3 %
com.mcparmory/posthog6181 025 2561 030 200512.6 %
co.ainumbers/tools839871 295877 168435.6 %
com.qubesync/quickbooks-desktop-api268858 757863 045429.4 %
info.astroway/astrology883831 654838 718415.8 %
com.idosgames/platform187740 245741 554370.1 %
io.github.hermoso-ai/hermoso-ads-manager952661 903676 183331.0 %
io.github.devinwang/app-store-connect-mcp1 316660 300680 040330.1 %
net.crawlora/crawlora-mcp2 000644 874670 874322.4 %

All servers by token cost → · Statistics → · Method →