Data · updated 28 Nov 2026
MCP tool limits: what each AI client allows, and how many tools real APIs need
Short answer: VS Code (GitHub Copilot) refuses a chat request with more than 128 tools, and Windsurf's Cascade can use 100 at a time. Cursor used to pass only the first 40 MCP tools to the agent; newer versions and Claude Code load tool details on demand instead of capping the count. OpenAI suggests fewer than 20 functions at the start of a turn. Meanwhile, a whole public API turned into MCP tools is usually far bigger: 7 of the 8 APIs we measured would pass 128 tools.
Every tool an MCP server offers is sent to the model as a name, a description and an input schema. That costs tokens before the conversation starts, and the more tools there are, the more often the model picks the wrong one. So AI clients cap or trim the list.
Below are the limits each client publishes, our own count of how many tools eight well-known APIs would become, and what that means for how many tools an MCP server should have.
MCP tool limits by AI client
What each client publishes, checked against its own documentation on 28 Nov 2026.
| Client | Limit | What happens | What to do |
|---|---|---|---|
| VS Code (GitHub Copilot Chat)Source | 128 tools per request | The request fails with "Cannot have more than 128 tools per request". | Deselect tools or whole MCP servers in Configure Tools. An experimental setting, github.copilot.chat.virtualTools.threshold, groups large tool sets for on-demand discovery. |
| Windsurf (Cascade)Source | 100 tools at a time | Cascade only has access to 100 tools in total across your MCP servers. | Turn individual tools off on each MCP server's settings page. |
| CursorSource | 40 in older versions; loaded on demand now | Older versions sent only the first 40 MCP tools to the agent, so the rest were invisible to it. Current versions sync tool descriptions to files and give the agent only the tool names, so it looks up details when a task needs them. | Switch off tools you don't use in each server's settings. In Cursor's A/B test, on-demand loading cut total agent tokens by 46.9% in runs that called an MCP tool. |
| Claude Code / Claude Agent SDKSource | No fixed count; tool search after 10% of context | In auto mode, tool definitions load up front until they reach 10% of the model's context window. Then tool search switches on and definitions are fetched only when needed. | Control it with the ENABLE_TOOL_SEARCH environment variable. Anthropic notes that with fewer than about 10 tools, loading everything up front is usually faster. |
| OpenAI API (function calling)Source | Fewer than 20 at the start of a turn (advice) | Function definitions count against the model's context limit and are billed as input tokens. Developers also report requests with more than 128 tools being rejected. | OpenAI suggests loading fewer functions up front, shortening descriptions, or using tool search to defer the rest. |
How many MCP tools would popular APIs become?
Most converters turn every endpoint into one tool. We ran that count on the official public OpenAPI specs of eight well-known APIs.
| API | Tools (one per endpoint) | No description | Tokens for all tools (est.) | Tokens per tool | Names over 64 chars |
|---|---|---|---|---|---|
| Swagger Petstore (sample)OpenAPI 3.0.4 | 19 | 0 | ~1,900 | ~98 | 0 |
| Slack Web APISwagger 2.0 | 174 | 0 | ~25,800 | ~148 | 0 |
| Twilio (API v2010)OpenAPI 3.0.1 | 197 | 47 (24%) | ~89,300 | ~453 | 0 |
| AsanaOpenAPI 3.0.0 | 271 | 0 | ~152,700 | ~563 | 0 |
| OpenAI APIOpenAPI 3.1.0 | 388 | 0 | ~110,200 | ~284 | 0 |
| StripeOpenAPI 3.0.0 | 612 | 5 (1%) | ~474,700 | ~776 | 5 |
| Jira Cloud platformOpenAPI 3.0.1 | 630 | 0 | ~216,100 | ~343 | 0 |
| GitHub REST APIOpenAPI 3.0.3 | 1,281 | 0 | ~453,000 | ~354 | 29 |
What the numbers show
- 7 of the 8 APIs would pass VS Code's 128-tool limit if every endpoint became a tool, and all 7 pass the 40 that older Cursor versions used. Only the Petstore sample fits.
- GitHub's REST API alone is 1,281 operations: ten times VS Code's limit.
- Five of the APIs would need more than 100,000 tokens just to describe their tools, and three (Stripe, GitHub and Jira) more than 200,000, which is larger than many models' whole context window.
- A tool costs anywhere from about 100 tokens (Petstore) to nearly 800 (Stripe), because big request bodies and long descriptions travel with it every time.
- 47 of Twilio's 197 operations (24%) have neither a summary nor a description, so a model would have only the name to go on.
- 29 of GitHub's operation IDs and 5 of Stripe's are longer than 64 characters. The current MCP specification allows 128, but an earlier proposal set 64 and some clients add the server's name in front of each tool name, so these are the names most likely to run over.
How we measured
We downloaded each API's official public OpenAPI or Swagger file on 28 Nov 2026 (Stripe's stripe/openapi spec3.json, GitHub's rest-api-description, Twilio's twilio-oai API v2010 file, Slack's slack-api-specs, Atlassian's Jira Cloud v3 spec, OpenAI's openai-openapi, Asana's openapi definitions and the Swagger Petstore v3 sample).
Every path and method counts as one operation, the way most converters turn an API into MCP tools, one tool each. "No description" means the operation has neither a summary nor a description.
For the token estimate we built a basic tool definition for every operation (its name, its summary and description, and an input schema from its parameters and JSON request body, following references one level deep), measured it as JSON and divided the characters by 4, a common rule of thumb for English and code. Deeper schemas would add more, so treat the token figures as rough and on the low side.
DigitalOcean was measured too and left out: its spec splits each operation into separate files, so a single-file count would be wrong.
Why too many MCP tools make an agent worse
It isn't only the token bill. With a long list of similar tools, the model has to tell create_invoice from create_invoice_item from finalize_invoice on descriptions alone, and it gets that wrong more often as the list grows.
GitHub measured this in Copilot. Its default toolset in VS Code had about 40 built-in tools, and MCP servers can take that into the hundreds. GitHub cut the default to 13 core tools and added embedding-based tool routing; on its benchmarks that routing reached 94.5% tool use coverage, against 69.0% for the static tool list.
Cursor came to the same conclusion from the other side: most MCP tools go unused even though they sit in every prompt, so it now shows the agent tool names first and the details only when needed.
GitHub blog: How we're making GitHub Copilot smarter with fewer tools (19 Nov 2025)How many tools should an MCP server have?
There is no official number, but the limits above point the same way. A practical rule:
Under 40 per connection
That fits every client above, including older Cursor versions, and leaves room for the user's other MCP servers. VS Code's 128 is a total across all of them, not per server.
Start with the jobs, not the endpoints
List the 5 to 15 questions people will actually ask. Keep the endpoints that answer them and leave out the rest: health checks, admin routes, internal and duplicate endpoints.
Group the rest
If you really need hundreds of operations, put them in groups the agent can open one at a time, instead of one flat list.
Make every tool easy to tell apart
One plain sentence per tool on what it does and when to use it, clear parameter names, and a name under 64 characters.
Which endpoints to keep, and why, is covered in OpenAPI to MCP server. If your API has no spec, see REST API to MCP server.
MCP tool name and description limits
- MCP specification (2025-11-25)
- Tool names SHOULD be 1 to 128 characters: letters, digits, underscore, hyphen and dot. No spaces, commas or other special characters. (An earlier proposal, SEP-986, set 64 and allowed slashes.) Source
- Claude API
- Tool names must match ^[a-zA-Z0-9_-]{1,128}$, so up to 128 characters but no dots or slashes. Source
- Clients that add a prefix
- Some clients put the server's name in front of each tool name (Claude Code uses mcp__server__tool), so a name that fits on its own can still end up too long. Short server and tool names avoid it.
- Descriptions
- No client above publishes a hard length limit, but every character is sent with every request. OpenAI's advice is to shorten descriptions if you run into token limits. Source
How MCPEasy keeps an API under the limits
MCPEasy turns an OpenAPI spec, a Postman collection, cURL commands or your code into a hosted MCP server. Tool count is decided when you import, not after something breaks:
- It skips internal and health endpoints, and you switch off any other endpoint you don't want the agent to use, before the server goes live.
- It writes a first description for every tool, so operations like Twilio's 47 undescribed ones still tell the model what they do. You can rename any tool and rewrite its description.
- For a big API, it puts the tools in named groups of at most 40. The agent starts with four tools (list_groups, list_tools, search_tools and call_tool) and opens only the group it needs, so even GitHub-sized APIs stay one server and one link.
- The Playground shows which tool the agent picked for a question and the arguments it sent, so you can see a wrong pick and fix its description.
Need a spec first? There are step-by-step OpenAPI guides for 12 frameworks.
Questions about MCP tool limits
- What is the MCP tool limit in Cursor?
- Older Cursor versions passed only the first 40 MCP tools to the agent. Current versions use dynamic context discovery: the agent gets the tool names and looks up the details when it needs them, which Cursor says cut total agent tokens by 46.9% in runs that used an MCP tool. Cursor still lets you switch off individual tools per server.
- What is the tool limit in VS Code and GitHub Copilot?
- 128 tools per chat request, counting every enabled tool and MCP server together. Above that, the request fails with "Cannot have more than 128 tools per request". Deselect tools in Configure Tools, or try the experimental virtual tools setting that groups large tool sets.
- Does Claude have an MCP tool limit?
- Claude Code doesn't publish a fixed count. In auto mode, tool definitions load up front until they reach 10% of the context window; after that, tool search switches on and loads definitions only when needed. The Claude API accepts tool names of up to 128 characters.
- How many tools should an MCP server have?
- Keep each connection under about 40 tools. That fits every major client, including older Cursor versions, and leaves room for other servers. Choose tools by the questions users will ask, leave out internal endpoints, and group the rest if the API is large.
- How many MCP tools is too many?
- Problems start well before the hard limits. OpenAI suggests fewer than 20 functions at the start of a turn, and GitHub cut Copilot's default toolset from about 40 to 13 because accuracy and speed improved with fewer tools. If a model regularly picks the wrong tool, there are probably too many similar ones.
- Do MCP tools use tokens?
- Yes. Every tool's name, description and input schema is sent to the model, counts against the context window and is billed as input tokens. In our measurement a tool costs roughly 100 to 800 tokens, so 200 tools can take 20,000 to 150,000 tokens before the user has asked anything.
- What is the maximum length of an MCP tool name?
- The current MCP specification recommends 1 to 128 characters, using letters, digits, underscores, hyphens and dots. The Claude API accepts up to 128 characters but no dots or slashes. Some clients add a server prefix, so shorter names are safer.
Turn your API into a right-sized MCP server
Import a spec, choose the tools, and connect Claude, Cursor, VS Code or ChatGPT. The free plan includes 500 tool calls a month.
More guides for MCP and OpenAPI
- OpenAPI to MCP serverHow a spec maps to MCP tools, which endpoints to keep, and how auth works.
- REST API to MCP serverConvert any API, with or without a spec: Postman, cURL, code, plus a worked example.
- MCP vs APIThe difference in plain terms, one request followed through both, and when to use which.
- OpenAPI MCP generators comparedSix tools checked against their own docs: inputs, transports, big APIs, hosting and price.
- Get an OpenAPI spec from your frameworkExport an OpenAPI (Swagger) file from 12 frameworks, step by step.
- OpenAPI spec from FastAPINothing to install: FastAPI already serves your spec at /openapi.json.
- OpenAPI spec from ExpressThe packages, code and commands to produce a spec from an Express app.