Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 83
  • 306 stars
  • MIT
  • Updated

Install Knowledge rag

Built from the published package, never by AI.

claude mcp add knowledge-rag -- uvx knowledge-rag

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Knowledge rag in Claude Code

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 →

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.

Knowledge rag Install

Add to stack

Loading.