Skip to content
Level up your prompts with SurePrompts — curated prompts for every workflow.
agentscamp

MCP Server Context-Token Overhead Benchmark (2026): 16 Servers Measured

We probed 16 real MCP servers over stdio and HTTP to measure exact tools/list context-window token overhead — from 172 tokens (Ref) to 7,143 tokens (Supabase).

By Imtiaz RayhanPublished 11 min readIn-depth guide

On this page
  1. Key findings at a glance
  2. Full benchmark results (16 live MCP servers)
  3. Four surprises in the data
  4. 1. Schema verbosity beats tool count
  5. 2. Docs-context servers vary by 6.6× for the same job
  6. 3. Browser automation: Chrome DevTools costs 1.76× more than Playwright
  7. 4. What a realistic 5-server stack actually costs
  8. The 10 heaviest individual tool schemas
  9. What MCP server authors should do differently
  10. How to cut MCP token overhead without losing capability
  11. Methodology and reproducibility

We connected to 16 live MCP servers on November 25, 2026 and tokenized their exact tools/list payloads (183 tools total) with tiktoken (o200k_base and cl100k_base). Overhead spans 41.5× — from 172 tokens (Ref Context) to 7,143 tokens (Supabase MCP). A common five-server dev stack consumes 21,272 tokens (10.6% of a 200K window) before prompt one.

Steps at a glance

  1. Audit your active MCP servers. Run claude mcp list (or inspect /mcp inside a session) to see every server currently loading tool definitions into your workspace.
  2. Move niche servers from user scope to project scope. Keep only universally needed, low-token servers in user scope; move heavy database, cloud, and browser servers into each repo's .mcp.json so they do not tax unrelated projects.
  3. Enable toolset scoping or read-only flags. Where a server supports scoping (such as Supabase's read_only=true or GitHub MCP's toolset flags), mount only the tool groups you actually invoke.
  4. Prefer leaner servers for the same job. When you only need docs lookup or basic browser flows, swapping a 6,900-token debugger or verbose schema for a leaner sibling saves thousands of tokens on every turn.
  5. Re-measure when adding new servers. Probe any candidate server's tools/list response before adding it to a shared team .mcp.json so schema bloat does not silently erode your working context window.

Key takeaways

  • Across 16 live MCP servers (183 tools), upfront tool-definition overhead ranges 41.5× — from 172 o200k tokens (Ref Context) to 7,143 tokens (Supabase MCP), with a median of 1,295 tokens per server.
  • Tool count alone misleads: Context7 exposes only 2 tools yet costs 1,138 tokens (569 tokens/tool, the highest per-tool verbosity measured) — 6.6× heavier than Ref Context (2 tools, 172 tokens) and 4.4× heavier than DeepWiki (3 tools, 256 tokens).
  • Browser automation is a 1.76× gap: Chrome DevTools MCP (33 tools, 6,924 tokens) costs 2,984 more upfront tokens than Playwright MCP (25 tools, 3,940 tokens).
  • A typical 5-server stack (Supabase + Chrome DevTools + GitHub + Repomix + Context7) consumes 21,272 tokens — 10.6% of a 200K context window — before your first message, built-in tools, or CLAUDE.md.
  • One single tool schema can dwarf entire servers: Supabase's create_notebook alone costs 1,263 tokens, more than Context7, DeepWiki, Cloudflare Docs, and Ref combined.
  • Keep per-project .mcp.json lean, use read-only or scoped toolsets where supported, and disable idle servers with /mcp or on-demand tool loading.

Every MCP server you connect injects its full tools/list JSON schema into the model's context window before you type your first word. Everyone working with Claude Code, Cursor, or Codex CLI feels that tax when four or five servers are active at once — yet most advice stops at vague warnings ("don't connect too many servers").

On November 25, 2026, we ran a live, reproducible JSON-RPC benchmark against 16 real MCP servers (12 local stdio servers via npx/uvx and 4 keyless Streamable HTTP remote servers) covering 183 total tools, and tokenized their exact tools/list payloads with tiktoken (o200k_base and cl100k_base).

