mcp-tool-router

sneha4175/mcp-tool-router
★ 0 stars Python Code/Dev Tools Updated 1d ago
A proxy that sits in front of your MCP servers and returns only the few tools relevant to each query, instead of loading every tool into the context window. Self-hostable, and runs offline for tests.
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-tool-router": {
      "command": "uvx",
      "args": [
        "mcp-tool-router"
      ]
    }
  }
}

Or install with pip: pip install mcp-tool-router

README Excerpt

**A self-hostable MCP proxy that exposes only the top-k semantically relevant tools per query, instead of every tool from every server.** > **v0.5**, a **retrieval evaluation harness**: measure retrieval quality on a labeled set with the standard IR metrics: **recall@k**, **precision@k**, and **MRR**. Ships a small deterministic smoke dataset and a `python -m mcp_router.eval` CLI. See [v0.5: retrieval evaluation](#v05-retrieval-evaluation).

Tools (5)

MCP_ROUTER_EMBEDDERRetrieveralphahashingreverse_text