RLM Tools logo

RLM Tools

Explore repositories in a persistent, read-only Python sandbox while keeping intermediate search and file data out of the model context.

Install RLM Tools

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": {
    "rlm-tools": {
      "command": "uvx",
      "args": [
        "--from",
        "rlm-tools[semantic]",
        "rlm-tools"
      ],
      "env": {
        "RLM_ALLOWED_ROOTS": "YOUR_VALUE_HERE",
        "RLM_RECURSE_GATE": "YOUR_VALUE_HERE",
        "RLM_EXTERNAL_ROOTS": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

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

RLM Tools MCP server gives coding agents a read-only Python sandbox for repository exploration, with session state preserved between executions. Its three-tool API opens a workspace, runs Python that can search or read files, and closes the session; only selected results need to return to the conversation. Reach for RLM Tools when broad searches, multi-file investigation, or repeated follow-up analysis would otherwise consume substantial context. Optional model helpers can send repository content to external providers when explicitly enabled.

Use cases

  • Explore a repository without flooding the model context with raw search results
  • Summarize matches across modules with persistent Python state
  • Trace a pattern from search results into selected files
  • Inspect directory structure and cached file content across multiple calls

Key features

  • Persistent read-only Python sandbox
  • Session-based repository exploration
  • Cached file reads across executions
  • Search, glob, tree, and summarization helpers
  • Optional recursive and sub-LLM analysis
  • Evidence-based output filtering for recursive analysis

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 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · rlm-tools (PyPI)

Adoption & maintenance

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

GitHub stars9Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How RLM Tools works

What RLM Tools does

RLM Tools provides coding agents with a read-only workspace for inspecting a repository without transferring every intermediate result into the model context. Agents can search for text, locate files, inspect directory structure, read selected files, and summarize results in Python before returning them.

The main use case is context-conscious codebase exploration. For example, an agent can search for a pattern, group matches by module, read only the relevant files, and print a compact summary. Variables and cached file contents remain available during the session, allowing later steps to build on earlier exploration.

How it works

The MCP API consists of three operations:

  • rlm_start(path, query) opens an exploration session for a directory.
  • rlm_execute(session_id, code) runs Python in that session.
  • rlm_end(session_id) closes the session and releases its resources.

The sandbox includes helpers for reading files, searching with grep, finding paths with glob patterns, and displaying directory trees. read_file and read_files can cache content across executions. rlm_finalize can mark structured final output for an execution response.

Optional recursive analysis helpers let a sub-agent explore the session directory, while llm_query can send prompts and context to a model provider. These helpers require an API key and are separate from local repository exploration.

An evidence gate can filter tool output before recursive-loop history is replayed. It uses TypeSafe models, is enabled through configuration, and fails open when scoring is unsuitable or unavailable. Exhaustive questions such as requests for every match bypass relevance filtering so that results are not accidentally omitted.

Setup and configuration

The server runs on macOS and Linux and requires uvx to be available on the client's PATH. Linux installations also require libseccomp.so.2. Codex CLI, Claude Code, and Gemini CLI have dedicated plugin or extension installation paths. Cursor, VS Code with GitHub Copilot, and Amazon Kiro can use the Agent Plugins package; standalone MCP configuration is also supported.

Set RLM_ALLOWED_ROOTS to an absolute checkout path when the client launches the server from a plugin directory or when workspace access must be restricted. The path supplied to rlm_start must be inside an allowed root. The optional evidence gate additionally requires the semantic package extra, both API keys, RLM_RECURSE_GATE=1, and the repository path in RLM_EXTERNAL_ROOTS.

Tools and capabilities

  • Persistent Python variables across rlm_execute calls
  • read_file and read_files for cached file access
  • grep, grep_summary, and grep_read for repository searches
  • glob_files and tree for path and structure discovery
  • Optional llm_query and rlm_recurse helpers
  • Compact or structured output through Python summaries and rlm_finalize

Limitations and notes

Repository access is read-only. Local exploration does not require an API key, but optional model helpers transmit repository content to an external provider when enabled. The evidence gate may retain original output when scoring fails, budgets are exhausted, results are too small, or the question requires exhaustive coverage. Sessions should be closed with rlm_end after exploration.

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 RLM Tools

RLM Tools is an MCP server that connects coding agents to a read-only Python sandbox for exploring local repositories. Its main tools, rlm_start, rlm_execute, and rlm_end, open sessions, run persistent Python searches and file analysis, and release resources while keeping intermediate results outside the model context.

Install it through the client-specific plugin or extension path, or configure it as a standard MCP server with uvx. Codex CLI, Claude Code, and Gemini CLI have dedicated installation commands; Cursor and VS Code can use the Agent Plugins package. uvx must be on PATH.

Yes, RLM Tools works with Cursor through the Agent Plugins package or standalone MCP setup. When the server starts from the plugin directory, set RLM_ALLOWED_ROOTS to the absolute path of the repository the agent should explore.

No, local repository exploration does not require an API key. API keys are needed only for optional model helpers such as llm_query and rlm_recurse, and for the optional TypeSafe evidence gate.

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 PreviewRLM Tools AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/rlm-tools?style=directory)](https://allmcps.com/mcp/rlm-tools)
HTML Embed
<a href="https://allmcps.com/mcp/rlm-tools"><img src="https://allmcps.com/api/badge/rlm-tools?style=directory" alt="RLM Tools on AllMCPs" /></a>