Key findings at a glance

  • 41.5× spread between lightest and heaviest: Ref Context MCP costs 172 tokens; Supabase MCP costs 7,143 tokens.
  • Median overhead: 1,295 tokens per server (mean 2,117 tokens; overall average 185 tokens per tool across 183 tools).
  • All 16 servers combined: 33,874 o200k tokens (33,258 cl100k tokens, 151,880 bytes of JSON) — 16.9% of a 200K context window spent purely on tool definitions.
  • Tool count is not token cost: Context7 exposes only 2 tools yet consumes 1,138 tokens (569 tokens/tool), while DeepWiki MCP exposes 3 tools in just 256 tokens (85 tokens/tool).
  • One schema can outweigh four servers: Supabase's single heaviest tool (create_notebook, 1,263 tokens) is larger than Context7, DeepWiki, Cloudflare Docs, and Ref combined.

Full benchmark results (16 live MCP servers)

Horizontal bar chart showing upfront tools/list token overhead across 16 live MCP servers, from 172 tokens for Ref Context MCP to 7,143 tokens for Supabase MCP

Sorted from highest to lowest o200k_base token overhead, measured live on November 25, 2026. % of 200K shows how much of a 200,000-token context window that single server occupies before prompt one.

ServerVersionTransportToolso200k Tokenscl100k TokensAvg / Tool% of 200KHeaviest Single Tool
Supabase MCP0.19.0stdio367,1437,0421983.57%create_notebook (1,263)
Chrome DevTools MCP1.14.0stdio336,9246,8192103.46%emulate (577)
Playwright MCP1.66.0-alpha-2026-11-18stdio253,9403,8621581.97%browser_take_screenshot (327)
GitHub MCP (npm ref)0.6.2stdio263,5483,3951361.77%create_pull_request_review (360)
Filesystem MCP (reference)2.4.0stdio162,9262,9061831.46%edit_file (338)
Repomix MCP1.19.0stdio62,5192,4784201.26%pack_remote_repository (715)
Memory MCP (reference)2.2.1stdio91,7381,6971930.87%search_nodes (290)
Git MCP (reference)2026.11.18stdio141,4511,4121040.73%git_log (281)
Context74.8.0stdio21,1381,1435690.57%resolve-library-id (572)
GitMCP (generic /docs)1.1.0HTTP56125931220.31%search_generic_code (159)
Sequential Thinking MCP2.2.0stdio14914864910.25%sequentialthinking (489)
Exa MCP3.5.1HTTP24664612330.23%web_search_exa (305)
Fetch MCP (reference)2026.11.18stdio12982932980.15%fetch (296)
DeepWiki MCP4.0.2HTTP3256245850.13%ask_wiki_question (118)
Cloudflare Docs MCP0.5.0HTTP22522531260.13%search_cloudflare_documentation (197)
Ref Context MCP3.0.3stdio2172173860.09%ref_search_documentation (101)

NOTE

The GitHub row measures the keyless npm reference package (@modelcontextprotocol/server-github@0.6.2, 26 tools). GitHub's hosted Go MCP server exposes more tools across 22 configurable toolsets, so mounting all toolsets without scoping is heavier still.

Four surprises in the data

1. Schema verbosity beats tool count

If you only glance at /mcp tool counts, you will misjudge which servers are actually heavy. Look at the five most verbose servers per tool:

ServerToolsTotal o200k TokensAvg Tokens / Tool
Context721,138569
Sequential Thinking MCP1491491
Repomix MCP62,519420
Fetch MCP (reference)1298298
Exa MCP2466233

Servers that embed long prompt-engineering instructions inside description fields — telling the model when to call the tool, how to format queries, and what not to do — pay that prompt tax on every turn of every session, even when the tool is never called. By contrast, Ref Context (86 tokens/tool) and DeepWiki (85 tokens/tool) keep tool descriptions short and let tool responses carry the guidance.

2. Docs-context servers vary by 6.6× for the same job

All four library/repo documentation servers solve the same core problem — stopping hallucinated APIs — yet their fixed context cost differs sharply:

Context7's 1,138 tokens is still modest in isolation (0.57% of a 200K window), and its version-pinned library coverage is why it leads adoption. Still, teams running tight context budgets — or stacking multiple doc endpoints — can see immediately why lightweight remote servers like Ref and DeepWiki barely register in the window.

3. Browser automation: Chrome DevTools costs 1.76× more than Playwright

Both official browser servers are heavy because browser control requires dozens of discrete actions, but they are not equal:

