{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_h8qnmkg6zz6u","handle":"r2r-mcp","url":"https://wellknown.network/agents/r2r-mcp","links":{"self":"https://wellknown.network/agents/r2r-mcp/record.json","html":"https://wellknown.network/agents/r2r-mcp","markdown":"https://wellknown.network/agents/r2r-mcp/record.md","api":"https://wellknown.network/api/v1/agents/r2r-mcp","status":"https://wellknown.network/api/v1/agents/r2r-mcp/status","claim":"https://wellknown.network/agents/r2r-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/r2r-mcp/claim.json","badge":"https://wellknown.network/agents/r2r-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json"},"ard":{"identifier":"urn:air::server:r2r-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"r2r-mcp","summary":"Model Context Protocol server for R2R retrieval system","description":"# r2r-mcp\n\n**Model Context Protocol (MCP) server for R2R (RAG to Riches) retrieval system**\n\nThis package provides a FastMCP server that connects to [R2R](https://github.com/SciPhi-AI/R2R) for advanced retrieval-augmented generation (RAG) capabilities. It enables AI assistants like Claude Desktop, Cursor, and other MCP clients to search, retrieve, and manage documents in R2R knowledge bases.\n\n## Features\n\n- 🔍 **Semantic Search** - Vector-based and full-text search across documents\n- 🤖 **RAG Queries** - Retrieval-augmented generation with configurable LLM settings\n- 📝 **Document Management** - Upload, update, and list documents with upsert semantics\n- 🏷️ **Metadata Filtering** - Advanced filtering by tags, domain, and custom metadata\n- 🌐 **Environment-Based Config** - Zero configuration, reads from environment variables\n\n## Installation\n\n### Using uvx (recommended)\n\nThe easiest way to use r2r-mcp is with `uvx`, which automatically handles installation:\n\n```bash\nuvx r2r-mcp\n```\n\n### Using pip\n\nInstall globally or in a virtual environment:\n\n```bash\npip install r2r-mcp\n```\n\nThen run:\n\n```bash\nr2r-mcp\n```\n\n### As a Python Module\n\nYou can also run it as a module:\n\n```bash\npython -m r2r_mcp\n```\n\n## Configuration\n\nThe server automatically reads configuration from environment variables:\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `R2R_API_BASE` or `R2R_BASE_URL` | R2R server URL | `http://localhost:7272` |\n| `R2R_COLLECTION` | Collection name for queries | Server default |\n| `R2R_API_KEY` | API key for authentication | None |\n\n## Usage with MCP Clients\n\n### Cursor IDE\n\nAdd to `.cursor/mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"KnowledgeBase\": {\n      \"command\": \"uvx\",\n      \"args\": [\"r2r-mcp\"],\n      \"env\": {\n        \"R2R_API_BASE\": \"http://localhost:7272\",\n        \"R2R_COLLECTION\": \"aia-r1\"\n      }\n    }\n  }\n}\n```\n\n### Claude Desktop\n\nAdd to Claude Desktop configuration (`~/Library/Application Support/Claude/claude_desktop_config.jso…","publisher":{"name":"Igor Solomatov","url":null},"homepage":"https://pypi.org/project/r2r-mcp/","repository":null,"version":"0.1.3","license":null,"protocols":["mcp"],"tags":["mcp","r2r","retrieval","rag","ai","llm","model-context-protocol"],"pricing":null,"endpoints":[{"url":"pypi:r2r-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi","publisherName":"pypi"}},"derived":{"capabilities":[{"slug":"data.vector-search","name":"Vector Search","confidence":1,"provenance":"declared"}],"categories":["data"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"r2r-mcp","registry":"pypi","observedAt":"2026-09-10T11:28:06.526Z","publishedAt":"2025-11-25T14:14:10.306630Z","latestVersion":"0.1.3"}},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"r2r-mcp","url":"https://pypi.org/project/r2r-mcp/","firstSeenAt":"2026-09-10T11:25:50.793Z","fetchedAt":"2026-09-10T11:25:50.793Z","normalizedAt":"2026-09-10T11:25:50.793Z"}]},"firstSeenAt":"2026-09-10T11:25:50.793Z","updatedAt":"2026-09-10T11:28:06.526Z"}