Posted this to reddit but thought I’d post it here as well!
I’ve been diving into MCP servers in Cursor and hit a wall with the 40-tool limit. As you can see in the screenshot below, I’ve got 50 tools enabled, but Cursor caps it at 40, meaning some tools just aren’t available to the agent.
Screenshot showing "You have 50 tools from enabled servers. The limit is 40 tools – some tools may not be available to the agent.
From what I’ve found, this is a hard cap to manage the context window (per Cursor’s docs). While I get the technical reasoning, I feel like this really limits creativity. It forces us to either disable tools we might need or pushes devs to design tools that use fewer “tool slots,” which could lead to clunky, less functional tools.
I’m curious – do you all find this limit frustrating too? How are you working around it? I’d love to hear your thoughts, and maybe we can tag this thread as feedback for the Cursor team to consider raising the limit or offering more flexibility.
Maybe I’m crazy, but why is there a limit here? Why can we not simply add entire toolboxes of any number of mcp servers and the agent understand which tool from the tool box to use?
Hey , totally feel the pain. Cursor’s docs hard-cap the agent at 40 tools per session, so extra entries stay invisible. Until Cursor relaxes this (the team said they might and/or add per-tool toggles), my small gateway Smart MCP Proxy removes the pressure right now - GitHub - Dumbris/mcpproxy
See my post here - MCP Proxy Lets Cursor See and Use Thousands of Tools
Sharing another approach for anyone still running into tool-count or context limits. Disclosure: I built ToolLens, an open-source MCP gateway in Rust.
It puts your MCP servers behind three tools:
discover_tools: find relevant tools for a task.
inspect_tool: retrieve a tool’s schema and policy decision.
invoke_tool: validate permissions and arguments, then forward the call.
The individual upstream tools stay behind the gateway, so you don’t have to combine unrelated operations into one oversized tool just to reduce the exposed count.
In my benchmark with 110 vendor MCP servers, exposing the tool definitions directly added about 1.43M tokens per request, and the API rejected every task. With ToolLens, the agent received three tool definitions.
On 28 tasks using Claude Opus 5.5, ToolLens passed 26 versus 25 for Anthropic’s built-in tool search, at $0.043 versus $0.090 per task. I treat completion as effectively tied: one run per task, dummy credentials, and mostly tool-selection tests.
I’ve tested the client integration in Claude Code, but haven’t verified it in Cursor yet. This addresses exposed tool definitions; it doesn’t remove a separate limit on tool calls per session.