Why Too Many MCP Servers Slow Claude Down (and How to Fix It)

AI Takeaway
Too many MCP servers can slow Claude Code and waste tokens. Learn how tool schemas work, what tool search fixes, and 7 ways to speed things up.
Key points
- The Short Answer
- What Is an MCP Tool Schema?
- How Claude Code Already Reduces the Cost
- Why Claude Code Can Still Feel Slow
- How to Diagnose It in Five Minutes
- 7 Fixes That Work
You add an MCP server for GitHub. Then one for your database, another for design files, and another for monitoring. Each one seemed useful. A week later, Claude Code starts slower, answers wander, and your usage bar drops faster than it used to.
You’re not imagining it. MCP server token usage is real, but it’s more nuanced than “more servers means more tokens.” This guide explains where the cost comes from, what Claude Code already does to reduce it, and seven fixes you can apply today.
The Short Answer
Every MCP server brings tools, and every tool has a definition that Claude has to read. Servers also take time to start, and their tool results can be large. Claude Code now defers many tool definitions by default, which removes much of the old problem. It doesn’t remove all of it, and a few settings can switch the protection off.
What Is an MCP Tool Schema?
An MCP tool schema is the definition of one tool: its name, a plain-language description, and a structured list of the inputs it accepts. Claude needs this to know a tool exists and how to call it correctly.
When definitions are loaded in full, they travel with each request and count toward your context window. Published estimates vary. One analysis puts a typical tool definition at roughly 200 to 800 tokens. Another third-party breakdown estimated that 147 tools would cost around 90,000 tokens per call if loaded upfront, versus about 15,000 when deferred. Treat both as illustrations, since real numbers depend on the server and tool descriptions. Your own /context output is the number that matters.
How Claude Code Already Reduces the Cost
Claude Code includes tool search, which is on by default. Instead of loading every MCP tool definition at startup, it keeps only tool names in context and loads full definitions when Claude needs them. Anthropic’s docs say MCP tool definitions are deferred by default, so adding a server has a small effect on your starting context.
You can change this with the ENABLE_TOOL_SEARCH environment variable:
Value | What happens |
|---|---|
Unset (default) | MCP tools are deferred and found on demand. |
true | Forces deferral, even behind a proxy |
auto | Loads tools upfront only while their definitions stay under 10% of the context window |
auto:5 | Same idea with your own percentage; here 5% |
false | Loads every MCP tool upfront, with no deferral |
You can also set "always load" for a server in your configuration, which keeps its tools visible every turn without a search step. Use it sparingly, for the few tools you need constantly.
Why Claude Code Can Still Feel Slow
Tool search is off or bypassed. ENABLE_TOOL_SEARCH=false loads every definition. Reports also note that when ANTHROPIC_BASE_URL points to a non-Anthropic host, tools may load upfront unless you force deferral with true. Older models without tool search support are affected too.
Too many always-load servers. Each one undoes the savings.
Large tool results. Claude Code warns when a tool’s output exceeds 10,000 tokens and limits output to 25,000 tokens by default. A query that dumps a huge table fills your context fast.
Slow or failing startup. Local servers must launch, and remote servers must connect. A broken server can retry before it is marked failed. The startup wait is controlled by the MCP_TIMEOUT variable.
Overlapping tools. Two servers that do similar things, such as two browser tools, give Claude more chances to pick the wrong one.
Plain context growth. Long sessions get heavier, whatever your servers do.
How to Diagnose It in Five Minutes
Run /mcp. It shows every server, its status, and its tool count.
Run /context. It shows what is filling your context window, including each MCP server.
Run /usage. It shows session usage and, on subscription plans, what counts against your limits.
Run the Claude MCP list. It reveals failed or unauthenticated servers that may be slowing startup.
Symptom | Likely cause | First fix |
|---|---|---|
Slow startup | Many or failing servers | Disable or remove them. |
Usage drains fast. | Large outputs or long sessions | Narrow prompts, clear context |
Wrong tool chosen | Overlapping servers | Keep one per job. |
High context at the start | Tool search off. | Check ENABLE_TOOL_SEARCH |
7 Fixes That Work
Step 1: Disable servers you aren’t using.
Toggle a server off in /mcp. Claude Code stops connecting to it without deleting its configuration, so you can switch it back on later. If you need help choosing which to keep, see our best MCP servers list.
Step 2: Prefer command-line tools when they exist
Anthropic notes that tools like GH or AWS are more context efficient than MCP servers because they add no per-tool listing.
Step 3: Keep the tool search on.
Leave ENABLE_TOOL_SEARCH unset unless you have a reason. If you use a proxy and notice a big context at startup, try true.
Step 4: Use alwaysLoad for only three to five tools.
Reserve it for tools you call nearly every turn.
Step 5: Scope servers to the project
A server added at user scope loads in every project. Local or project scope keeps unrelated servers out of the way.
Step 6: Keep outputs small.
Ask narrower questions, such as “last week’s top five errors” rather than “all errors.” You can adjust the limit with MAX_MCP_OUTPUT_TOKENS, but a smaller request is usually better than a bigger limit.
Step 7: Clear context and update Claude Code
Use /clear between tasks. Our guide to save tokens in Claude Code covers this and eight other habits. Also keep Claude Code updated, since newer versions add features like a discovery cache that lets known remote servers load their tool list without connecting at startup.
Settings Cheat Sheet
Setting | What it controls |
|---|---|
ENABLE_TOOL_SEARCH | Whether MCP tool definitions are deferred or loaded upfront |
MCP_TIMEOUT | How long Claude Code waits for a server to start, in milliseconds |
MAX_MCP_OUTPUT_TOKENS | The cap on a single tool’s output (25,000 by default) |
MCP_DISCOVERY_CACHE=1 | Turns on the discovery cache for remote servers on Claude Code v2.1.221 or later. |
alwaysLoad | Keeps one server’s tools loaded every turn |
Change one setting at a time, and note your /context numbers before and after. Otherwise you won’t know what helped.
A Before and After Example
Imagine a freelancer with eight servers: GitHub, a browser tool, a database, a design tool, a ticket tool, two doc tools, and a monitoring server. Sessions start slowly, and one database query returned thousands of rows into the chat.
Here is a sensible cleanup:
Run /mcp and switch off the second docs tool, since it overlaps with the first.
Move the design tool to project scope, because only one client project uses it.
Switch the database to a read-only user and ask for summaries, not full tables.
Run the Claude MCP list and remove any server that shows as failed.
Check /context again and compare.
Nothing here needs a gateway or a new tool. It’s just housekeeping, and it fixes most cases.
Do You Need an MCP Gateway?
An MCP gateway sits between Claude Code and your MCP servers. It exposes one endpoint, can filter which tools are visible, and centralizes sign-in and logging. Several vendors sell or open-source them.
Probably worth it | Probably overkill. |
|---|---|
Teams sharing many servers and credentials | A solo developer with three to six servers |
You need audit logs and per-person tool access. | Tool search already keeps your context small. |
Many agents need the same tool set. | You are still deciding which servers you need. |
A caution: most of what you’ll read about gateway token savings comes from the vendors selling them, so test claims on your own setup. A gateway is also one more component to trust and maintain. Before connecting anything new, it’s worth asking are MCP servers safe to use.
Don’t confuse this with an LLM gateway set through ANTHROPIC_BASE_URL. That’s a different layer, and it’s the one that can affect whether tool search runs.
How Many Servers Is Too Many?
There is no fixed number. A practical rule is that every server should earn its place. For most developers, three to six well chosen servers are plenty. Site owners and freelancers building a website can start with the five in our guide to Claude connectors for web development and add only when a real need shows up.
Another way to cut context is to reduce how much code Claude reads, which Graphify vs reading raw files compares in detail.
References
Frequently asked questions
Do too many MCP servers slow down Claude Code?
They can. Each server adds tools, startup work, and possibly large outputs. Claude Code defers MCP tool definitions by default, which reduces the cost, but failing servers, big tool results, and disabled tool search can still make it slower.
How many tokens do MCP servers use?
It varies. Published estimates put a typical tool definition at a few hundred tokens, and a large set of tools can total tens of thousands of tokens if loaded upfront. With tool search on, only names load at first. Run /context to see your own numbers.
What is an MCP tool schema?
An MCP tool schema is the definition of a tool: its name, description, and structured input fields. Claude reads it to know when and how to call the tool, and loaded schemas count toward your context window.
What is tool search in Claude Code?
Tool search keeps MCP tool definitions out of context until Claude needs them. Only tool names load at the start, and full definitions are fetched on demand. It is on by default.
How do I turn tool search on or off?
Set the ENABLE_TOOL_SEARCH environment variable. Leave it unset for the default deferral, use true to force it, auto or auto:N to defer only above a percentage of the context window, and false to load every tool upfront.
What does alwaysLoad do in an MCP server configuration?
alwaysLoad keeps a server’s tools loaded every turn instead of deferred, so Claude can use them without a search step. Use it only for the few tools you need constantly, since each one reduces the savings.
How do I see how much context my MCP servers use?
Run /context inside Claude Code to see what fills your context window, including each MCP server. Run /mcp to see each server’s status and tool count, and /usage for session usage.
Why is Claude Code slow to start with MCP servers?
Local servers must launch and remote servers must connect, and a failing server can retry before being marked failed. Disable servers you don’t use, check the Claude MCP list for failures, and keep Claude Code updated.
What is an MCP gateway?
An MCP gateway sits between an AI client and many MCP servers. It exposes a single endpoint and can filter tools, centralize authentication, and keep logs. It is aimed mainly at teams.
Do I need an MCP gateway for Claude Code?
Usually not for a solo developer with a few servers, since tool search already limits context. A gateway can help teams that need shared credentials, audit logs, and per person tool access. Test vendor token saving claims yourself.
Does disabling an MCP server delete it?
No. Toggling a server off in /mcp stops Claude Code from connecting to it but keeps its configuration, so you can turn it back on later. Use Claude MCP Remove to delete one.
What is the MCP output limit in Claude Code?
Claude Code warns when a tool’s output exceeds 10,000 tokens and limits output to 25,000 tokens by default. You can change the limit with MAX_MCP_OUTPUT_TOKENS, but narrower requests are usually better.
Are CLI tools better than MCP servers for context?
Often, when a good CLI exists. Anthropic notes that tools like GH and AWS are more context-efficient than MCP servers because they add no per tool listing.
How many MCP servers is too many?
There is no fixed number. Three to six well chosen servers is a practical range for most developers. Judge by your own /context output, and remove any server you rarely use.
Written by
Muhammad Sohaib
Spotted a mistake? Report a correction · How we handle corrections
More on AI Claude Tools
12 Best GitHub Repos for Claude Code Users
Best MCP Servers for Claude Code in 2026 (And Which Ones to Skip)
What Is Graphify? How It Turns Your Codebase Into a Knowledge Graph for Claude Code