MCP Servers & Security

The MCP Context Tax: How Many Servers Is Too Many, and How to Prune Your Stack

22 December 2026 · Updated 28 November 2026 · 11 min read · by Yang Kai

Every MCP server charges rent in tokens before you type a word. Here is how to measure what each server costs, where the accuracy cliff sits, and a pruning method that keeps the tools you use and drops the rest.

Worksheet inside: MCP stack audit worksheet

Contents
  1. What the tax actually is
  2. The second tax: accuracy drops before the window fills
  3. How tool search changed the maths (and what it did not change)
  4. The pruning method: measure, split, cut
  5. A worked example: auditing a nine-server stack
  6. The verdict

Open a fresh session, type nothing, and check your context usage. If a third of the window is already gone, you are paying the MCP context tax: every connected server describes its tools to the model, and those descriptions sit in context on every message, whether the tools get used or not.

This article puts numbers on the tax, explains the second, quieter cost — tool-selection accuracy — and then gives you a pruning method: measure each server, split your config into a core profile plus per-project packs, and cut with a rule instead of a feeling. The worked example at the end audits a realistic nine-server stack down to four.

The figures below come from community measurements and vendor telemetry, each attributed where it appears, plus Anthropic’s own documentation for how Claude Code now defers tool loading. The pruning method is the part to keep.

The short answer: with tool search on (the Claude Code default), a large stack costs far less at startup than it used to — but every tool the agent actually loads still bills you, accuracy still drops as visible tools pile up, and clients without deferred loading still pay full price. Pruning is not obsolete. It just changed shape.

What the tax actually is

An MCP tool definition is not a name. It is a JSON schema: the tool’s name, a description written for the model, and the full shape of its inputs. A simple tool might run 200–400 tokens. A rich one, with nested parameters and long descriptions, can pass 1,000.

Multiply that by a server’s whole tool list and the numbers stop being abstract:

The tax is also charged repeatedly in effect. Tool definitions ride along in the conversation prefix, so a bloated stack raises the cost of every turn and eats the space your code, diffs and logs needed. Our context budget audit covers the whole window; this article is about the one line item you control with a config file.

The second tax: accuracy drops before the window fills

Context space is the visible cost. The hidden one is selection quality.

Pipeworx, an MCP infrastructure company, published telemetry from its gateway traffic showing tool-selection accuracy holding up until roughly 40–60 visible tools, then degrading — the model starts picking near-miss tools, calling the right tool with the wrong server’s habits, or asking instead of acting. Anthropic’s own tool search documentation makes a similar point from the other side: it notes that Claude’s ability to pick the correct tool degrades once the available set grows past roughly 30–50 tools.

Two things follow:

Watch out: disabling a server in one client’s UI does not always remove its definitions from every client you use. A server pruned in Claude Code may still be loading in Cursor or a desktop app with its own config file. The audit below is per client, not per machine.

How tool search changed the maths (and what it did not change)

Claude Code now ships with tool search on by default. Per Anthropic’s MCP documentation for Claude Code, only tool names and each server’s instructions load at session start. The full schema of a tool enters context only when the agent searches for it and uses it. One independent measurement of three hosted servers, published in November 2026, found the same setup starting at about 32K tokens with tool search on versus about 95K with it off.

The controls, from the docs:

Setting Behaviour
ENABLE_TOOL_SEARCH unset (default) All MCP tools deferred; loaded on demand
ENABLE_TOOL_SEARCH=auto Tools load upfront while they total under 10% of the window; the rest defer
ENABLE_TOOL_SEARCH=auto:N Same, with your own percentage threshold
ENABLE_TOOL_SEARCH=false Old behaviour: everything loads at startup
alwaysLoad: true on one server That server’s tools load upfront; overrides deferral for it

So is pruning dead? No, for four reasons:

  1. Loaded tools still cost. Deferral moves the charge from startup to first use. A session that touches 40 tools still carries 40 definitions for the rest of the conversation.
  2. Names and instructions still cost. Small, but a 15-server stack pays it 15 times, and verbose server instructions add up.
  3. Not every client defers. API integrations, other agents and older clients still load full definitions upfront. A config shared across tools inherits the worst client’s behaviour.
  4. Accuracy is about the visible set, not the token bill. Once tools are loaded into a session, the selection problem returns with them.

The Claude Code plus MCP setup guide covers connecting servers; treat this article as the follow-up that decides which connections deserve to survive.

The pruning method: measure, split, cut

This is the artefact. Run it once per client, then again whenever you add a server.

