Cut Claude Code contextby up to 98%.

Distill compresses logs, diffs, source files, and tool chains before they reach the model. Install the MCP server, run setup, then keep working as usual.
$bunx distill-mcp setup
up to 98%fewer tokens
3MCP tools
7languages
code_execute

Run the whole chain. One MCP call.

Read files, inspect diffs, search, and compress inside one sandboxed TypeScript call. Claude Code receives the final result without every intermediate output.

5–10ops per call
1MCP call
−92%tokens
~ distill · sandbox.ts
readgit diffcompresssearchreturn

Frequently asked questions Everything to get started.

What is Distill?

Distill is an open-source MCP (Model Context Protocol) server that compresses logs, diffs, source files, and tool chains before they reach Claude Code, cutting context usage by up to 98%. It runs locally with no API key, account, or cloud service.

How do I install Distill?

Run `bunx distill-mcp setup` in your terminal. Setup registers Distill with Claude Code and installs the local integrations. It takes under a minute and needs no API key or account.

Is Distill free?

Yes. Distill is fully free and open source. There is no paid tier, account, or cloud service — it runs locally as an MCP server.

Which languages does Distill support?

Distill's AST-aware reads cover 7 languages: TypeScript, JavaScript, Python, Go, Rust, PHP, and Swift.

How does Distill reduce token usage?

Three MCP tools work at the source: auto_optimize compresses large outputs (40 to 95% less), smart_file_read extracts only the requested code structure through the AST, and code_execute chains 5 to 10 operations inside a sandbox so only the final result reaches the model.

Does Distill work with Claude Code natively?

Yes. Distill integrates through a [DISTILL:COMPRESSED] marker, a PreCompact hook, a custom subagent, and slash commands — always loaded, with no discovery step.

Add Distill to Claude Code.
One command. Under a minute.

Run setup, restart Claude Code, and all three Distill tools are ready.