mcp-rag
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-ragwhat is the pipeline for indexing?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: mcp-ai-workspace
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
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.
- docs2mcpOAuthcom.docs2mcp
Query your own PDFs and documents from any MCP client. Every answer cites the page it came from.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Query any docs site via MCP. Submit a URL, ask questions, get cited answers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceTransforms Markdown documentation into an intelligent knowledge base with AI-powered search and Q\&A through an MCP server.119MIT
- 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
- FlicenseNot gradedqualityAmaintenanceEnables semantic search over personal markdown notes by indexing them into a vector database and exposing search, reindex, and status tools via MCP.-
- AlicenseAqualityBmaintenanceIndexes local Markdown/text files into a SQLite database with vector embeddings and provides MCP tools for semantic search without cloud dependencies.3AGPL 3.0