Tool Gating MCP
@ajbmachon
About Tool Gating MCP
Implements a tool gating and discovery system to preserve LLM context and focus while having access to many MCP servers
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"tool-gating-mcp": {
"command": "uv",
"args": [
"venv"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Tool Gating MCP?
Tool Gating MCP is an intelligent proxy/router for the Model Context Protocol (MCP) that allows clients like Claude Desktop to dynamically discover and use tools from multiple MCP servers through a single connection point. It prevents context bloat by selecting only the most relevant tools for each task.
How to use Tool Gating MCP?
Install Python 3.12+ and uv, clone the repo, create a virtual environment, install dependencies, and run tool-gating-mcp (HTTP API server) or integrate it as a native MCP server using mcp-proxy. Configure Claude Desktop to point to Tool Gating MCP; then use built-in tools like discover_tools, provision_tools, and register_tool.
Key features of Tool Gating MCP
- Proxy architecture routes calls to multiple backend MCP servers
- Dynamic tool discovery via semantic search across all servers
- Smart provisioning loads only relevant tools within token budgets
- Transparent execution routes tool calls to the correct backend
- 90%+ reduction in context usage compared to loading all servers
- Zero configuration – Claude Desktop only needs Tool Gating MCP
Use cases of Tool Gating MCP
- Reducing context bloat when using many MCP servers (e.g., Exa, Puppeteer, Context7, Desktop Commander)
- Dynamically adding tools during a conversation without restarting Claude Desktop
- Improving AI tool selection by presenting only the most relevant tools per query
- Lowering token costs by minimizing the number of tool definitions sent per request
FAQ from Tool Gating MCP
What problem does Tool Gating MCP solve?
It solves context bloat caused by loading 100+ tools from multiple MCP servers at startup, and removes the need to restart Claude Desktop to add new servers during a conversation.
How does it reduce context usage?
It uses semantic search and token budget enforcement to select and provision only the most relevant tools (typically 2–3) out of a large pool, cutting token consumption by over 90%.
What are the prerequisites?
Python 3.12+, the uv package manager, and optionally mcp-proxy for native MCP integration with Claude Desktop.
How does tool discovery work?
Tools are registered with metadata, tags, and token estimates. User queries are embedded using a sentence transformer, and tools are scored by cosine similarity plus tag matches (0.2 boost per matching tag).
Can I integrate new MCP servers with Tool Gating MCP?
Yes. You can register tools from external MCP servers via the API endpoints (/api/tools/register) or use the AI-assisted server registration endpoint (/api/mcp/ai/register-server).
Frequently asked questions
What problem does Tool Gating MCP solve?
It solves context bloat caused by loading 100+ tools from multiple MCP servers at startup, and removes the need to restart Claude Desktop to add new servers during a conversation.
How does it reduce context usage?
It uses semantic search and token budget enforcement to select and provision only the most relevant tools (typically 2–3) out of a large pool, cutting token consumption by over 90%.
What are the prerequisites?
Python 3.12+, the `uv` package manager, and optionally `mcp-proxy` for native MCP integration with Claude Desktop.
How does tool discovery work?
Tools are registered with metadata, tags, and token estimates. User queries are embedded using a sentence transformer, and tools are scored by cosine similarity plus tag matches (0.2 boost per matching tag).
Can I integrate new MCP servers with Tool Gating MCP?
Yes. You can register tools from external MCP servers via the API endpoints (`/api/tools/register`) or use the AI-assisted server registration endpoint (`/api/mcp/ai/register-server`).
Basic information
More Other MCP servers
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.

Lemon.io
lemon-ioRequest dedicated senior developers to work on your project, write job descriptions, and prep technical interviews — all without leaving your Claude chat. Just describe what you need, and Lemon.io MCP does the rest. 1–3
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Comments