mcp-recall

Your context window is finite. Tool outputs aren't. mcp-recall bridges the gap.
MCP tool outputs (Playwright snapshots, GitHub API responses, Linear queries) and long Bash output can consume tens of kilobytes of context per call, and a busy session fills even a large context window long before the work is done. mcp-recall intercepts those outputs, stores them in full locally, and delivers compressed summaries to Claude instead. When Claude needs more detail, it can search the stored output and retrieve it, without re-running the tool.
It works in Claude Code, pi, OpenCode and xAI's grok CLI. Where it runs gives every agent's status, including the ones still to come.
The goal is sessions that run for hours instead of hitting the context limit in minutes. Results shows what is measured today, and the quality benchmark what the summaries keep.
Status: the pipeline is settled and maintained; current work is fitting alongside what you already run. Working beside other output-rewriting tools such as rtk, more coding agents, and download verification without gh ship on a weekly release, along with fixes. Beyond fixes, changes to what is summarized, stored or retrieved are not planned. Measured in small studies (benchmarks): fewer compactions where sessions were long enough to compact, and no change in solved tasks that can be told apart from chance. Why, and what it deliberately won't become: ROADMAP.md.

Is it for you?
It is likely to help if:
- Your sessions run long and lean on MCP tools that return large, structured output, such as browser automation, GitHub, or search and API results. In the browser studies, sessions compacted less often with mcp-recall: 10 compactions fell to 6, and 50 to 29.
- You pay per token on a smaller model. In two Haiku studies, one of long sessions and one of browser tasks, runs cost about a quarter less.
- You want tool output from an earlier session to stay searchable instead of gone.
It will do little if:
- Your sessions are short, or your tools return small output. Output that a summary can't shrink by at least a quarter passes through untouched.
- Most of your context goes to the built-in Read, Grep and Glob tools. Claude Code doesn't let a hook replace their output, so mcp-recall never sees it.
What it has not shown: that Claude solves more tasks. In paired runs with and without it, no study found a difference in solved tasks larger than chance. Claude also almost never fetched the stored output, so the summaries carry the effect. See the task-success benchmark for every study and its limits.
What it costs you: an install that edits your Claude Code config, and a local SQLite store on your own disk. Nothing leaves your machine, and credentials are never stored: see Safety and privacy.
Where it runs
mcp-recall needs an agent that lets a hook rewrite a tool's result before the model sees it, without marking the result as an error. Each supported agent runs the same pipeline through a thin adapter.