Knowledge RAG
Knowledge RAG is an MCP server that adds search and knowledge tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Local RAG server for Claude Code, Cursor and other MCP clients: hybrid BM25 + vector search with… It has 306 GitHub stars, is released under the MIT license and runs locally with npx -y knowledge-rag.
github.com/lyonzin/knowledge-rag (opens in a new tab)
Data as of from the GitHub API; description from the project's repository. Report an error
Install Knowledge RAG
Generated from the server's published package. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"knowledge-rag": {
"command": "npx",
"args": [
"-y",
"knowledge-rag"
],
"env": {
"KNOWLEDGE_RAG_DIR": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env KNOWLEDGE_RAG_DIR=your-value --transport stdio knowledge-rag -- npx -y knowledge-ragCursor
{
"mcpServers": {
"knowledge-rag": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"knowledge-rag"
],
"env": {
"KNOWLEDGE_RAG_DIR": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"knowledge-rag": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"knowledge-rag"
],
"env": {
"KNOWLEDGE_RAG_DIR": "your-value"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
KNOWLEDGE_RAG_DIR | No | Shown in the README's example configuration. |
About Knowledge RAG
knowledge-rag is a local retrieval-augmented generation (RAG) server for the Model Context Protocol (MCP). It indexes the documents and code on your machine and gives Claude Code, Cursor, VS Code and other MCP clients 13 tools to search them, using hybrid search (BM25 keywords plus vector similarity) with cross-encoder reranking on by default. Everything runs in one Python process with embedded ChromaDB and FastEmbed ONNX models: no Docker, no database server, no API key.
- claude-code
- local-ai
- mcp
- rag
- retrieval-augmented-generation
- semantic-search
- knowledge-base
- reranking
- hybrid-search
- mcp-server
Similar MCP servers
More ai & search MCP servers
SuperCMO
SupercmoHQ/superCMO-skills
Marketing media generation — image, video, voice — for AI agents.
Active · last commit Nov 12, 2026
AI & searchPythonOrchestKit Docs MCP
yonatangross/orchestkit
Read-only MCP server for the OrchestKit docs: full-text search + Markdown fetch.
Active · last commit Nov 16, 2026
AI & searchTypeScriptGuaardvark
guaardvark/guaardvark
Local AI studio on your GPU: images, video, music, voice, RAG.
Active · last commit Nov 16, 2026
AI & searchPythonPMB AI
oleksiijko/pmb
Local-first persistent memory for AI coding agents.
Active · last commit Nov 11, 2026
AI & searchPythonvarun29ankuS MCP Server
varun29ankuS/shodh-memory
Cognitive memory for AI agents — semantic search, Hebbian learning, knowledge graphs.
Active · last commit Sep 27, 2026
AI & searchRustAlfanous - Quranic Search Engine
Alfanous-team/alfanous
Search and explore the Holy Qur'an with Arabic text, transliteration, and advanced search support.
Maintained · last commit Jun 14, 2026
AI & searchPython
How do I install the Knowledge RAG MCP server?
Add the command npx -y knowledge-rag to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Knowledge RAG free?
The server is open source under the MIT license, so running it is free. It does not declare any required API key.
Is Knowledge RAG actively maintained?
The most recent commit was on Nov 15, 2026. The latest release is v5.1.0, published Nov 14, 2026. appsgit only lists MCP servers with a commit in the last six months.