knowledge-rag
Local hybrid search and RAG server for MCP clients, running offline on your machine
Install
See setup instructions on pypi.orgWhat it does
This package is a Model Context Protocol server that builds a searchable index from the files in a folder on your own computer and exposes it to agents through a set of tools. Retrieval combines keyword ranking with vector similarity, merges the two result lists, and optionally reranks candidates with a cross-encoder model, all inside a single Python process backed by an embedded vector store. It is aimed at people using Claude Code, Claude Desktop, Cursor, Windsurf or VS Code who want their notes, PDFs, code and notebooks searchable without uploading anything. You register it over stdio for a single client or run one Streamable HTTP or SSE server for several, with optional bearer-token authentication and a metrics endpoint. A first run downloads roughly 150 MB of models; after that, indexing and querying work without a network connection. Reindexing is triggered by a debounce watcher, and rebuilds populate a staging collection before swapping in. Default chunking is fixed-size with overlap, so long documents may split at awkward boundaries, and the benchmark figures in the project come from small corpora on one host.
Compatibility and authentication
- Connection
- Local
- Transports
- Unspecified
- Authentication
- Unknown
Security and permissions
- When you run the server locally, it runs with your user permissions.
- Authentication type: Unknown.
Repository data
- Stars
- 306
- Last push
- Nov 20, 2026
- License
- MIT
- Archived
- No
FAQ
- What license does knowledge-rag use?
- MIT
- Does knowledge-rag run locally or remotely?
- It runs locally.
- Is knowledge-rag an official server?
- It is listed as a community server.
Embed a listing badge
<a href="https://aiagentsmarketplace.dev/mcp/knowledge-rag"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
Comments
No comments yet.