Menu

I built a local RAG server for Claude and Copilot in C#. Here is what I learned about search.
📰

I built a local RAG server for Claude and Copilot in C#. Here is what I learned about search.

DEV Community: dotnet·ahmed manai·9 days ago
#4Te9MC1U
#devtodotnet#devto#dev#file#docs
Long article (1115 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.