MCP Integration
The Aris RAG pipeline is fully compliant with the Model Context Protocol (MCP). This allows any MCP-enabled agent (Claude Desktop, internal agents) to utilize our vector stores and knowledge graphs as standard tools.Tool Definitions
We expose two primary tools via the MCP server:retrieve_context and semantic_search.
Server Implementation
Our MCP server is built using themcp-python-sdk. It connects to the configured vector database (Qdrant/Pinecone) and manages the FastAPI lifecycle.
MCP Server Lifecycle
- Initialize: Connect to Vector DB and embedding model.
- Expose Tools: Register
retrieve_contextandsemantic_searchcapabilities. - Handle Requests: Validate JSON-RPC 2.0 requests.
- Execute & Return: Run the RAG pipeline and return
CallToolResult.
Ensure your MCP server has access to the same environment variables (OPENAI_API_KEY, VECTOR_DB_URL) as the main application.