# RTFM [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/roomi-fields/rtfm  
**GitHub Stars:** 27  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rtfm

## Description
The open retrieval layer for AI agents — index code, docs, data. Search via MCP.

## Tools
Capabilities this server exposes over MCP:

- **rtfm_search** — Search the index (FTS, semantic, or hybrid)
- **rtfm_context** — Get relevant context for a subject (metadata-only)
- **rtfm_expand** — Show all chunks of a source with full content
- **rtfm_discover** — Fast project structure scan (~1s, no indexing needed)
- **rtfm_books** — List indexed documents
- **rtfm_stats** — Library statistics
- **rtfm_sync** — Sync a directory (incremental)
- **rtfm_ingest** — Ingest a single file
- **rtfm_tags** — List all tags
- **rtfm_tag_chunks** — Add tags to specific chunks
- **rtfm_remove** — Remove a file from the index
- **rtfm_graph** — Show dependency graph for a source (imports, links)
- **rtfm_history** — File version history and memory snapshots
- **rtfm_coverage** — What the index holds against what is on disk

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "rtfm": {
    "command": "uvx",
    "args": ["rtfm-ai"]
  }
}
```

## Documentation

## What RTFM does

RTFM provides a local retrieval layer for AI agents working with project files. It can index code, documentation, PDFs, legal texts, research material, data, and other artefacts, then make that collection available through MCP. The index is stored in a SQLite database, allowing an agent to search across multiple content types instead of repeatedly scanning directories with grep or reading whole files.

The retrieval flow is designed for progressive disclosure. A search can return ranked metadata and pointers first; the agent can then request the relevant source or section when it needs the full content. RTFM also supports project structure discovery, file relationships, tags, version history, and comparisons between indexed content and files on disk.

## How it works

A project is initialized with `rtfm init`, which creates `.rtfm/library.db`. Files can be added individually or synchronized from a directory. Synchronization is incremental, so the index can be refreshed as project files change. Search supports full-text, semantic, or hybrid modes. Semantic and hybrid retrieval use the optional embeddings installation.

The server exposes the index through MCP using the `rtfm-serve` executable installed by the Python package. Claude Code's plugin handles initialization, adds search guidance to `CLAUDE.md`, configures tool permissions, and re-indexes incrementally on prompts. RTFM runs locally and is designed to operate without API keys or cloud services.

## Setup and configuration

For Claude Code, add the `roomi-fields/claude-plugins` marketplace and install the `rtfm` plugin. The plugin bundles the MCP server and does not require a separate `pip install`; it uses Python 3.10 or newer and resolves `python3`, `python`, or `py` automatically on Linux, macOS, Windows, and WSL.

For Cursor, Codex, Claude Desktop chat, and other MCP clients, install the package and initialize the target project:

```bash
pip install rtfm-ai
cd /path/to/your-project
rtfm init
```

Configure the MCP client to use `rtfm-serve`. Optional package extras provide embedding support and PDF parsing. The Claude Code plugin also offers separate commands for FastEmbed-based embeddings, basic PDF extraction, and extended PDF extraction with CPU-only PyTorch. Restart Claude Code after installing these extras.

## Tools and capabilities

- `rtfm_search` searches indexed content with full-text, semantic, or hybrid retrieval.
- `rtfm_context` returns relevant metadata for a subject, while `rtfm_expand` retrieves all chunks from a source with full content.
- `rtfm_discover` scans project structure without indexing, and `rtfm_coverage` compares indexed material with files on disk.
- `rtfm_sync` incrementally synchronizes a directory; `rtfm_ingest` adds one file; `rtfm_remove` removes a file from the index.
- `rtfm_books`, `rtfm_stats`, and `rtfm_tags` inspect indexed documents, library statistics, and available tags.
- `rtfm_tag_chunks` applies tags to selected chunks, while `rtfm_graph` shows imports and links for a source.
- `rtfm_history` exposes file version history and memory snapshots.

RTFM also supports a separate memory workflow for Claude Code memory files. The `rtfm memory` command can create a snapshot, and `rtfm memory --install-hook` installs automatic snapshots at session end.

## Limitations and notes

The core plugin is dependency-free, but semantic search and PDF handling require optional installations. The full PDF option uses CPU-only PyTorch and is substantially larger than the basic parser. The Claude Code plugin is not required, but clients without that plugin system need manual package installation and MCP configuration.

_Full upstream README: https://allmcps.com/mcp/rtfm/readme_

