Replies: 2 comments 2 replies
-
I’d like to add another use case for this: Some MCPs are linked to paid services, and the MCP includes a combination of tools that are available to free and paid users, or even to different tiers of paid users. Without being able to selectively choose the tools that are loaded, an LLM may try to use one of the tools that is not available to my account level. An example is the Brave search engine official MCP: https://github.com/brave/brave-search-mcp-server. It includes a tool called Finally, as an example of a workaround, LM Studio’s MCP support allows turning off specific tools. Claude Desktop has a similar feature. I believe this is what OP is asking for; but it should be a core capability of MCP instead of an application-specific workaround. |
Beta Was this translation helpful? Give feedback.
-
Related issue in Claude Code repo: Feature: Declarative Tool Filtering in MCP Server Configuration |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
MCP server tool descriptions gobble up the token context window in AI agent frameworks like Claude Code.
For instance, the GitHub MCP server alone increases the starting context window by ~46k tokens. So if I add this MCP server to my user scope (in
~/.claude.json
), 25% of my context window will be gone as soon as I start a new chat (since Claude's max context window is 200k).GitHub MCP has 91 tools, many of which I don't need (e.g.
mcp__github__get_code_scanning_alert
).Is there any way to selectively load only some tools from an MCP server?
If the answer is no, would you be open to modifying the MCP spec to allow for partial loading of tools?
Beta Was this translation helpful? Give feedback.
All reactions