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.
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.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Healthy fork ratio
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/yvgude/lean-ctx{
"mcpServers": {
"lean-ctx": {
"command": "lean-ctx"
}
}
}MCP Servers overview
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.
[](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
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。