A local binary that compresses, remembers, routes, and verifies every token between your code and AI models, saving up to 99% of tokens.
lean-ctx is easy to set up with strong trust signals. Check agent compatibility and use-case fit before adding it to your workflow.
gh repo view yvgude/lean-ctx --webOpen the official README and confirm the supported install method.
Add the server entry to your MCP client config.
Restart your agent and verify that the server tools appear.
Repository setup guidance
Strong trust signals; still review the README and permissions before production use.
Last commit was about 96 days ago.
2494 GitHub stars indicate community interest.
2 open issues signal maintenance load.
Apache-2.0 license detected.
2 security/trust notes recorded.
Setup difficulty is 2/5.
Connect any AI model to 1200+ integrations (MCP, CLI, API)
An AI Gateway, registry, and proxy that sits in front of any MCP, A2A, or REST/gRPC APIs, exposing a unified endpoint with centralized discovery, guardrails and management. Optimizes Agent & Tool calling, and supports plugins.
Official Microsoft Learn MCP server and CLI tool providing real-time, trusted Microsoft docs and code samples to AI agents.
Open-source credential gateway with a built-in vault. give your AI agents access to services without exposing keys.
LeanCTX is a tool that sits between your code and an AI coding assistant. It reduces the amount of text the AI needs to read by caching and compressing file contents, remembers important context across chat sessions, and gives you control over how much context is used. It works with popular AI coding tools like Cursor, Claude Code, and GitHub Copilot.
LeanCTX is a local-first, zero-configuration binary that acts as a cognitive context layer for AI development. It addresses the problem of wasted tokens in AI coding workflows by compressing repeated file reads (from ~2000 tokens to ~13), compressing noisy shell output (e.g., git status from ~800 to ~120 tokens), and persisting session memory across chats. It provides 63 MCP tools, 10 read modes, a real-time dashboard, and budget control. It integrates seamlessly with Cursor, Claude Code, GitHub Copilot, Windsurf, Codex, and Gemini CLI. The tool is written in Rust, is open-source under Apache-2.0, and has over 2,400 stars on GitHub.
2,494
Stars
255
Forks
2
Issues
Apache-2.0
License
A local binary that compresses, remembers, routes, and verifies every token between your code and AI models, saving up to 99% of tokens.
AI-assisted developers who use tools like Cursor, Claude Code, or GitHub Copilot., Developers looking to reduce API costs by optimizing token usage., Teams that need consistent context across multiple AI coding sessions.
The setup section provides repository-level starting guidance, not a guarantee of an independently verified installation. Check the official README and release notes.
The tool runs locally and does not send data to external servers by default, but opt-in telemetry is available. As with any MCP server, granting file system access could expose sensitive files if misconfigured.
Similar or complementary options to evaluate include metorial, mcp-context-forge, Microsoft Learn MCP Server.
Aug 20, 2026