
Tool Filter MCP
io.github.respawn-llc由 GitHub 账号 respawn-llc 发布v0.5.0更新于 Nov 3, 2026
MCP代理服务器,通过基于正则表达式的拒绝列表过滤来自上游MCP服务器的工具
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
MCP proxy server that filters tools from upstream MCP servers via regex-based deny list
概览
Tool Filter 的本地 MCP 服务;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
安装
在 SourceWeft 中
- 打开 控制台中的 Tool Filter MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MCP proxy server that filters tools from upstream MCP servers via regex-based allow and deny lists.
Maintained: ✅ Yes (Winter 2027)
Why use this?
For effective context engineering, we want to minimize useless tokens. Most major agents right now (e.g. Claude Code) do NOT remove tool descriptions from the context. Even though the tool is completely denied and unused, the model will still get its entire description and still try to call the tool (and get error messages). For big MCPs, such as github, supabase, jetbrains IDE, atlassian, this is catastrophic to the context and leads to context pollution by 40-60k of useless tokens. You wanted your agent to be able to see jira ticket descriptions? Please also have these 44 useless tools to edit assignees on confluence pages.
This MCP completely solves the issue without introducing any overhead. Contributions welcome!
Installation
Usage
Basic Example (HTTP/SSE)
Filter tools matching .*_file$ pattern from an HTTP MCP server:
Basic Example (stdio)
Filter tools from a local stdio MCP server:
With Environment Variables (stdio)
Pass environment variables to the upstream stdio server:
Multiple Patterns
Use comma-separated patterns:
Allow specific tools
Use --allow (-a) with comma-separated regex patterns to expose only matching tools. When both filters are set, deny takes precedence. These rules also apply to --list-tools.
Matching is case-sensitive and can match part of a name. Use ^ and $ to match a whole name. Blank comma-separated entries are ignored. An omitted or blank allow list leaves tools unrestricted by allow. A nonempty allow list that matches no tools exposes no tools. Invalid regex patterns and patterns rejected by the regex-safety check cause an error in proxy and list modes. Use \, to include a comma inside one pattern. For example, --allow '^[a-z]{1\,3}$' matches names of one to three lowercase letters.
With Authentication Headers
Add custom headers for authentication:
Headers support environment variable expansion (if not yet expanded by your app):
List Available Tools
Discover what tools are available before setting up filters:
With Claude Code
HTTP/SSE Upstream Server
Add to your .mcp.json:
With authentication headers (supports environment variable expansion):
Stdio Upstream Server
With multiple arguments to the upstream server:
With arguments that start with dashes (like uvx):
With environment variables for the upstream stdio server:
CLI Options
Tool list
Print the list of available tools without starting a proxy server
--list-tools: List available tools from upstream and exit--format <type>: Output format for--list-tools(default:table)table: Human-readable table with descriptions (truncated to 100 chars)json: Full JSON output with complete schemasnames: Comma-separated tool names for easy copy-paste
Connection Mode (mutually exclusive)
To start the proxy server, you must specify exactly one of:
--upstream <url>: Connect to upstream HTTP/SSE MCP server--upstream-stdio: Spawn and connect to upstream stdio MCP server- Requires command and arguments after
--separator - Example:
--upstream-stdio -- npx zen-mcp-server
- Requires command and arguments after
Common Options
--allow <patterns>,-a <patterns>: Comma-separated regex patterns for tools to allow--deny <patterns>: Comma-separated regex patterns for tools to filter
HTTP/SSE Mode Options
Only applicable with --upstream:
--header <name:value>: Custom HTTP header to pass to upstream server (can be repeated for multiple headers)- Format:
--header "Header-Name: value" - Supports environment variable expansion:
$VARor${VAR} - Example:
--header "Authorization: Bearer $TOKEN"
- Format:
Stdio Mode Options
Only applicable with --upstream-stdio:
--env <KEY=value>: Environment variable to pass to the upstream stdio server (can be repeated for multiple variables)- Format:
--env "KEY=value" - Example:
--env "API_KEY=secret" --env "DEBUG=true"
- Format:
- After the
--separator, provide the command and all its arguments- Everything after
--is passed to the upstream server - Supports arguments starting with dashes (like
--from,--config, etc.) - Example:
--upstream-stdio -- uvx --from git+https://... package-name
- Everything after
Requirements
- Node.js 22.12+, 24.x, or 26+ (use the latest patch release for your major version)
- Upstream MCP server with:
- SSE or Streamable HTTP transport (for
--upstream), OR - stdio transport (for
--upstream-stdio)
- SSE or Streamable HTTP transport (for
License
MIT
Copyright (c) 2026 Respawn LLC
来源:README.md,提交 318d2f8
工具
0版本历史
1- v0.5.0最新Nov 3, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分