lyonzin/knowledge-rag — reverse-engineered prompt

Reverse engineered prompt

Build me a local knowledge search server that plugs into Claude Code through MCP, so I can drop in my own files and ask questions about them right from the coding chat. I want it to index common stuff like PDF, markdown, text files, code files, notebooks, and similar docs, then return the most relevant matches using a mix of keyword search and semantic search, with a reranking step so the best results rise to the top.

The big requirement is privacy and simplicity. Everything should run on my machine, with no cloud services, no API keys, and no external server dependency. It should be easy to install, easy to point at a folder of docs, and fast enough to handle a pretty large personal knowledge base. Give me useful search results with short snippets by default, plus a way to fetch the full document when needed.

If it fits naturally, also support a normal local server mode for multiple clients, not just a single CLI connection. Look up current MCP and Claude Code docs online if you need to.

Want more depth? Deep Reverse