shinpr/mcp-local-rag
Local-first RAG server for developers. Semantic + keyword search for code and technical docs. Works with MCP or CLI. Fully private, zero setup.
What it solves
It provides a way to search through private local documents (PDF, DOCX, Markdown, and text files) without sending the data to an external embedding API. It allows AI assistants or users via a terminal to perform semantic and keyword searches on local files while keeping the data offline.
How it works
The project implements a local Retrieval-Augmented Generation (RAG) system using the Model Context Protocol (MCP). It indexes documents from a specified local directory, combining semantic similarity (via local embedding models) with keyword matching for technical terms. It can be integrated into MCP-compatible clients (like Claude Code, Cursor, or Codex) or used as a standalone CLI tool. It supports local model caching and can optionally use local vision models to generate captions for PDF figures.
Who it’s for
- Developers and researchers who need to search private documentation offline.
- Users of MCP-compatible AI clients who want to give their agents access to local knowledge bases.
- People who prefer local-first AI tools to avoid API costs and privacy concerns.
Highlights
- Fully Local: No API keys, Docker, or external databases are required; ingestion and search work offline after the initial model download.
- Hybrid Search: Combines semantic intent with exact keyword matching for API names and error codes.
- Broad Format Support: Indexes PDF, DOCX, Markdown, and text files.
- MCP Integration: Seamlessly connects to AI agents via the Model Context Protocol.
- Vision Capabilities: Optional local captioning for PDF figures to make them searchable.
Related
- Project
- Dispatch
- Project
- Dispatch
- Project