Skip to main content
ClaudeWave

Control what your AI can see. LeanCTX (Lean Context) is the context intelligence layer for AI agents — one local Rust binary that decides what they read, remembers what they learn, guards what they touch, and proves what they save. 60–90% fewer tokens as the receipt. 76 MCP tools, 30+ agents, local-first.

MCP Servers2.7k stars267 forksRustApache-2.0Updated today
Editor's note

LeanCTX is a Rust-based MCP server that sits between AI coding agents and a codebase to compress, cache, and govern the tokens flowing into the model's context window. It exposes over 30 tools covering file reads in a "map mode" that strips noise to roughly 13 tokens per cached re-read (compared to around 2,000 for a raw read), shell output compression that shrinks a typical `git status` from about 800 tokens to 120, cross-session memory that persists context between chats, and a real-time `lean-ctx gain` dashboard showing token and dollar savings live. The binary installs via a single `lean-ctx setup` command and connects to Claude Code as well as Cursor, Copilot, Windsurf, and Gemini CLI with no additional configuration. Developers paying Claude API costs directly, or teams running long agentic coding sessions where repeated file reads and verbose shell output erode the usable context window, are the primary audience. The project claims 60 to 90 percent fewer tokens consumed overall, backed by reproducible benchmark reports generated from VHS tapes included in the repository.

ClaudeWave Trust Score
100/100
Verified
Passed
  • Open-source license (Apache-2.0)
  • Actively maintained (<30d)
  • Healthy fork ratio
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 6/11/2026
Install in Claude Code / Claude Desktop
Method: Manual · lean-ctx
Claude Code CLI
git clone https://github.com/yvgude/lean-ctx
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "lean-ctx": {
      "command": "lean-ctx"
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Install the binary first: cargo install lean-ctx (or build from https://github.com/yvgude/lean-ctx).
Use cases

MCP Servers overview

README preview not available. Visit the repo on GitHub for full documentation.
agentic-codingaiai-agentsai-codingclaude-codecontext-engineeringcontext-intelligencecontext-layercopilotcursordeveloper-toolsgemini-clilean-contextllmmcpmcp-serverreduce-token-costsrusttoken-optimization

What people ask about lean-ctx

What is yvgude/lean-ctx?

+

yvgude/lean-ctx is mcp servers for the Claude AI ecosystem. Control what your AI can see. LeanCTX (Lean Context) is the context intelligence layer for AI agents — one local Rust binary that decides what they read, remembers what they learn, guards what they touch, and proves what they save. 60–90% fewer tokens as the receipt. 76 MCP tools, 30+ agents, local-first. It has 2.7k GitHub stars and was last updated today.

How do I install lean-ctx?

+

You can install lean-ctx by cloning the repository (https://github.com/yvgude/lean-ctx) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is yvgude/lean-ctx safe to use?

+

Our security agent has analyzed yvgude/lean-ctx and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains yvgude/lean-ctx?

+

yvgude/lean-ctx is maintained by yvgude. The last recorded GitHub activity is from today, with 1 open issues.

Are there alternatives to lean-ctx?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy lean-ctx to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: yvgude/lean-ctx
[![Featured on ClaudeWave](https://claudewave.com/api/badge/yvgude-lean-ctx)](https://claudewave.com/repo/yvgude-lean-ctx)
<a href="https://claudewave.com/repo/yvgude-lean-ctx"><img src="https://claudewave.com/api/badge/yvgude-lean-ctx" alt="Featured on ClaudeWave: yvgude/lean-ctx" width="320" height="64" /></a>

More MCP Servers