The open retrieval layer for AI agents β index code, docs, data. Search via MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Retrieve The Forgotten Memory
Index everything in your project β code, docs, PDFs, legal texts, research, data β and your agent finds the right context instantly. No hallucinations. No cloud. No API costs.
Free Β· Local Β· Open Source Β· MIT

Your AI agent is flying blind.
It greps through thousands of files, misses the doc that answers the question, invents modules that don't exist, forgets what you decided last session. The bigger the project, the worse it gets. You've added a smarter model. It didn't help. Because the bottleneck isn't intelligence β it's retrieval.
Code indexers (Augment, Sourcegraph, Cursor) only see code. But your project isn't just code. It's specs, PRs, architecture decisions, research papers, PDFs, regulations, vault notes β the context your agent needs to stop guessing.
I was writing a French tax article (~50 pages of regulatory text, cross-references between code articles, case law, administrative doctrine). Claude Code kept grep-ing the same directories in loops, running out of context, and producing confidently wrong citations. I'd added more memory, better prompts, a smarter model. None of it worked, because the agent wasn't reasoning badly β it just couldn't find the right paragraph in a 2,000-file legal corpus. So I stopped trying to make the model smarter and built the layer it was missing. That's RTFM.
RTFM indexes everything. One command, one SQLite file, one retrieval layer your agent queries before grepping.
30 seconds. Claude Code now searches your indexed knowledge base β code and docs and PDFs and whatever else you drop in β with full-text, semantic, or hybrid search. The agent sees 300 tokens of metadata first, then expands only what's relevant. Progressive disclosure instead of context dumps.
Free. Runs locally. No API keys. No cloud. Your data stays yours.
Three results, ~300 tokens. The agent decides what to read next with rtfm_expand(source, target_section) β not a context dump, a conversation.
In Claude Code (CLI or Desktop Code tab) :
RTFM is distributed via the roomi-fields/claude-plugins marketplace, which also ships notebooklm-mcp for citation-backed Q&A. To grab both at once:
That's it. The plugin auto-initializes each project on first use:
.rtfm/library.db (one SQLite file)CLAUDE.mdNo pip install required. Pure Python, runs on Linux / macOS / Windows / WSL with Python 3.10+ already on PATH. The plugin bundles its own MCP server (no mcp SDK dep) and resolves python3 / python / py automatically.
Then say to Claude: "Find the authentication flow" β it uses rtfm_search instead of grepping.
The core plugin is dependency-free. Heavier optional extras (embedding model, PDF parsers) install on demand into an isolated venv inside the plugin's data directory β no pollution of your system Python, no PEP 668 conflicts:
The pdf-full install uses PyTorch's CPU-only index (no CUDA, no GPU needed) to stay around 1.5 GB instead of 5 GB.
Restart Claude Code after install for the extras to be picked up.
For clients without Claude Code's plugin system :
Then point your MCP client at rtfm-serve (the entry exposed by the pip package). Optional extras via pip install rtfm-ai[embeddings,pdf].
| RTFM | Augment CE | Sourcegraph | Code-Index-MCP | MemPalace | |
|---|---|---|---|---|---|
| Code indexing | β (AST-aware) | β | β | β | Shallow (char-chunk) |
| Docs, specs, markdown | β (header-parsed) | Partial | β | Limited | Verbatim chunks |
| Legal / regulatory | β (XML, BOFiP) | β | β | β | β |
| Research (LaTeX, PDF) | β | β | β | β | β |
| Custom parsers | β (~50 lines) | β | β | β | β |
| Knowledge graph | β (file/code links) | β | Partial | β | Entity graph (people) |
| File version history | β (unlimited) | β | β | β | β (purge-and-replace) |
| MCP native | β | β | β | β | β |
| Runs locally | β | Cloud | Enterprise | β | β |
| Open source | MIT | β | Partial | β | MIT |
| Price | Free | $20-200/mo | $$$/mo | Free | Free |
RTFM is the only open-source option that indexes multi-domain content with structural parsing, a code-level knowledge graph, and unlimited per-file history. That's the niche.
Different from MemPalace specifically: MemPalace is an entity-level memory for conversations (who/project/decision triples in SQLite, plus verbatim chunks in ChromaDB). RTFM is a retrieval layer for artefacts β parsed by format, linked at the file level, versioned over time. The two are stackable, not competing.
For a deeper breakdown of the design choices behind any RAG (chunking, retrieval, augmentation, integration, freshness, storage), see RAG Fundamentals β the 6 axes β
Between sessions, most agents forget. RTFM indexes Claude Code's own memory files across every project on your machine, with full version history.
~/.rtfm/memory.db sees every ~/.claude/projects/*/memory/ directory on your machine. Ask rtfm_search("OAuth auth decisions") and get hits from all 18 of your projects.rtfm_history <slug> returns the full evolution.SessionEnd β one command installs a global Claude Code hook. Every session you close captures a new snapshot.RTFM is the retrieval layer for the Karpathy LLM Wiki pattern. Karpathy himself wrote: "at small scale the index file is enough, but as the wiki grows you want proper search." This is proper search.
.obsidian/, proposes a folder β corpus mapping[[wikilinks]] following Obsidian rules β stored as graph edges_rtfm/ with Obsidian-native navigation (index, graph with Mermaid, hubs, orphans, Dataview frontmatter)No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/rtfm)<a href="https://allmcps.com/mcp/rtfm"><img src="https://allmcps.com/api/badge/rtfm?style=directory" alt="RTFM on AllMCPs" /></a>