Tool Filter MCP
Proxy that hides unwanted tools from another MCP server with regex allow and deny lists
Tool Filter MCP is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI
- Runs
- Locally
- Version
- 0.5.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add tool-filter-mcp -- npx -y @respawn-app/tool-filter-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"tool-filter-mcp": {
"command": "npx",
"args": [
"-y",
"@respawn-app/tool-filter-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"tool-filter-mcp": {
"command": "npx",
"args": [
"-y",
"@respawn-app/tool-filter-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"tool-filter-mcp": {
"command": "npx",
"args": [
"-y",
"@respawn-app/tool-filter-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"tool-filter-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@respawn-app/tool-filter-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add tool-filter-mcp -- npx -y @respawn-app/tool-filter-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.tool-filter-mcp]
command = "npx"
args = ["-y", "@respawn-app/tool-filter-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"tool-filter-mcp": {
"command": "npx",
"args": [
"-y",
"@respawn-app/tool-filter-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "tool-filter-mcp": { "command": "npx", "args": [ "-y", "@respawn-app/tool-filter-mcp" ] } } }Or run: gemini mcp add -s user tool-filter-mcp npx -- -y @respawn-app/tool-filter-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "tool-filter-mcp": { "command": "npx", "args": [ "-y", "@respawn-app/tool-filter-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "tool-filter-mcp": { "command": "npx", "args": [ "-y", "@respawn-app/tool-filter-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "tool-filter-mcp": { "command": "npx", "args": [ "-y", "@respawn-app/tool-filter-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "tool-filter-mcp": { "command": "npx", "args": [ "-y", "@respawn-app/tool-filter-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "tool-filter-mcp": { "command": "npx", "args": [ "-y", "@respawn-app/tool-filter-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "tool-filter-mcp": { "command": "npx", "args": [ "-y", "@respawn-app/tool-filter-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "tool-filter-mcp": { "command": "npx", "args": [ "-y", "@respawn-app/tool-filter-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Tool Filter MCP
Some agents keep a tool's full description in context even after the tool is denied, and may still try to call it. For large servers such as GitHub, Supabase, JetBrains and Atlassian, the README estimates this wastes 40 to 60 thousand tokens. This proxy sits in front of an upstream server and removes the tools you do not want before the client ever sees them.
It connects to an upstream over HTTP/SSE with --upstream, or spawns a stdio server after --upstream-stdio --. Comma-separated regular expressions go in --deny and --allow; matching is case-sensitive and partial unless you anchor with ^ and $, and deny wins when both match. Invalid or unsafe patterns raise an error. --list-tools prints the upstream's tools as a table, names or JSON, with filters applied, so you can preview results.
It can forward custom headers with environment-variable expansion and pass environment variables to a stdio upstream, which makes it a drop-in wrapper in a .mcp.json entry.
What it does
- Regex deny list
- Removes upstream tools whose names match the patterns.
- Regex allow list
- Exposes only tools that match; deny takes precedence.
- HTTP/SSE and stdio upstreams
- Wraps remote servers or spawns local ones.
- Tool listing
- --list-tools shows tools as a table, names or full JSON, after filtering.
- Header and env passthrough
- Forwards auth headers and environment variables to the upstream.
- Pattern safety check
- Rejects invalid or unsafe regex patterns with an error.
Good for
- Trim a large MCP server down to the few tools you need
- Block destructive tools for an agent
- Cut token use from unused tool descriptions
- Preview exactly which tools a filter exposes
- Wrap an authenticated remote server in a local config
Tool Filter MCP FAQ
Why filter tools?
Many agents keep denied tools' descriptions in context, which costs tokens and invites failed calls.
How do I run Tool Filter MCP?
With npx @respawn-app/tool-filter-mcp, using --upstream for HTTP/SSE or --upstream-stdio -- followed by the command.
What wins when allow and deny both match?
Deny takes precedence.
Is pattern matching exact?
No, it is case-sensitive and can match part of a name unless you use ^ and $.
How do I add Tool Filter MCP to Claude Code?
Run this command in your terminal: claude mcp add tool-filter-mcp -- npx -y @respawn-app/tool-filter-mcp
What are the best alternatives to Tool Filter MCP?
The closest alternatives to Tool Filter MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


