I wanted Claude and GitHub Copilot to answer questions from my own notes and documentation, without uploading anything. So I built docs-rag-mcp , an MCP server in C# that indexes a folder of documents and lets any MCP client search it.
You point it at a folder of Markdown, text, HTML, Word or PDF files. It splits them into passages, embeds each passage, and stores everything in one SQLite file. When you ask your assistant a question, it calls search_docs and answers from the passages it gets back, with the file and section for each one.
claude mcp add docs-rag -- dnx DocsRagMcp --yes
Enter fullscreen mode
Exit fullscreen mode
In VS Code and Cursor, the README has one-click install buttons.
With Ollama, nothing leaves your machine. It also works with OpenAI and Azure OpenAI embeddings.
Getting a basic pipeline working is the easy part. Making the results good is harder, and that is what this post is about.
1.…