$ timeahead.in
/ servers/pypi/knowledge-rag
pypi

knowledge-rag

Drop docs, search instantly from Claude Code — 12 MCP tools, 20 format parsers, hybrid search + reranking. Zero servers, zero API keys, 100% local.

219 stars427/wkupdated 0d agogithub ↗
86good
▣ Overview
PyPINPMCICodeQLQuality GatePythonLicensePlatformGPU

What it does

Knowledge-rag is a local document retrieval system that integrates with Claude Code via 12 MCP tools. It uses hybrid search combining BM25 (keyword matching), semantic vector similarity, and cross-encoder reranking to find relevant passages in your documents. The system supports 20+ file formats including PDFs, markdown, code, and Jupyter notebooks. All processing runs locally via ONNX embeddings with optional NVIDIA GPU acceleration—no cloud APIs, no external servers, no data leaving your machine.

Who it's for

Developers building AI-assisted workflows who have local documentation, codebases, or knowledge bases they want Claude to search without uploading. This includes teams with proprietary docs, security-conscious organizations, and engineers who want fast, local-only retrieval without managing a database server.

Common use cases

  • Index internal documentation (API docs, architecture guides, runbooks) and search them natively from Claude Code prompts.
  • Build code-aware workflows by indexing your codebase and having Claude reference relevant files during development.
  • Create AI agents that ground their responses in your local knowledge without sharing data with cloud services.
  • Search meeting notes, research papers, or project notebooks to inform code generation or documentation writing.

Setup pitfalls

  • ONNX model loading: Versions prior to v3.8.0 loaded the embedding model (~200MB) at startup. Upgrade to v3.8.0+ for lazy loading, and ensure v3.8.1+ for a critical hotfix that prevents silent zero-vector corruption from model load failures.
  • Filesystem access: The server reads and writes to your data directory for indexing and caching. Ensure appropriate file permissions and sufficient disk space for embedding caches, which scale with document count.
  • Multi-process conflicts: Without the opt-in KNOWLEDGE_RAG_SINGLE_INSTANCE environment variable, multiple Claude Code windows or IDE extensions can spawn parallel instances sharing the same data_dir, potentially causing index contention.
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
55
11.0
Quality
10%
100
10.0
Trust
10%
50
5.0
Total
86.0
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecsecrets
◆ Risk level: high
fs read + fs write + network + exec + secrets active — can execute code, access credentials, and make external network calls.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "knowledge-rag": {
      "command": "uvx",
      "args": [
        "knowledge-rag"
      ]
    }
  }
}
📈 Score historylast 45 snapshots
5/10/20267/6/2026 · 45 snapshots
⚙ Maintenance health
55/ 100 · is this project alive?
contributors (1y)4
top contributor share83%
releases (1y)6
last release0d ago
ci✗ none
⛁ Raw data
weekly downloads427
github stars219
forks30
open issues1
license✓ present
readme length75628 chars
last publish0d ago
last commit0d ago
last updated14h ago
install verified✓ pass · 48d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points