
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP proxy server that lets clients discover, provision, and execute tools from multiple backend MCP servers through a single connection.
Tool Gating MCP is cataloged as an MCP server attributed to ajbmachon. An MCP proxy server that lets clients discover, provision, and execute tools from multiple backend MCP servers through a single connection. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Tool Gating MCP are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It selects only relevant tools for each task within token budgets instead of exposing all tools from all servers.
No, tools are dynamically loaded on demand when used.
It exposes tools including discover_tools, provision_tools, register_tool, and list_mcp_servers.
README.md · f94050a627f4 · 采集于 2026-11-13 13:27:04 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
An intelligent proxy/router for Model Context Protocol (MCP) that enables Claude Desktop and other MCP clients to dynamically discover and use tools from multiple MCP servers while maintaining a single connection point. This system prevents context bloat by intelligently selecting only the most relevant tools for each task.
MCP clients like Claude Desktop must load all servers at startup and cannot dynamically add servers during conversations. When using multiple MCP servers:
Loading all servers directly leads to:
Tool Gating MCP acts as an intelligent proxy that:
Example: Instead of configuring 10 MCP servers with 100+ tools, configure just Tool Gating. Then dynamically discover and use only the 2-3 tools you need.
git clone https://github.com/yourusername/tool-gating-mcp.git
cd tool-gating-mcp
uv venv
source .venv/bin/activate # On Unix/macOS
# .venv\Scripts\activate # On Windows
uv sync
uv pip install -e .
# Start the server
tool-gating-mcp
# Or with uvicorn for development
uvicorn tool_gating_mcp.main:app --reload
The server will run on http://localhost:8000
API documentation available at:
http://localhost:8000/docshttp://localhost:8000/redochttp://localhost:8000/mcp (SSE transport)Tool Gating MCP is now a native MCP server that works directly with Claude Desktop:
Start the server:
tool-gating-mcp
Install mcp-proxy (if not already installed):
uv tool install mcp-proxy
Add to Claude Desktop:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"tool-gating": {
"command": "/Users/YOUR_USERNAME/.local/bin/mcp-proxy",
"args": ["http://localhost:8000/mcp"]
}
}
}
Note: Replace YOUR_USERNAME with your actual username.
Restart Claude Desktop
You'll see Tool Gating's tools available in Claude, including:
discover_tools - Find relevant tools based on queriesprovision_tools - Select tools within token budgetsregister_tool - Add new tools to the registrylist_mcp_servers - View registered MCP serversSee MCP Native Usage Guide for detailed instructions.
POST /api/tools/discover
Discover relevant tools based on semantic search.
Request:
{
"query": "I need to perform calculations",
"tags": ["math", "calculation"],
"limit": 5
}
Response:
{
"tools": [
{
"tool_id": "calculator",
"name": "Calculator",
"description": "Perform mathematical calculations",
"score": 0.95,
"matched_tags": ["math", "calculation"],
"estimated_tokens": 50
}
],
"query_id": "uuid",
"timestamp": "2024-01-01T00:00:00"
}
POST /api/tools/provision
Select and format tools for LLM consumption with token budget enforcement.
Request:
{
"tool_ids": ["calculator", "web-search"],
"max_tools": 3
}
Response:
{
"tools": [
{
"name": "Calculator",
"description": "Perform mathematical calculations",
"parameters": { "type": "object", "properties": {...} },
"token_count": 50
}
],
"metadata": {
"total_tokens": 150,
"gating_applied": true
}
}
Claude Desktop Configuration: Configure only Tool Gating MCP
{
"mcpServers": {
"tool-gating": {
"command": "mcp-proxy",
"args": ["http://localhost:8000/mcp"]
}
}
}
Backend Server Connection: Tool Gating connects to multiple MCP servers
Tool Gating → puppeteer (browser tools)
→ exa (search tools)
→ context7 (documentation)
→ filesystem (file operations)
Natural Language Discovery: "I need to search for research papers"
Claude → discover_tools → Semantic Search → Returns relevant tools
Real-time Tool Execution: Tools are loaded on-demand
execute_tool("exa_research_paper_search", {...}) → Validates → Loads → Executes
No provisioning needed! Tools are dynamically loaded when you use them.
# Make sure the server is running first
tool-gating-mcp
# In another terminal, run the interactive demo
python demo.py
# Test the server endpoints
python test_server.py
import httpx
import asyncio
async def find_math_tools():
async with httpx.AsyncClient() as client:
response = await client.post(
"http://localhost:8000/api/tools/discover",
json={
"query": "I need to solve equations",
"tags": ["math"],
"limit": 3
}
)
tools = response.json()["tools"]
print(f"Found {len(tools)} relevant tools")
for tool in tools:
print(f"- {tool['name']}: {tool['score']:.3f}")
asyncio.run(find_math_tools())
# Run all tests
pytest
# Run with coverage
pytest --cov=tool_gating_mcp
# Run specific test files
pytest tests/test_discovery_service.py -v
# Run integration tests
pytest tests/test_integration.py -v
The system uses sensible defaults but can be configured:
all-MiniLM-L6-v2 (384-dimensional embeddings)tool-gating-mcp/
├── src/
│ └── tool_gating_mcp/
│ ├── __init__.py
│ ├── main.py # FastAPI application
│ ├── api/
│ │ ├── models.py # Pydantic models
│ │ ├── tools.py # Tool management endpoints
│ │ └── mcp.py # MCP server endpoints
│ ├── models/
│ │ └── tool.py # Domain models
│ └── services/
│ ├── discovery.py # Semantic search
│ ├── gating.py # Tool selection logic
│ └── repository.py # Tool storage
├── tests/
│ ├── test_*.py # Test files
│ └── test_integration.py # Integration tests
├── demo.py # Interactive demo
├── test_server.py # Manual testing script
└── pyproject.toml # Project configuration
# 1. Clear existing demo tools
DELETE /api/tools/clear
# 2. Register tools from your MCP servers
POST /api/tools/register
{
"id": "exa_research_paper_search",
"name": "research_paper_search",
"description": "Search across 100M+ research papers with full text access",
"tags": ["search", "research", "academic"],
"estimated_tokens": 250,
"server": "exa",
"parameters": {
"type": "object",
"properties": {
"query": {"type": "string"},
"numResults": {"type": "number", "default": 5}
},
"required": ["query"]
}
}
POST /api/tools/discover
{"query": "find research papers", "limit": 3}
POST /api/tools/provision
{"tool_ids": ["exa_research_paper_search"], "max_tokens": 500}
AI assistants can automatically add new MCP servers:
# User: "Add this Slack MCP server to tool gating"
# AI: Connects to server, discovers tools, and registers everything
POST /api/mcp/ai/register-server
{
"server_name": "slack",
"config": {
"command": "npx",
"args": ["@slack/mcp-server"],
"env": {"SLACK_TOKEN": "xoxb-..."}
},
"tools": [
// AI provides all discovered tools with metadata
]
}
# Result: Slack server + all tools registered and ready for use
# Format code
black .
# Run linter
ruff check . --fix
# Type checking
mypy .
# Run all checks
black . && ruff check . --fix && mypy . && pytest
Tools can be added to the repository in services/repository.py:
Tool(
id="my-tool",
name="My Tool",
description="Description for semantic search",
tags=["category", "function"],
estimated_tokens=100,
parameters={
"type": "object",
"properties": {...},
"required": [...]
}
)
git checkout -b feature/amazing-feature)black, ruff, mypy, pytest)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Tool Gating MCP from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/tool-gating-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.