[FEATURE REQUEST] Claude Code - Disable specific functions in MCP to save Context Tokens
Status Closed — not planned
Maintainer reply None cached
Activity 10 comments · opened Aug 28, 2025 · closed Jan 8, 2026
Currently in Claude Desktop, I can disable and enable specific functions within a MCP.
I searched the Documentation, asked Claude Code and have searched, but everything I've found said I could not disable specific MCP functions running in Claude Code.
My goal is to decrease the Context usage for MCP functions that I do not need.
Thanks!
10 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
We absolutely need this. When I start a Claude code chat, right off the bat 33% of my context window is taken up by MCP tools I never use.
to illustrate
when running /context I see just for the Supabase MCP:
and yet I only ever use ONE of those, the mcp__supabase__execute_sql
Yes we really need to have this feature asap
I've tried global
denypermissions but that does not limit the context usage of the tool definition. This is my root ~/.claude/settings.json definition:After closing and reopening my
claudesession these tool calls are still consuming precious context:<img width="481" height="524" alt="Image" src="https://github.com/user-attachments/assets/b8fbc19f-7c84-4c66-a446-319f86eac922" />
Hey guys! Since there was no response and there was no tool to accomplish this task, I vibe-coded a proxy mcp with one purpose - to solve this problem.
https://github.com/respawn-app/tool-filter-mcp
Let me know if it works for you!
So far I was able to remove 25+ tools at work and am not having any issues.
Can someone from @ah-anthropic comment if this is on the roadmap or not?
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
That would still be very useful.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.