mcp-rag
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-rag
Retrieval-Augmented Generation over any local markdown corpus, exposed as an MCP tool.
Point it at a directory of markdown files. It chunks them at heading boundaries (frontmatter becomes filterable metadata), embeds the chunks, and stores vectors in a local SQLite index. Query it from a CLI for grounded, cited answers - or connect it to any MCP-compatible client (Claude Code, Claude Desktop, Cursor) as a search_corpus tool and let the model drive retrieval itself.
Built as a deliberately transparent reference implementation of the full RAG component chain: ingestion, structure-aware chunking, embeddings, vector storage, retrieval, and grounded generation with citations. No vector database required - at reference-corpus scale, exact cosine search over SQLite is honest and simple.
Pipeline
index: markdown dir -> parse frontmatter -> chunk at headings -> embed -> SQLite
query: question -> embed -> cosine top-k (+ metadata filters) -> grounded answer + citations
serve: the query pipeline behind an MCP tool, so the model decides when and what to retrieveRelated MCP server: Notes RAG MCP Server
Status
Early scaffold. Roadmap:
indexcommand: ingest + chunk + embed a corpus directory into SQLitequerycommand: retrieve top-k chunks, print with sourcesaskcommand: grounded generation with citations (Claude)servecommand: MCP server exposingsearch_corpusGolden-question eval harness (recall@k over a labeled question set)
Hybrid retrieval (BM25 + dense) when the eval shows vocabulary-mismatch misses
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Query your own PDFs and documents from any MCP client. Every answer cites the page it came from.
Ask your own documents and get answers that cite the source passage. Workspace knowledge bases over MCP for Cursor, Claude and any MCP client.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes document retrieval as an MCP tool, enabling LLMs to search a local vector store of markdown documents. Includes a retrieval evaluation harness to measure hit rate and MRR.MIT
- AlicenseNot gradedqualityBmaintenanceEnables semantic search over personal markdown notes by indexing them into a vector database and exposing search, reindex, and status tools via MCP.MIT
- AlicenseAqualityBmaintenanceIndexes local Markdown/text files into a SQLite database with vector embeddings and provides MCP tools for semantic search without cloud dependencies.31AGPL 3.0
- FlicenseNot gradedqualityBmaintenanceEnables retrieval-augmented question answering with source-grounded citations, document retrieval, and idempotent ingestion through MCP tools.-