MCP Catalogs
Home

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.

developer-toolsai-llmsearch
51
Forks
5
Open issues
this month
Last commit
2d ago
Indexed

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:

you:Searching internal documentation and API specs for development reference
you:Codebase exploration with semantic + keyword search for finding specific functions and patterns
you:Research paper analysis and knowledge retrieval from private document collections
you:Technical troubleshooting by searching error codes and solutions in local documentation
you:What document formats are supported?
you:How does keyword boost work?
you:Is there a web interface?

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 README
  • ingest_file

    Ingest a document file into the RAG database

  • ingest_data

    Ingest HTML content into the RAG database

  • query_documents

    Search documents using semantic similarity with keyword boost

  • read_chunk_neighbors

    Read chunks surrounding a specific search result

  • list_files

    List all files in BASE_DIR and their ingested status

  • delete_file

    Delete a file from the RAG database

  • status

    Check RAG server system health and database stats

Comparable tools

semantic-search-mcpvector-search-mcplocal-gptprivate-gpt

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-rag

CLI 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.