Knowledge rag
MCP server by lyonzin Verified · gh:lyonzin
knowledge-rag is a local RAG server for the Model Context Protocol. It lets Claude Code, Cursor and other MCP clients search the documents and code on your machine. It runs without Docker, a database server or an API key.
Install Knowledge rag
Built from the published package, never by AI.
claude mcp add knowledge-rag -- uvx knowledge-ragRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"knowledge-rag": {
"args": [
"knowledge-rag"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"knowledge-rag": {
"args": [
"knowledge-rag"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"knowledge-rag": {
"args": [
"knowledge-rag"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add knowledge-rag -- uvx knowledge-rag{
"mcpServers": {
"knowledge-rag": {
"args": [
"knowledge-rag"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add knowledge-rag uvx knowledge-ragGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the knowledge-rag block.
About
knowledge-rag indexes the documents and code in a local folder and gives MCP clients 13 tools to search them. Search combines BM25 keyword matching with vector similarity, and a cross-encoder reranks the top results. Files are parsed by format, split into chunks, embedded with FastEmbed ONNX models and stored in an embedded ChromaDB. The server watches the folder and re-indexes changed files automatically. It runs over stdio for one client or over Streamable HTTP or SSE for several. The project is aimed at developers who want local retrieval for Claude Code, Cursor, VS Code and similar assistants.
Written from the project's README and checked against it.
Tools it gives your assistant
search_knowledgeRuns hybrid search over indexed documents with cross-encoder reranking.get_documentReturns a single indexed document.search_similarFinds indexed content similar to a given document.add_documentAdds a document to the index.add_from_urlAdds a document to the index from a URL.updateUpdates an indexed document.removeRemoves a document from the index.reindex_documentsRebuilds the index from the documents folder.get_reindex_statusReports the status of a reindex run.list_documentsLists the indexed documents.
What you need
- Python 3.11 or newer
- Node.js 16 or newer for the npx launcher
Try asking
- Search my documents for notes about the login timeout bug.
- Find indexed documents similar to the deployment guide I added.
- Show the index stats and list the documents that are indexed.
Good to know
- Models of about 150 MB download the first time they are needed.
- Benchmarks come from one host and small corpora, so they are rough guides only.
- The default embedding and reranking models are English; the multilingual comparison was a diagnostic test.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://raw.githubusercontent.com/lyonzin/knowledge-rag/master/skills/install.sh | bash
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Knowledge rag
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Knowledge rag: common questions
Does knowledge-rag need an API key?
The source says it runs with zero external servers and zero API keys. Indexing and search work offline once the models are cached.
Which clients can use knowledge-rag?
The source names Claude Code, Claude Desktop, Cursor, Windsurf and VS Code, and says other stdio or HTTP MCP clients can connect.
Does knowledge-rag call an LLM to write answers?
No. The source says results go back to the MCP client, and the client's model writes the answer. knowledge-rag never calls an LLM.
How do I install Knowledge rag?
In Claude Code run claude mcp add knowledge-rag -- uvx knowledge-rag. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Knowledge rag the official server?
Knowledge rag is published by gh:lyonzin from its verified domain in the official MCP Registry.
Is Knowledge rag free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Knowledge rag safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality B. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Knowledge rag?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Knowledge rag work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
