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.8K

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

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
6.6K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
6.7K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
5.8K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
5.7K
4 points
P
Paperbanana
Python
7.1K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
8.2K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
7.9K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
6.9K
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
25.3K
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
35.3K
5 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
21.9K
4.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
73.7K
4.3 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#
33.5K
5 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
66.1K
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
50.8K
4.8 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
21.5K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase