Claude Code has no fixed number of MCP tools that is too many. With tool search on, its default, going from 10 to 100 tools added about 1.1k tokens per request; with it off, every definition loads up front and the same jump added 7.8k. A clean set of 100 tools still picked the right first tool every time, so the usual 40-tool limit didn’t describe what I measured.
What slipped was a name. Asked for a runbook page, the model should have opened the docs server’s get_page; at 50 and 100 tools it called the same server’s search first, every time. Where that rival lives decides the fix.

Data (CSV)CC BY 4.0
On this page
10 tools vs 100 in Claude Code: what moved and what didn’t
I grew a set of dummy MCP servers, each tool described in one line, from 10 to 100 tools and sent the same few requests at each size, with tool search on and off.
Why extra tools barely cost anything under tool search
Tool search keeps MCP definitions out of the context until Claude needs one, so at session start only tool names and server instructions load. That is why the slope was so flat: each extra tool brought in little more than its name.
With ENABLE_TOOL_SEARCH=false, every definition loads up front, which is where the 7.8k came from. My dummy definitions are one line long, so a real server’s schemas cost more per tool.
Under tool search, the model picks names to load before it sees descriptions
Two servers can’t collide on a name: Claude Code calls every tool by its full name, mcp__<server>__<tool>, so the server is part of what the model reads. On these dummy servers, another server’s search_issues or search_messages never took the first call in any run. Each of those requests fit one server; a request that fits two can still go the wrong way, as the Notion case below shows.
The miss came from one request, “Show me the runbook page for cache eviction.” At 50 and 100 tools, every repeat opened with the same tool search query:
select:mcp__docs__search,mcp__docs__get_page
That line is where the miss happened. At that point the model had seen names only, and “show me the runbook page” reads like a job for search, so it loaded search alongside get_page. Both descriptions came back, and it still called search first: the plan was set at the name list, and the right description arriving next to it didn’t change it.
With tool search off, the same 100 tools got that request right every time, because every description was in view before the model decided what to reach for.
Check whether Claude Code loads every tool definition up front
Claude Code has no fixed per-server tool cap; the practical limit is your context budget, and tool search decides how much of it MCP takes. It is on unless you set ENABLE_TOOL_SEARCH=false or run a model older than Claude Opus 4 and Sonnet 4 (on Google Cloud’s Agent Platform, older than the 4.5 models).
/context # inside Claude Code echo "$ENABLE_TOOL_SEARCH" # in the shell you start claude from
An empty echo means the variable isn’t set, so tool search is on; a false can also sit in the env block of a settings file. /context lists MCP tools on two lines, each with tokens and a share of the window. With my Claude Docs, Gmail and Notion connectors on, it read:
| MCP tools | 677 | 0.1% | | MCP tools (deferred) | 122.8k | 12.3% |
The first line is what sits in every request. The (deferred) line is the definitions tool search is holding back, roughly what they would cost loaded up front; while that line is there, removing servers buys you little context.
If there’s no (deferred) line and the plain MCP tools line passes 10%, cut. That is where Anthropic’s own auto setting starts deferring tools, and in that setup each tool costs you on every request, the case the 40-tool advice fits.
The fix depends on which server the wrong tool came from
Find which server the first call went to. In a normal session, MCP calls fold into one line that names the server, such as Called slack 3 times; press Ctrl+O to open the transcript viewer and see each call. The server name is enough to pick a fix below; the check at the end prints the full mcp__<server>__<tool> name a deny rule needs.
Turning a server off clears every name on that server and nothing else, so what you change is the set of names this task can see, not the number of servers. On our team’s gateway, with every tool in view, a question about what changed before a jump in payment errors went to a Slack search first; once the session saw about ten tools, deploy history came first.
When the rival is on another server
This is the cheap case. On my own Mac, back when Claude Code loaded every tool definition, I had the Notion and Gmail connectors on during a Gradle dependency cleanup and asked whether I had a note about a build conflict. The first call was Notion search, and it came back with unrelated pages.
I switched Notion and Gmail off in the /mcp panel; the command also takes a server name:
/mcp disable <server>
With both off, the same question went to a repository search first and to Context7, a docs server, for the Gradle docs, the right order for that job, and the MCP tools line in /context fell from above that 10% line to about 2% to 3%.
The catch came the next day: I asked it to save meeting notes to Notion and it said it had no tool for that. The /mcp toggle holds for the project until you turn it back on, so I now run /context when I start work to see what is on. A server that only one repository needs can live in that repository’s .mcp.json instead, so it never shows up anywhere else.
When it is on the same server as the right tool
This rival can only leave together with the right tool: both live on the docs server, so switching servers off either keeps search or takes get_page with it. What fixed it was a list without search; turning tool search off also works, at the token cost above.

Data (CSV)CC BY 4.0
In Claude Code, the narrower list needs no separate config: a deny rule with a tool’s full name removes that tool from Claude’s context and leaves the rest of the server. For the docs rival, the rule is one line in the project’s .claude/settings.json:
{ "permissions": { "deny": ["mcp__docs__search"] } }
A misspelled name raises no warning and the tool stays, so check the /mcp list afterwards. If the rival comes from a connector you have on in every project, put the same rule in ~/.claude/settings.json instead; a deny at any level wins over an allow at another.
I use the same kind of rule on the Notion connector on days I read design notes while refactoring: its write tools, such as mcp__claude_ai_Notion__notion-create-pages, are denied, search and fetch stay, and since then the agent puts its change summary in the chat instead of trying to create a page.
After the change, read the first tool call, not the answer
Send the request that went wrong again and look at the first MCP tool it calls. For the exact name, run the request once in print mode (claude -p, no interactive session) and pull the name out of the stream:
claude -p "<the request that went wrong>" --output-format stream-json --verbose \
| jq -r 'select(.type=="assistant") | .message.content[]?
| select(.type=="tool_use" and (.name|startswith("mcp__"))) | .name' \
| head -n 1
It prints a full name such as mcp__docs__get_page, skipping ToolSearch and built-in tools. That should now be the tool you meant, under the server you meant. Narrow too far, though, and the agent fills the gap with whatever it can still reach.
At work I once dropped a rarely called feature-flag lookup from a set, then asked whether a flag explained a rise in failed payments. The agent said no tool read flag status directly, so it had checked the repository’s config file and answered with the default, false. I put the lookup back read-only, and the next answer came from the live value.
Sources
- Research note on loopnotes-lab: the dummy server code, the five requests, per-run results, token counts and cost for all 200 runs
- Connect Claude Code to tools via MCP, Anthropic, checked November 20, 2026: tool search default and supported models, names-only loading,
ENABLE_TOOL_SEARCH, no fixed tool cap,/mcptoggle, installation scopes - Settings files and precedence, Anthropic, checked November 20, 2026: the
envblock in settings files - Configure permissions, Anthropic, checked November 20, 2026: deny rules with
mcp__<server>__<tool>remove a tool from Claude’s context - Commands, Anthropic, checked November 20, 2026:
/context,/mcp enable|disable - Interactive mode, Anthropic, checked November 20, 2026: Ctrl+O transcript viewer expands folded MCP call lines