r2r-mcp
R2R MCP Server is a system designed to integrate Model Context Protocol with the R2R system, enhancing interactions with MCP-compatible models like Claude. It supports high-performance access to knowledge bases and features advanced search and response generation capabilities.
๐ R2R MCP Server
R2R MCP Server provides integration of the Model Context Protocol (MCP) with the R2R (Retrieval-to-Response) system to enhance interaction with Claude and other MCP-compatible models, ensuring access to knowledge bases.
โจ Features
- MCP server for integration with Claude and other MCP-compatible models
- Asynchronous R2R client for high-performance access to knowledge bases
- Tools for search and response generation based on contextual data
- Structured logging with Loguru
- Lightweight architecture with minimal dependencies
- Advanced RAG (Retrieval-Augmented Generation) capabilities
- Web search support for obtaining current information
- Research capability through an agent for complex queries
๐งฐ Available MCP Tools
search
: Document search using R2R, including vector and hybrid searchrag
: Knowledge base response retrieval with source citationweb_search
: Internet search through R2R with results from open sourcesdocument_search
: Search within specific documents or the entire knowledge baselist_documents
: List available documents in the knowledge base with metadataagent_research
: Research through an agent for complex queries using LLM
๐ Functionality
- Vector and hybrid search for semantic similarity and precise matches
- RAG for generating coherent responses based on documents
- Agent-based research for deep analysis using powerful LLM models
๐ค Usage with Claude
Claude can access R2R tools for document search, question answering with citations, research by combining sources, and obtaining current information online.
๐จโ๐ป Development
Includes a Makefile for convenient task execution, local server launch, test execution, and code formatting and validation.
๐งช Testing
Comprehensive system testing: Unit tests for components, integration tests with real API calls, and performance tests evaluating component efficiency.
โก Performance
Optimized for high performance with asynchronous clients, efficient formatting, client caching, and strict performance tests.
๐ Integration with Other MCP-Compatible Models
R2R MCP Server works with any MCP-compatible models, including Claude and other LLM models.