If you have been bolting MCP servers onto your coding agent all year, you have probably noticed something: the agent that used to feel sharp with two or three servers connected starts hesitating, picking the wrong tool, or burning through its context window before you have even typed a question. This is not your imagination. It is a well-documented side effect of how MCP works, and in late 2026 it has become one of the most common complaints developers raise about the protocol.
This article is about that specific problem: what causes it, why simply using a model with a bigger context window does not solve it, and what practical fixes are actually working right now.
Why connecting "just one more" server isn't free
Under MCP, your AI agent (the host) opens a dedicated client connection to every server you wire in. For each MCP server, the host creates a dedicated client that communicates with that server, and each server provides one or more tools or resources. The client asks the server for a list of tools and resources it provides, and the server replies with a natural-language description of each tool's capabilities and the expected call format.
That description, plus the full JSON schema for every parameter, gets injected into the model's context before the agent has done anything. A server with 40 tools means all 40 tool definitions get injected into the context window every time a conversation starts, whether the agent needs them or not.
The token arithmetic behind tool overload
The numbers add up faster than most people expect. A typical server exposes around 30 tools, each costing roughly 400 tokens of schema once rich argument shapes are included, so twenty connected servers can mean 240,000 tokens of tool definitions before the user has typed anything.
Real measurements bear this out. One analysis found that three MCP servers burned 143,000 of a 200,000-token context window, 72% of the budget, before the agent saw a user message. Even a single popular server is not cheap on its own: the GitHub MCP server alone, with its 35 tools, consumes roughly 26,000 tokens, about 13% of a 200K window.
Why a bigger context window won't save you
The instinctive fix, moving to a model with a larger window, does not actually solve the problem. Reliability tends to degrade well before the window fills up: one gateway vendor reported that with Claude Opus 4.5 and its 200K context window, reliability begins to decline around 60% context utilization. Separately, researchers have shown that a 1M-token window does not fix the accuracy problem, because tool selection degrades regardless of how much room is left.
The root issue is choice overload, not storage. Tool selection accuracy drops noticeably once agents face more than 20 to 30 tools, because descriptions blur together and the model picks the wrong one with high confidence.
Three fixes developers are actually shipping
Three patterns have matured enough by late 2026 to be worth adopting rather than building yourself from scratch.
Progressive tool discovery. Rather than dumping every tool definition upfront, the host fetches the tool list but defers loading full definitions until needed, exposing a lightweight search tool instead. The MCP 2026-07-28 protocol revision made this official, with client best-practices guidance recommending that hosts defer injecting definitions into context and switch to search-based loading once definitions cross roughly 1 to 5% of the context window. Several clients now support turning this on automatically past that threshold.
Gateway-side scoping. Instead of every agent seeing every tool from every server, a gateway sits in between and hands each session only what it is authorised for. Uber's internal platform team described exactly this pattern at scale: an MCP Gateway handling 800-plus servers and 5,000-plus tools, using an MCP Registry as the control plane and a Proxy Gateway as the data plane for runtime translation and execution. You do not need Uber's scale to benefit; the same logic applies once multiple teams share the same servers, an audit record is required, or tool-count growth starts pressuring the context window.
Server-side code execution. Instead of exposing every operation as a separate tool, the server offers just a couple of generic tools and lets the model write code against them. Cloudflare's approach to its own API is the clearest public example: its MCP server for the entire Cloudflare API, spanning DNS, Zero Trust, Workers and R2, exposes just two tools, search and execute, and consumes only around 1,000 tokens instead of the roughly 1.17 million tokens an equivalent server without this approach would need.
A quick checklist before you connect your next server
- Measure first. If you use Claude Code, run the context inspector command at the start of a session; it breaks down how much of your window MCP tool definitions are already consuming, so you can spot a problem before it bites.
- Count tools, not just servers. A single server with 30-40 tools can do more damage than three small, focused ones.
- Scope by task or role. Do not give every agent every tool from every server; grant what each session actually needs.
- Prefer servers with progressive discovery or search-and-execute patterns once you are connecting more than a handful of servers, rather than ones that dump their entire catalogue on first connect.
- Add a gateway once you cross roughly five to ten servers, or once more than one team or agent shares the same set of connections.
- Re-check periodically. Servers add tools over time; a setup that was fine in January can quietly become a 30% context tax by November.
Conclusion
MCP's appeal has always been that it lets one agent talk to many tools through one standard interface. But "many" has consequences: every server you connect adds to a bill the model pays before it even starts reasoning. The fix is not a bigger context window, it is being deliberate about what gets loaded, when, and for whom. If you are shortlisting MCP servers or gateways to try, directories such as intellibotz can help you compare options before you wire anything into a production agent.
Sources
- Model Context Protocol - Wikipedia
- MCP Context Window Too Many Servers: Why 100 MCP Servers Crush Your Agent - archestra.ai
- How Many MCP Servers Is Too Many? The Tool Overload Problem - getunblocked.com
- Model Context Protocol (MCP) Security: How to Restrict Tool Access Using AI Gateways - Kong
- Your MCP server is a monolith. Here's how to fix it - channel.tel
- [MCP Gateway vs. Single Server: The Decision Framework [2026] - Atlan](https://atlan.com/know/ai-agent/mcp-gateway-vs-single-mcp-server/)
- Uber's MCP Gateway Keeps 5,000 Tools Out of the Context Window - DEV Community
- Code Mode: give agents an entire API in 1,000 tokens - Cloudflare Blog
- Your Deploy Agent Doesn't Need 100 Tools in Context: Progressive Discovery for Infrastructure MCP Servers - bex.co
- Too Many MCP Tools? How to Fix MCP Token Bloat - localskills.sh