MCP Meta-Router - Discovery, inventory, smart routing, and dynamic management for MCP servers
switchcore acts as a Tool Compass for AI agents using the Model Context Protocol (MCP). It discovers all configured MCP servers, indexes their tools, and provides intelligent routing - helping agents find the right tool for any task without manual lookup.
Pure Python. Zero runtime dependencies for scoring. 152 passing tests.
Overview of all configured MCP servers with tool counts and status
Search across all tools from all servers with keyword filtering
Deep dive into a specific server's tools, prompts, and resources
Force re-scan of all servers to pick up changes
Ranked tool recommendations for any task description using keyword scoring
Multi-step workflow suggestions composed from tools across servers
Tell the router what you're working on to improve suggestions
Context-aware next-tool suggestion based on session state
View current session context and routing state
Re-discover a single server without refreshing all
Hot-reload the config file and sync the server list
Per-server health status, diagnostics, and error reporting
LLM Host (any MCP-compatible model)
|
v
switchcore (this server)
Tools: 12 across 4 phases
|
v stdio connections
+---------+ +---------+ +---------+
| Server1 | | Server2 | | Server3 | ...
| N tools | | N tools | | N tools |
+---------+ +---------+ +---------+
switchcore is read-only and advisory. It discovers and recommends - it does NOT proxy tool calls.
# Install
uv venv .venv --python 3.12
uv pip install -e "." --python .venv/bin/python
# Add to .mcp.json
"mcp-router": {
"command": "bash",
"args": ["-c", "cd /path/to/switchcore && .venv/bin/python -m src.server"]
}
# Run tests
.venv/bin/python -m pytest tests/ -v # 152 passing
| Feature | Description |
|---|---|
| Zero-dep scoring | Pure Python keyword scoring with synonym expansion - no ML dependencies |
| Template-driven | JSON configs for scoring weights, categories, stopwords, workflow patterns |
| WSL-aware | Auto-translates launch commands between Windows and WSL paths |
| Session context | Tracks what you're working on to improve suggestions over time |
| Hot reload | Reload individual servers or full config without restart |
| Health monitoring | Per-server diagnostics with error tracking |