# RTFM MCP server

> Indexes code, docs, PDFs, and research locally so an AI coding agent can search and retrieve precise context with fewer calls.

- Repository: https://github.com/roomi-fields/rtfm
- Page: https://hostedmcp.org/servers/roomi-fields/rtfm
- Transport: stdio
- Stars: 27
- License: MIT
- Latest version: 1.0.0

## Install

### Claude Code

```sh
claude mcp add rtfm -- uvx rtfm-ai
```

### Cursor (`~/.cursor/mcp.json`)

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

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "rtfm": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "rtfm-ai"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"rtfm","type":"stdio","command":"uvx","args":["rtfm-ai"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex

```sh
codex mcp add rtfm -- uvx rtfm-ai
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.rtfm]
command = "uvx"
args = ["rtfm-ai"]
```

### Gemini CLI

```sh
gemini mcp add -s user rtfm uvx -- rtfm-ai
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## Tools (14)

- `rtfm_search`
- `rtfm_context`
- `rtfm_expand`
- `rtfm_discover`
- `rtfm_books`
- `rtfm_stats`
- `rtfm_sync`
- `rtfm_ingest`
- `rtfm_tags`
- `rtfm_tag_chunks`
- `rtfm_remove`
- `rtfm_graph`
- `rtfm_history`
- `rtfm_coverage`

## FAQ

### Does RTFM require an API key or cloud service?

No. RTFM runs locally on a single SQLite file with no API keys or cloud costs.

### What file types can RTFM index?

It indexes code, docs, PDFs, legal texts, research papers, and data, using 24 format parsers.

### How do I install RTFM for Claude Code?

Install it via the Claude Code plugin marketplace, which auto-initializes each project without pip install.

### Can an AI agent search across multiple projects' memory files?

Yes, RTFM builds a cross-project memory index at ~/.rtfm/memory.db that sees every Claude memory directory on the machine.

### Does RTFM support semantic search?

Yes, semantic and hybrid search are available as an optional embeddings install.
