I measured the context cost of 13,658 live MCP servers — most are cheap, a few eat your whole window

2026-11-28来源 dev.toEnglish

Every MCP server you connect to spends tokens before you ask it anything. The instant your client connects, the server returns its full tools/list — every tool's name, description and JSON input schema — and that text sits in the model's context for the entire session. It is the cover charge for walking in the door, and you pay it whether or not you ever call a tool.

Nobody publishes that number. So I measured it, credential-free, across 13,658 live MCP servers in the official registry. The results are not what the "MCP is bloated" takes assume — and the real problem is more specific, and more fixable, than "too many tools."

Bottom line

The median live MCP server costs just 4,971 tokens before you type a word — about 2.5% of a 200K context window. Three-quarters of all servers come in under 10,000. But the tail is savage: the top 10% pass 44,260 tokens, and the single heaviest, a server called LeanrIQ, loads 236,687 tokens of tool definitions — more than an entire 200K window, with zero room left for your actual conversation. And the biggest cost driver isn't the number of tools. It's how many words each one spends describing itself.

How I measured it

No credentials, no accounts, no sign-ups. For every hosted server in the registry I sent a plain initialize followed by tools/list, then counted the tokens in whatever came back (≈ characters ÷ 4, the standard rough estimate). The check reruns every day.

  • 13,658 servers answered the handshake.
  • 314,067 tool definitions between them.
  • Median 13 tools per server; median 4,971 tokens.

The distribution: most servers are cheap, a few are enormous

Here is the cost per server, scaled to the heaviest, with a 200K window drawn in for reference:

Median server ▏ 4,971 Top 10% (p90) ███▋ 44,260 200K window ████████████████▉ 200,000 Heaviest server ████████████████████ 236,687 

The shape matters more than any single number:

  • 10,251 servers (75%) cost under 10,000 tokens. The typical MCP server is not the problem.
  • 247 servers cost 50,000+ — enough to notice in any window.
  • 3 servers exceed 200,000 tokens. Each one, on its own, overflows a full Claude-sized window with nothing but its tool list.

The "context tax" is real, but it's a tail risk, not a flat rate. One wrong server in your config does more damage than a dozen reasonable ones.

The twist: it's not how many tools, it's how many words

This is the part that surprised me. Token cost barely tracks tool count. Look at three of the heaviest servers:

Server Tools Tokens Tokens per tool
Customermates 63 216,491 3,436
LeanrIQ 139 236,687 1,703
Agent Data Tools 674 208,609 310

Customermates exposes ten times fewer tools than Agent Data Tools and still costs more, because each tool carries a long description and a deeply nested schema. Meanwhile the leanest useful servers (below) spend about 45 tokens per tool. That's a ~76x spread in cost for the same unit — one tool.

The lesson for anyone shipping an MCP server: trimming your tool count is the obvious lever, but trimming verbose descriptions and over-specified schemas is the one almost nobody pulls — and it's where the heaviest servers lose the most.

The heaviest servers, named

The current top of the ranking (all measured live, token cost of tool definitions only):

# Server Tools Tokens
1 LeanrIQ 139 236,687
2 Customermates 63 216,491
3 Agent Data Tools (full list) 674 208,609
4 Groundsocial 593 199,503
5 Vee3 269 199,224
6 Stable Baseline 233 179,890
7 Nas.com 423 177,152
8 Duvo MCP 387 176,368
9 make.fun 82 169,258
10 TinyFn 572 166,296

Connect any one of these and 83% to more than a full 200K window is gone before your first message.

What it costs in real money

Tokens are cash. At a common input rate of $3 per million tokens:

  • Median server: ~$0.015 to load — a rounding error.
  • Top 10% (44,260 tokens): ~$0.13 — per turn.
  • Heaviest (236,687 tokens): ~$0.71 — if it even fits.

And "per turn" is the catch. Unless your client uses prompt caching, those tool definitions are re-sent on every message of the conversation. A 30-turn session against a p90-heavy server is ~$4 spent on tool descriptions you may never call — on top of the window you lose.

The cost stacks

Few agents connect to one server. Wire up five median servers and you're already carrying ~25,000 tokens of definitions before anything useful happens. Wire up five from the heavy end and you don't have a context window left to work in. The tax compounds silently with every integration you add "just in case."

The other cost: accuracy

Here's how the 13,658 servers break down by tool count:

1–5 tools █████████████▍ 3,146 6–20 tools ████████████████████ 4,683 21–50 tools ████████████████▏ 3,784 51+ tools ████████▌ 1,982 

The median is 13 tools — healthy. But 1,982 servers ship 51+, and the record holder lists 1,960 tools in one server. Past roughly 30–50 tools, models tend to pick the right one less reliably. So a bloated server charges you twice: once in tokens, once in wrong tool calls.

What "lean" actually looks like

It is entirely possible to be useful and nearly free. The leanest servers that still expose real capability (4+ tools):

Server Tools Tokens
GrantUsage Licensing-Window Verifier 4 180
Tap 4 181
AgentsKit Registry 4 212
Hive Vault 4 219
Fractal Process Intelligence 6 244
HTTP 402 AI Tollbooth 4 256

About 45 tokens per tool — a thousandth of what the heaviest spend. Same protocol, same primitives. The difference is discipline.

The fix (you don't have to choose cheap or capable)

The point isn't to avoid MCP — it's to stop paying the full tax up front. Two moves, both measured publicly by Anthropic:

  • Tool search. Load only tool names and fetch a definition when the model actually needs it. Anthropic reports this cutting a five-server setup from ~77,000 tokens to ~8,700 — an 85% reduction. Claude Code turns it on by default and caps a single MCP result at 25,000 tokens.
  • Code execution against MCP. Let the model call tools through generated code instead of loading every schema. Anthropic's headline example drops from 150,000 tokens to 2,000.

If you build servers: cut dead tools, shorten descriptions to one tight sentence, flatten schemas, and split a 600-tool monolith into focused servers a client can load selectively.

Audit your own server in 30 seconds

  1. Connect it and read tools/list. Count the characters, divide by 4 — that's your tax.
  2. Divide by your tool count. Over ~500 tokens/tool, your descriptions are the problem, not your count.
  3. Compare against the live ranking below. If you're in the top 10%, you're costing your users a window and a wrong tool call.

→ The MCP Context-Cost Index — the full, daily-updated ranking: every server measured, heaviest to leanest, with tool counts and token cost.

Takeaway

The MCP context tax is real but concentrated: the median server is nearly free, and a small, nameable set of servers will quietly eat your entire window — usually not because they have many tools, but because each tool is overwritten. Pick servers by what they cost your context, not just what they do. Measure before you connect. The median is cheap; the tail will cost you — in tokens, in dollars, and in accuracy.

Numbers from the Serverdex live check, 28 November 2026. Token counts are ≈ the raw tool definitions' characters ÷ 4; the tool-search and code-execution figures are Anthropic's published measurements.

原文:https://www.a8q9.cn/en/article/i-measured-the-context-cost-of-13-658-live-mcp-servers-most-are-cheap-a-few-eat--b2041e.html

相关文章