Skip to main content

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 the mcp-python-sdk. It connects to the configured vector database (Qdrant/Pinecone) and manages the FastAPI lifecycle.

MCP Server Lifecycle

  1. Initialize: Connect to Vector DB and embedding model.
  2. Expose Tools: Register retrieve_context and semantic_search capabilities.
  3. Handle Requests: Validate JSON-RPC 2.0 requests.
  4. 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.
Last modified on February 19, 2026