RTFM logo

RTFM

Locally indexes code, documents, PDFs, and other project files for searchable, progressive-context retrieval over MCP.

Install RTFM

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "rtfm": {
      "command": "uvx",
      "args": [
        "rtfm-ai"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

RTFM MCP server indexes local project artefacts in SQLite and exposes retrieval, indexing, history, and structure tools to AI agents. RTFM supports full-text, semantic, and hybrid search, returning compact ranked results before content is expanded. Use it when an agent needs context from code, documentation, PDFs, research, legal material, or other files without sending data to a cloud service. Claude Code can install it as a plugin, while other MCP clients can connect to the `rtfm-serve` entry point.

Use cases

  • Search a codebase and its architecture documents for an implementation detail
  • Retrieve relevant passages from indexed PDFs or legal documents
  • Synchronize a project directory after files change
  • Inspect imports, links, and dependency relationships for a source
  • Review file history and Claude Code memory snapshots

Key features

  • Full-text, semantic, and hybrid search
  • Local SQLite index for code, documents, PDFs, and data
  • Progressive retrieval from metadata to full content
  • Incremental directory synchronization and single-file ingestion
  • Source graphs, tags, coverage checks, and version history
  • Claude Code plugin with automatic project initialization

Tools14

What RTFM lets your agent do. Expand a tool for its parameters.

Self-reported~161 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · rtfm-ai (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars27Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed14Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How RTFM works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about RTFM

RTFM is an MCP server that connects AI agents to a local SQLite index of project files, including code, documents, PDFs, and data. Its main tools search indexed content, return relevant context, expand source chunks, synchronize files, inspect project structure, and expose tags, graphs, statistics, and history.

Install `rtfm-ai` with pip, run `rtfm init` in the project, and configure your MCP client to use `rtfm-serve`. Claude Code users can instead install the RTFM plugin from the `roomi-fields/claude-plugins` marketplace, which bundles the server.

Yes, RTFM works with Cursor through a manual MCP setup. Install `rtfm-ai`, initialize the project with `rtfm init`, and point Cursor at the package's `rtfm-serve` entry point.

Yes, after installing the optional PDF and embeddings support. The embeddings extra enables semantic and hybrid search, while the PDF options add basic or extended PDF text extraction.

No, RTFM runs locally and does not require API keys or cloud services. Its project index is stored in a local SQLite file, with the Claude Code plugin creating `.rtfm/library.db` during initialization.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRTFM AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/rtfm?style=directory)](https://allmcps.com/mcp/rtfm)
HTML Embed
<a href="https://allmcps.com/mcp/rtfm"><img src="https://allmcps.com/api/badge/rtfm?style=directory" alt="RTFM on AllMCPs" /></a>