RAG Search
Provide semantic search capabilities over local text documents with source attribution and similarity scores.
RAG Search is a lightweight MCP server designed to equip AI agents with local semantic retrieval capabilities without requiring external APIs, cloud databases, or API keys. Operating directly over stdio, it leverages local embeddings via all-MiniLM-L6-v2 and cosine-similarity ranking to perform fast, tokenizer-aware document searches. The server indexes documents in a background thread to maintain near-instant startup handshakes, returning ranked text passages complete with source filenames and relevance scores so agents can ground their answers accurately.
Key Features
01Local semantic retrieval with no API keys, cloud services, or external vector databases required
02Background index building behind a thread lock to ensure instant startup handshakes without duplicate model loading
03Tokenizer-aware chunking and cosine similarity ranking using local sentence-transformer embeddings
040 GitHub stars
05Detailed search results delivering chunk IDs, matched text, source filenames, and similarity scores
06Built-in query validation and input clamping that cleanly communicates actionable errors via the MCP protocol
Use Cases
01Grounding AI assistants like Claude Desktop or Claude Code with answers derived from private, local text files
02Integrating lightweight document retrieval into coding and development agent workflows without external infrastructure
03Experimenting with and prototyping local RAG pipelines and tool-calling interfaces