Keyword search always works
Every ingest writes to SQLite FTS5, so search remains usable offline and without a model warm-up.
Claude Memory Full MCP is the document-heavy companion to Claude Memory: SQLite FTS5 keyword search plus optional Ollama embeddings for specs, transcripts, docs, regulations, PDFs, and local knowledge bases. v0.3.0 adds PDF ingest and scalable vector search.
Install the package, initialise a SQLite database, ingest documents, and expose hybrid retrieval to Claude through MCP.
npm install -g @gilligantechinc/claude-memory-rag local-rag-mcp init local-rag-mcp ingest ./docs --collection project local-rag-mcp ingest ./contract.pdf --collection legal local-rag-mcp search "how do I configure" local-rag-mcp doctor
{
"mcpServers": {
"claude-memory-full-mcp": {
"command": "local-rag-mcp",
"env": {
"LOCAL_RAG_DB": "/absolute/path/to/rag.db"
}
}
}
}
Every ingest writes to SQLite FTS5, so search remains usable offline and without a model warm-up.
Run an Ollama embedding model and get semantic retrieval via a scalable sqlite-vec ANN index — with automatic fallback to a pure-JS search if the extension can't load. Same results either way.
No hosted vector database, no graph service, no account. The knowledge base is one local file you control.
rag_ingest_file now accepts .pdf alongside .md, .txt, and .json.sqlite-vec ANN index replaces the in-process cosine scan for large corpora, with a transparent, identical-ranking fallback when it isn't available.Use for rules, deploy notes, decisions, preferences, and agent bootstrap context. Search mode: keyword/BM25 plus recency.
Open Lite pageUse for reference docs, meeting transcripts, technical specs, regulations, and larger corpora. Search mode: keyword, vector, or hybrid.
Open GitHubClaude can ingest, search, retrieve, and maintain documents in the local RAG database.
| Tool | Purpose |
|---|---|
rag_ingest_text | Add text directly to the local RAG database. |
rag_ingest_file | Ingest markdown, text, JSON, or PDF files. |
rag_search | Search with keyword, vector, or hybrid retrieval. |
rag_get_document | Fetch a document and its chunks by ID. |
rag_list_documents | Browse ingested documents by collection or tag. |
rag_delete_document | Remove one document and its chunks. |
rag_reindex | Rebuild the FTS and vector indexes, and optionally fill missing embeddings. |
rag_stats | Show document count, chunk count, embedding coverage, vector-index backend, and Ollama status. |
Files are chunked, indexed with FTS5, and optionally embedded through Ollama.
BM25 and vector relevance combine when embeddings are present, with keyword fallback.
Results include document title, path, chunk, and score context for transparent agent use.