Best for
- Developers who need local execution and privacy
- Single-user environments searching code, technical specifications, and internal documents
- Users who want a lightweight RAG workflow through MCP or the CLI
An MIT-licensed, local-first RAG server for developers, exposing stdio MCP tools and a CLI. Its defining features are local embeddings, semantic chunking, keyword boosting, and relevance-gap filtering. It is best suited to privacy-conscious, single-user retrieval across code and technical documents.
MCP Local RAG is a local-first RAG server for developers that can also be used as a CLI. It combines local embeddings, semantic search, and keyword boosting for code and technical documentation while keeping indexed data on the machine by default. It supports PDF, DOCX, TXT, Markdown, and HTML supplied through ingest_data.
Add the stdio server to an MCP client configuration with npx -y mcp-local-rag, and set BASE_DIR to the document root; restart the client to use it. The embedding model downloads on first use, after which text ingestion and search can run offline. The CLI can also be used directly.
{"mcpServers":{"local-rag":{"command":"npx","args":["-y","mcp-local-rag"],"env":{"BASE_DIR":"/path/to/your/documents"}}}}