Mounting both simultaneously — common on frontend repos — consumes 10,864 tokens (5.43% of 200K) before a single page opens. Pick Playwright when you need cross-browser flows and UI automation; mount Chrome DevTools specifically when debugging console errors, network traces, or performance profiles.

4. What a realistic 5-server stack actually costs

Side-by-side comparison of three real-world MCP server stacks and average tokens per tool across verbose versus lean servers

One server rarely hurts. Stacking five popular servers in user scope does:

Example StackServers IncludedTotal ToolsUpfront o200k Tokens% of 200K Window
Heavy full-stack setupSupabase + Chrome DevTools + GitHub + Repomix + Context710321,27210.64%
Lean equivalent stackPlaywright + GitHub + DeepWiki + Ref + Exa588,3824.19%
Minimal docs + searchDeepWiki + Ref + Exa78940.45%

That 21,272-token figure is purely the raw tools/list JSON. Add your host agent's built-in tools, system prompt, CLAUDE.md / rules files, and harness JSON wrappers, and a careless user-scoped .mcp setup easily burns 30,000–40,000 tokens before the user types a single prompt. Beyond token spend, exposing 100+ tools degrades tool-selection accuracy — the same attention dilution covered in Context Engineering.

The 10 heaviest individual tool schemas

Across all 183 tools measured, token overhead follows a sharp Pareto curve: just 10 individual tools account for 6,698 o200k tokens — nearly 20% of the entire 16-server dataset.

RankServerTool Nameo200k TokensRaw JSON Bytes
1Supabase MCPcreate_notebook1,2634,405
2Supabase MCPquery_logs8292,659
3Repomix MCPpack_remote_repository7153,461
4Repomix MCPpack_codebase6763,350
5Chrome DevTools MCPemulate5772,422
6Context7resolve-library-id5722,729
7Context7query-docs5642,517
8Supabase MCPrun_notebook5162,402
9Supabase MCPsearch_docs4972,278
10Sequential Thinking MCPsequentialthinking4892,228

Inspecting those ten JSON schemas reveals three recurring design patterns that inflate context cost across the ecosystem:

  • Prompt manuals stuffed into description: Tools like resolve-library-id, query-docs, and sequentialthinking ship multi-paragraph behavioral rules, examples, and warnings inside the tool description itself. That guidance is helpful when the tool is used, but every connected session pays for it even when the task has nothing to do with docs lookup or structured thought loops.
  • Giant parameter surfaces and duplicated enums: pack_codebase and pack_remote_repository duplicate long option descriptions (ignore patterns, compression flags, output styles, line numbers) across two separate tools instead of sharing a minimal required schema with sensible server-side defaults. Similarly, emulate enumerates many network, geolocation, viewport, and device parameters inline.
  • Unscoped specialty tools mounted by default: Most developers connect Supabase MCP to run SQL queries, read schema metadata, or inspect logs — yet create_notebook and run_notebook alone add 1,779 tokens upfront even for teams that never touch notebooks.

What MCP server authors should do differently

If you maintain an MCP server (or build internal servers for your engineering team), treat tools/list size as a first-class performance budget — the same way frontend teams treat JavaScript bundle size:

  • Target 100–180 tokens per tool for routine CRUD and search tools, and reserve verbose descriptions for genuinely ambiguous parameters.
  • Move usage examples out of tools/list into error messages and MCP Prompts/Resources. If an agent passes a malformed argument, return a concise corrective hint in the tool error response instead of prepending 400 tokens of edge-case instructions to every single turn of every conversation.
  • Ship toolset flags or read-only profiles. Letting users pass --read-only or --toolsets=database,logs cuts both token tax and security exposure in one move.
  • Gate tools/list token count in CI. Running a small JSON-RPC probe (like scripts/benchmark-mcp-tokens.ts in this repo) on every PR catches accidental schema regressions before they ship to thousands of workspaces.