Step 1: Measure each server on its own

Start the client with one server enabled at a time and read the context report (in Claude Code, /context). Record three numbers per server: tools exposed, startup tokens with deferral off if your client allows the comparison, and — the number that matters most — how many of its tools you have actually called in the last month. Your memory is fine for this; be honest rather than precise.

Server Tools Startup cost Tools used last month Verdict
GitHub 93 ~55K tokens (community count) 6 Keep, trimmed to toolsets
Playwright ~20 Medium 11 Keep in browser projects only
Postgres ~8 Small 8 Keep, project pack
Filesystem ~12 Small 0 (built-ins cover it) Remove
Fetch ~1 Tiny 2 Keep in core

Step 2: Split into a core profile and project packs

One global config is the root of most bloat. Replace it with two layers:

Claude Code reads project-scoped servers from the project’s .mcp.json, which you can commit — so the pack travels with the repo instead of haunting every session on the machine. The MCP servers worth installing guide argues the same short-list philosophy from the selection side.

Step 3: Cut with rules, not vibes

Apply these in order. Each one removes a category of waste:

Step 4: Disable versus remove — pick the right one

Disable (comment out, or scope down) when a server is project-specific or seasonal: the quarterly reporting database, the migration tool you will need again in March. Remove when it failed the 30-day rule twice, duplicates another server, or is unmaintained. A disabled server costs nothing at runtime; a removed server costs nothing in decision-making either. Hoarded configs are how stacks regrow.

A worked example: auditing a nine-server stack

A typical accumulated config, built up over months of “that looks useful”:

Server Tools Used monthly? Decision
GitHub 93 Daily, ~6 tools Keep; limit to issues/PRs/code-search toolsets, read-only by default
Filesystem 12 Never — built-ins cover it Remove
Fetch 1 Weekly Keep in core
Context7 (docs) 2 Daily Keep in core
Playwright ~20 In frontend work only Move to project pack
Postgres 8 In one API project only Move to project pack
Slack ~10 Monthly, one channel Remove; a webhook script does the job
Memory ~9 Never after week one Remove
Brave Search 8 Weekly Keep in core

Result: the core profile drops from nine servers and roughly 180 tool definitions to three servers and about a dozen. Sessions in the API project load five servers; sessions everywhere else stop paying for a database they never touch. Nothing was lost that cannot be restored with one claude mcp add command — which is exactly why the 30-day rule works: re-adding is cheap, so keeping “just in case” has no defence.

For the production side of the same discipline — pinning versions, watching for tool-definition changes between sessions — see MCP in production and the MCP registry guide for checking a server’s provenance before it earns a place back.

FAQ

How many MCP servers is too many? There is no magic count; there are two limits. Keep the visible tool set in a working session under roughly 40–60 tools, where selection accuracy holds up in published telemetry, and keep startup definitions a small fraction of your window. Three servers with 90 tools can be worse than ten servers with 30.

Does tool search make pruning pointless? No. Deferral removes the startup charge, not the per-use charge, and it does not fix overlapping tools or clients that load everything upfront. Pruning after tool search is about accuracy and hygiene more than raw tokens.

How do I see what my stack costs? Run /context in Claude Code at session start and read the MCP line, then once more after an hour of work to see what actually loaded. Repeat per server if one line item looks suspicious.

Should I remove a server or just disable it? Disable project-specific and seasonal servers. Remove duplicates, abandoned experiments and anything unmaintained. If you have disabled the same server for two straight months, remove it.

Is the GitHub MCP server really 55K tokens? That is a community count of its 93 tool definitions, not an Anthropic figure, and it changes as GitHub edits descriptions. The safe takeaway is the order of magnitude — and the fix, which is turning on only the toolsets you use.

The verdict

The context tax is real, measurable and mostly self-inflicted. Measure each server’s cost and actual use, split the survivors into a small core profile plus project packs, and cut by rule: overlaps, 30-day silence, untrimmed toolsets, duplicates. Tool search softens the bill; it does not repeal it.

Start with the audit table — twenty minutes with /context open will tell you more about your stack than another month of adding servers. When you are ready to rebuild the shortlist deliberately, the best MCP servers by job is the shopping list to work from.

By Yang Kai — meetBlogging covers MCP, AI coding tools and the business of building with them, from desk research against official docs and named community sources.

Category: MCP Servers & Security · Tags: #mcp #ai-coding #ai-agents

Next step: this article is part of MCP guides, which covers the full topic from first setup to advanced use.

Related guides