mcp-local-rag
by shinpr·★ 260·Score 51
Local-first RAG server providing semantic + keyword search for code and technical docs via MCP or CLI.
Overview
mcp-local-rag is a privacy-focused RAG solution that runs entirely on the user's machine. It offers semantic search with keyword boost to catch exact technical terms like function names or error codes that might be missed by pure vector search. The server provides 7 tools including document ingestion, querying, context expansion, and file management. It supports various document formats including PDF, DOCX, TXT, and Markdown, with an option to ingest HTML content via its API.
Try asking AI
After installing, here are 7 things you can ask your AI assistant:
When to choose this
Choose this when you need private, local RAG search for technical documentation with exact term matching capabilities.
When NOT to choose this
Don't choose this if you need cloud-hosted search, large-scale enterprise deployment, or integration with existing vector databases.
Tools this server exposes
7 tools extracted from the READMEingest_fileIngest a document file into the RAG database
ingest_dataIngest HTML content into the RAG database
query_documentsSearch documents using semantic similarity with keyword boost
read_chunk_neighborsRead chunks surrounding a specific search result
list_filesList all files in BASE_DIR and their ingested status
delete_fileDelete a file from the RAG database
statusCheck RAG server system health and database stats
Comparable tools
Installation
Installation via MCP
For **Cursor** — Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"local-rag": {
"command": "npx",
"args": ["-y", "mcp-local-rag"],
"env": {
"BASE_DIR": "/path/to/your/documents"
}
}
}
}For **Claude Code** — Run this command:
claude mcp add local-rag --scope user --env BASE_DIR=/path/to/your/documents -- npx -y mcp-local-ragCLI Installation
npx mcp-local-rag ingest ./docs/
npx mcp-local-rag query "authentication API"FAQ
- What document formats are supported?
- The server supports PDF, DOCX, TXT, and Markdown documents. It can also ingest HTML content via the ingest_data tool.
- How does keyword boost work?
- Keyword boost is applied after semantic filtering. It re-ranks results to prioritize exact matches of technical terms like function names, class names, or error codes while maintaining semantic relevance.
- Is there a web interface?
- No, this is a CLI and MCP server-only solution that runs locally without a web interface.
Compare mcp-local-rag with
Last updated · Auto-generated from public README + GitHub signals.