How to cut MCP token overhead without losing capability

  1. Scope heavy servers to projects, not user global config. Keep user scope (~/.claude.json) reserved for lightweight, daily utilities under ~1,200 tokens. Put database, cloud, and browser servers in each repo's .mcp.json (see Adding MCP Servers to Claude Code) so backend repos never pay 6,924 tokens for Chrome DevTools.
  2. Mount scoped toolsets and read-only modes. Many platform servers let you restrict exposed tools via URL parameters or flags — for example, Supabase's read_only=true or GitHub MCP's per-toolset filters — cutting both context bloat and blast radius at once.
  3. Avoid overlapping built-in tools. If you already run Claude Code or Codex CLI, you already have native file editing, grep, and git via bash. Mounting reference Filesystem MCP (2,926 tokens) + Git MCP (1,451 tokens) adds 4,377 redundant tokens on top of tools your agent already has.
  4. Use on-demand tool loading when available. Harnesses that support deferred MCP tool search load only compact tool names upfront and pull full parameter schemas on demand — especially valuable when a team requires 50+ tools across multiple vendor servers.
  5. Audit tool bloat when building your own MCP server. Keep descriptions concise, fold closely related actions into cohesive parameters instead of 30 near-duplicate tools, and check your serialized tools/list size in CI (see Building an MCP Server).

Methodology and reproducibility

Every figure in this report is a direct measurement, not a vendor estimate:

  • Date measured: November 25, 2026.
  • Protocol: Standard MCP JSON-RPC 2.0 initialize (protocolVersion: "2024-11-05") followed by notifications/initialized and paginated tools/list.
  • Payload normalized: Each tool was serialized as compact JSON containing the three schema fields passed to models: { name, description, inputSchema }.
  • Tokenizers: Exact BPE token counts via Python tiktoken using both o200k_base (primary column) and cl100k_base (secondary column). Because Claude's tokenizer and each client's internal tool wrapper add small fixed differences, use the exact numbers as the protocol baseline and the ratios for comparing servers.
  • Why some servers were excluded: Servers that require live account OAuth or paid API validation before returning tools/list (or timed out during keyless stdio startup, such as Desktop Commander, Stripe MCP's remote bridge, and Zilliz Claude Context) were excluded rather than estimated.
  • Reproduce it yourself: The full probe script lives in the AgentsCamp repository (scripts/benchmark-mcp-tokens.ts) and can be re-run against newer server versions at any time.

Next steps: pick the right shortlist in The Best MCP Servers in 2026, wire them cleanly with Adding MCP Servers to Claude Code, or explore the broader landscape in MCP Ecosystem Statistics.

Sources and further reading

Primary documentation used to verify this guide.

Frequently asked questions

How many tokens do MCP servers use in Claude Code or Cursor?
In our November 2026 benchmark of 16 live MCP servers, median upfront tool-definition overhead is 1,295 tokens per server (mean 2,117 tokens, overall average 185 tokens per tool). Lightweight docs servers take 172–612 tokens, while full-featured platform and browser servers take 3,548–7,143 tokens each. Connecting five heavy servers routinely consumes 20,000+ tokens before your first prompt.
Why does Context7 use more tokens than DeepWiki or Ref despite having only 2 tools?
Because token cost comes from the full JSON schema — tool descriptions, parameter instructions, and formatting guidance — not just the number of tools. Context7 v4.8.0 packs extensive usage instructions into its two tools (569 o200k tokens per tool, 1,138 total), whereas Ref Context v3.0.3 (172 tokens) and DeepWiki v4.0.2 (256 tokens) keep their descriptions terse.
Does Chrome DevTools MCP use more context than Playwright MCP?
Yes. In our November 25, 2026 measurement, Chrome DevTools MCP v1.14.0 exposed 33 tools totaling 6,924 o200k tokens (3.46% of a 200K window), compared to Playwright MCP v1.66.0-alpha-2026-11-18 with 25 tools totaling 3,940 tokens (1.97%). That is a 2,984-token (1.76×) difference before the first browser action.
How were these token counts measured, and do they match Claude's tokenizer?
Every server was probed live over standard MCP JSON-RPC 2.0 (initialize followed by tools/list) on November 25, 2026, and the normalized tool definitions (name, description, inputSchema) were tokenized with tiktoken (o200k_base and cl100k_base). Claude's proprietary tokenizer differs slightly in absolute counts (typically within ~5–15% on JSON schemas), and host harnesses add minor per-tool wrapper overhead, so treat these figures as the clean protocol baseline — the relative ranking across servers holds across tokenizers.
Does prompt caching eliminate MCP token overhead?
Prompt caching reduces the dollar cost and prefill time of resending static tool schemas across turns, but it does not give you back context window capacity or prevent attention dilution when dozens of unused tools compete for model selection. Pruning unused servers still improves both reasoning quality and budget.

Filed under

mcp · benchmark · context-window · tokens · claude-code · performance

Related