lean-ctx MCP Server
yvgude/lean-ctx
Hybrid Context Optimizer — Shell Hook + MCP Server. Reduces LLM token consumption by 89-99%. Single Rust binary, zero dependencies.
claude mcp add agentrank -- npx -y agentrank-mcp-server Overview
yvgude/lean-ctx is a Rust MCP server. Hybrid Context Optimizer — Shell Hook + MCP Server. Reduces LLM token consumption by 89-99%. Single Rust binary, zero dependencies. Topics: ai, cli, context-compression, cursor, llm, mcp, rust, token-optimization, agentic-coding, claude-code, compression, copilot, developer-tools, open-source, tokens.
Ranked #105 out of 129 indexed tools.
Actively maintained with commits in the last week.
Ecosystem
Score Breakdown
1 stars → early stage
Last commit today → actively maintained
No issues filed → no history to score
1 contributor → solo project
No dependents → no downstream usage
Weights: Freshness 25% · Issue Health 25% · Dependents 25% · Stars 15% · Contributors 10% · How we score →
How to Improve
Matched Queries
From the README
# lean-ctx **Hybrid Context Optimizer — Shell Hook + MCP Server. Single Rust binary, zero dependencies.** [Website](https://lean-ctx.pounce.ch) · [Install](#installation) · [Quick Start](#quick-start) · [CLI Reference](#cli-commands) · [MCP Tools](#8-mcp-tools) · [vs RTK](#lean-ctx-vs-rtk) --- lean-ctx reduces LLM token consumption by **89-99%** through two complementary strategies in a single binary: 1. **Shell Hook** — Transparently compresses CLI output before it reaches the LLM. Works without LLM cooperation. 2. **MCP Server** — 8 tools for cached file reads, dependency maps, entropy analysis, and session metrics. Works with Cursor, GitHub Copilot, Claude Code, Windsurf, and any MCP-compatible editor. ## Token Savings (Typical Cursor/Claude Code Session) | Operation | Frequency | Standard | lean-ctx | Savings | |---|---|---|---|---| | File reads (cached) | 15x | 30,000 | 195 | **-99%** | | File reads (map mode) | 10x | 20,000 | 2,000 | **-90%** | | ls / find | 8x | 6,400 | 1Read full README on GitHub →
Get the weekly AgentRank digest
Top movers, new tools, ecosystem insights — straight to your inbox.