add_document
Index a new document via MCP
How to use it
add_document is exposed by the Knowledge Rag MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the add_document tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Knowledge Rag
docker run -v $(pwd)/documents:/app/documents -p 8179:8179 ghcr.io/lyonzin/knowledge-rag:latestOther tools in Knowledge Rag (12)
Fetch, sanitize, and index a URL
Measure MRR@5 · Recall@5 · Precision@5
Retrieve full content of one document
Corpus size, cache hit rate, embedding dim
Live progress polling (async reindex)
Auto-tagged by folder path
Enumerate indexed documents
Smart incremental OR nuclear rebuild
Drop a document + all its chunks
Hybrid semantic + BM25 with cross-encoder rerank
Find documents similar to a reference
Re-index a changed document