← all tools

rlm-mcp

MCP server implementing the Recursive Language Model pattern. Treats long prompts as environment objects the LLM can query symbolically — bypasses context-window limits.

install

$ pip install rlm-mcp
$ claude mcp add rlm rlm-mcp

Recursive Language Model server for Claude Code. Implements the pattern from Zhang et al. 2025: instead of feeding long prompts directly into the model, treat the prompt as an environment object the LLM can interact with symbolically — load, search, summarise, and operate on documents that wouldn’t fit in any single context window.

Concrete: persistent indexes, concurrent session safety, atomic budget enforcement, exact BM25 doc-ids filtering, batch document loading 2–3× faster than naive sequential.

The longform writeup is Beyond Context Windows.