Knowledge RAG MCP Server
Local RAG MCP server for Claude Code — hybrid search (semantic + BM25), cross-encoder reranking, 13 MCP tools, 20 format parsers. Zero external servers, zero API keys.
Knowledge RAG is an open-source mcp server by lyonzin, written mainly in Python, with 299 GitHub stars and the MIT license. Its code was last updated Oct 25, 2026. The latest npm release is knowledge-rag 5.1.0, published Nov 14, 2026, with 421 downloads last week.
Scan summary: scanned Nov 5, 2026 at commit 2be09ec. Seen able to run dynamic code. Scan policy
How to install Knowledge RAG
Built from the start command in the project's README: npx -y knowledge-rag. Check the README for required keys or settings.
claude mcp add knowledge-rag -- npx -y knowledge-rag{
"mcpServers": {
"knowledge-rag": {
"command": "npx",
"args": [
"-y",
"knowledge-rag"
]
}
}
}{
"mcpServers": {
"knowledge-rag": {
"command": "npx",
"args": [
"-y",
"knowledge-rag"
]
}
}
}code --add-mcp '{"name":"knowledge-rag","command":"npx","args":["-y","knowledge-rag"]}'What Knowledge Rag can touch
- Our checks did not find this. The tool may still do it.Run shell commandsNot seen in this scan
- The server lists a tool that does this.Run dynamic codeListed as a tool: evaluate_retrieval
- Our checks did not find this. The tool may still do it.Read or write filesNot seen in this scan
- Our checks did not find this. The tool may still do it.Read environment and secretsNot seen in this scan
- Our checks did not find this. The tool may still do it.Control a web browserNot seen in this scan
- Not checked directly. Its own description suggests it does this.Connect to databasesLikely, from its own description
- Our checks did not find this. The tool may still do it.Read or send messagesNot seen in this scan
- Our checks did not find this. The tool may still do it.Touch money or tradingNot seen in this scan
- Our checks did not find this. The tool may still do it.Connect to the internetNo connections seen while running
"Not seen" means our checks did not find it, and the tool may still do it. Covers commit 2be09ec, Nov 5, 2026. See the scan policy.
Before you install Knowledge Rag
AgenticMart scanned Knowledge Rag on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.
What it can access
- An MCP server is a program your AI app starts and talks to. A local one runs with your user's permissions: it can see the files, environment variables and network your account can.
- Based on its description and topics, it likely needs to connect to a database.
Before you install
- Give it a read-only database user unless it must write.
- Pin the version you reviewed instead of always installing the latest release.
- Read the tool list or scripts before the first run, and keep approval prompts on for actions that write, send or delete.
- Maintained by lyonzin on GitHub, 299 stars and 49 forks. Popularity is not proof of safety.
- Last code change: Oct 25, 2026.
- Open-source license: MIT.
Tools Knowledge Rag exposes (13)
Listed by the server itself during our scan of commit 2be09ec.
search_knowledgeHybrid search combining semantic search + BM25 keyword search with cross-encoder reranking. Read-only. No side effects. Args: query: Search query text (1–3 keywords recommended; phrase queries also work) max_results: Maximum number of results (default: 5, capped by sea
get_documentGet the full content of a specific document by filepath. Read-only. No side effects. Args: filepath: Relative path to the document within the documents directory (e.g., "security/technique.md"). Must be an indexed file — use search_knowledge() to find t
reindex_documentsIndex or reindex all documents in the knowledge base (runs in background). No flags — incremental pass: index new or changed files, skip unchanged ones, prune deleted sources. Use after filesystem edits outside add_document/update_document. ``force`` — smart reindex: re-embed every
get_reindex_statusGet the current status of a background reindex operation. Lightweight — does not compute full index statistics. Use this to poll progress after calling reindex_documents(). Returns: JSON string with reindex status. When active: operation name, progress (processed/total),
list_categoriesList all document categories with their document counts. Read-only. No side effects. Reflects the live index state. Returns: JSON string with category names, document counts per category, and total document count. Usage: Use before filtering search_knowledge() or list_doc
list_documentsList indexed documents one page at a time, optionally filtered by category. Read-only. No side effects. Args: category: Optional category filter. Must be a valid category name — call list_categories() to see available options (e.g., security, ctf, logscale,
get_index_statsGet statistics and health metrics for the knowledge base index. Read-only. No side effects. Returns: JSON string with system metrics: total documents, total chunks, embedding model name, BM25 status, query cache hit rate, and file watcher status. Usage: Use for sy
add_documentAdd a new document to the knowledge base from raw text content. Mutating — writes a file to disk and indexes it immediately. No auth required. Args: content: Full text content of the document (markdown supported) filepath: Relative path within documents directory (e.g.
update_documentUpdate the content of an existing document in the knowledge base. Mutating — overwrites the file on disk and re-indexes immediately. Old chunks are removed and replaced with new ones. Full content replacement, not a patch. Args: filepath: Full or relative path to the docum
remove_documentRemove a document from the knowledge base index. Mutating — removes index entries. If delete_file=True, also permanently deletes the file from disk (irreversible, cannot be undone). Args: filepath: Path to the document file. Must be an indexed document — list_d
add_from_urlFetch content from a URL, convert to markdown, and add to the knowledge base. Mutating — makes an outbound HTTP request (requires internet access), strips HTML, converts to markdown, saves to disk, and indexes immediately. Args: url: Full URL to fetch (https:// required).
search_similarFind documents semantically similar to a given reference document. Read-only. No side effects. Uses the document's embedding for similarity comparison. Args: filepath: Path to the reference document (must already be indexed — list_documents() lists indexed paths, o
evaluate_retrievalEvaluate search quality by testing whether search_knowledge() retrieves expected documents. Read-only. Runs multiple search queries internally. No side effects on the index. Args: test_cases: JSON string array of test cases. Each item requires "query" (search string)
Knowledge Rag is an open-source mcp server by lyonzin, written mainly in Python. Local RAG MCP server for Claude Code — hybrid search (semantic + BM25), cross-encoder reranking, 13 MCP tools, 20 format parsers. Zero external servers, zero API keys.
At a glance
- Stars
- 299
- Forks
- 49
- Language
- Python
- License
- MIT
- Created
- Feb 2026
- Last update
- Oct 25, 2026
- Type
- MCP Server
- Price
- Free
Topics
Questions about Knowledge Rag
What is Knowledge Rag?
Local RAG MCP server for Claude Code — hybrid search (semantic + BM25), cross-encoder reranking, 13 MCP tools, 20 format parsers. Zero external servers, zero API keys.
Who maintains Knowledge Rag?
Knowledge Rag is maintained by lyonzin on GitHub (lyonzin/knowledge-rag). AgenticMart lists it from public repository data.
Is Knowledge Rag safe to use?
AgenticMart scanned Knowledge Rag on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.
What license does Knowledge Rag use?
It is published under the MIT license.
Knowledge RAG alternatives
View more →Similar mcp servers in Data Science & ML, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.
| Name | Stars | Licence | Last updated | Scan |
|---|---|---|---|---|
| Knowledge RAG (this page) lyonzin | 299 | MIT | Oct 25, 2026 | Scanned, no flagged issues |
| MaxKB 1Panel-dev | 23k | GPL-3.0 | Nov 1, 2026 | Scanned, no flagged issues |
| FunASR modelscope | 21k | MIT | Nov 1, 2026 | Scanned, no flagged issues |
| Ida Pro MCP mrexodia | 13k | MIT | Sep 26, 2026 | Scanned, no flagged issues |
| Pal MCP Server BeehiveInnovations | 12k | None found | Dec 15, 2025 | Not scanned yet |
| Osaurus osaurus-ai | 8.1k | MIT | Nov 1, 2026 | Scanned, no flagged issues |