Smart Routing is MCPHub’s intelligent tool discovery system that uses vector semantic search to automatically find the most relevant tools for any given task.Documentation Index
Fetch the complete documentation index at: https://docs.mcphub.app/llms.txt
Use this file to discover all available pages before exploring further.
HTTP Endpoint
- Endpoint:
http://localhost:3000/mcp/$smart - Method:
POST
SSE Endpoint (Deprecated)
- Endpoint:
http://localhost:3000/sse/$smart - Method:
GET
How it Works
- Tool Indexing: All MCP tools are automatically converted to vector embeddings and stored in PostgreSQL with pgvector.
- Semantic Search: User queries are converted to vectors and matched against tool embeddings using cosine similarity.
- Intelligent Filtering: Dynamic thresholds ensure relevant results without noise.
- Precise Execution: Found tools can be directly executed with proper parameter validation.
Setup Requirements
- PostgreSQL with pgvector extension
- LLM Provider (OpenAI or compatible) API key
- Enable Smart Routing in MCPHub settings