Tool Filter MCP
T

Tool Filter MCP

An MCP proxy server that filters tools from the upstream MCP server through a regular expression deny list, solves the context pollution problem, and reduces useless tokens
2.5 points
8.2K

What is Tool Filter MCP?

Tool Filter MCP is an intelligent proxy server specifically designed to filter and block unnecessary MCP (Model Context Protocol) tools. It removes unwanted tools from the upstream MCP server through regular expression pattern matching, thereby significantly reducing the useless information received by the AI model and improving processing efficiency and accuracy.

How to use Tool Filter MCP?

You can start the filtering service using a simple command-line tool. You only need to specify the address of the upstream MCP server and the tool patterns to be filtered to start enjoying a clean tool environment. It supports seamless integration with mainstream AI agents such as Claude Code.

Use cases

It is particularly suitable for scenarios where large MCP servers (such as GitHub, Supabase, JetBrains IDE, Atlassian, etc.) are used. When you only need some of the functions but don't want to receive all tool descriptions, Tool Filter MCP can effectively solve the context pollution problem.

Main features

Tool filtering
Use regular expression pattern matching to block specific tools, supporting multiple filtering patterns
Header passthrough
Support custom HTTP header passthrough for easy authentication of the upstream server
Zero-latency design
Adopt a cached tool list design, introducing minimal performance overhead
Fail-fast mechanism
Report errors immediately in case of connection problems or invalid patterns for easy and quick debugging
Transparent proxy
Forward allowed tool calls to the upstream server without modification
Advantages
Significantly reduce useless tokens and improve the performance of AI agents by 40 - 60%
Completely solve the context pollution problem and prevent the model from trying to call denied tools
Zero performance overhead. The cache design ensures efficient operation
A simple and easy-to-use command-line interface for quick deployment
Fully compatible with the existing MCP ecosystem
Limitations
Only support upstream MCP servers using the SSE transmission protocol
Require a Node.js 20.0.0 or higher environment
Filtering rules need to be manually configured and maintained

How to use

Install the tool
Ensure that Node.js 20.0.0 or a higher version is installed, and then use it directly through npx or install it globally
Configure the upstream server
Determine the address of the upstream MCP server to connect to, and ensure that it uses the SSE transmission protocol
Set filtering rules
Define the tool name patterns to be filtered as needed, supporting regular expressions
Add authentication information (optional)
If the upstream server requires authentication, you can pass the authentication token through the header parameter
Start the service
Run the complete command to start the filtering proxy service

Usage examples

Basic tool filtering
Filter all file operation tools ending with _file and keep other functions
Multi-pattern filtering
Filter multiple specific tools simultaneously, using comma-separated patterns
Filtering service with authentication
Pass authentication information to the upstream server while filtering tools
Claude Code integration
Integrate the filtering proxy into the Claude Code configuration file

Frequently Asked Questions

Why do we need to use Tool Filter MCP?
Will filtering tools affect performance?
Which upstream servers are supported?
How to debug filtering rules?
Does it support environment variables?

Related resources

npm package page
Official npm package information and version history
GitHub repository
Source code and contribution guidelines
MCP protocol documentation
Official documentation of the Model Context Protocol
Claude Code configuration guide
Configuration instructions for the MCP server of Claude Code

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "filtered-server": {
      "command": "npx",
      "args": [
        "@respawn-app/tool-filter-mcp",
        "--upstream",
        "http://localhost:3000/sse",
        "--deny",
        "dangerous_tool_1,dangerous_tool_2"
      ],
      "type": "stdio"
    }
  }
}

{
  "mcpServers": {
    "filtered-server": {
      "command": "npx",
      "args": [
        "@respawn-app/tool-filter-mcp",
        "--upstream",
        "http://localhost:3000/sse",
        "--header",
        "Authorization: Bearer ${API_TOKEN}",
        "--header",
        "X-Custom-Header: $CUSTOM_VALUE"
      ],
      "type": "stdio"
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

C
Claude Context
Claude Context is an MCP plugin that provides in - depth context of the entire codebase for AI programming assistants through semantic code search. It supports multiple embedding models and vector databases to achieve efficient code retrieval.
TypeScript
6.2K
5 points
A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
10.4K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
8.4K
4 points
M
MCP Agent Mail
MCP Agent Mail is a mail - based coordination layer designed for AI programming agents, providing identity management, message sending and receiving, file reservation, and search functions, supporting asynchronous collaboration and conflict avoidance among multiple agents.
Python
8.7K
5 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
13.4K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
13.3K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
8.8K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
9.1K
4 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
17.7K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
17.7K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
28.8K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
56.1K
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
51.8K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
24.7K
5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
17.5K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
37.2K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase