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
- OpenAI API key (or compatible embedding service)
- Enable Smart Routing in MCPHub settings