AgentIndex icon
AgentIndex
ToolsCategoriesTrendingNewCompareGuides
Submit Tool
ToolsCategoriesTrendingNewCompareGuides
Home/
Memory & Context/
lean-ctx
lean-ctx logo

lean-ctx

Active·★ 3.9k·MIT·Updated 2026-10-09
★ Hidden Gem★ Dev Tooling★ Memory & Context

lean-ctx is an open-source MCP server designed to drastically reduce LLM token costs for AI coding tools like Claude Code, Cursor, and Copilot. It achieves this by transparently compressing CLI output and file context, offering up to 99% savings and making AI coding faster, cheaper, and more effective without changing workflows.

#agentic-coding
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
AboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

Code AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.

#ai
#ai-coding
#claude-code
#context-engineering
#copilot
#cursor
#developer-tools
$ Install
$ curl -fsSL https://leanctx.com/install.sh | sh && lean-ctx setup && lean-ctx doctor
↗ Visit site★ GitHub
01

Features

01Transparent shell hook for CLI output compression
02Context server with 28 intelligent tools
03One-command integration for AI coding agents
04Adaptive LLM communication with Cognitive Efficiency Protocol
05Cross-session memory for context continuity
02

Compatibility

Cursor
Auto-configured
Verified via docs
Claude Code
Auto-configured
Verified via docs
GitHub Copilot
Auto-configured
Verified via docs
VS Code
Auto-configured
Verified via docs
JetBrains IDEs
Auto-configured
Verified via docs
03

Quick start

1
$ curl -fsSL https://leanctx.com/install.sh | sh
2
$ lean-ctx setup
3
$ lean-ctx doctor
04

Use cases

↳Reducing token costs for Claude Code, Cursor, and Copilot
↳Optimizing MCP server performance
↳Saving $30-100+ per month on AI coding API costs
05

Alternatives

headroom logo
headroom★ 74.8k
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. Around 20% fewer tokens for coding agents and 60-95% fewer for JSON, with the same answers. Library, proxy, and MCP server.
letta logo
letta★ 25.1k
Letta is the platform for building stateful agents: open AI with advanced memory that can learn and self-improve over time.
Auto-claude-code-research-in-sleep logo
Auto-claude-code-research-in-sleep★ 17.2k
ARIS ⚔️ (Auto-Research-In-Sleep) — Claude Code skills for autonomous ML research: cross-model review loops, idea discovery, and experiment automation via Codex MCP

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
Stats
GitHub Stars★ 3.9k
Last commit
agents-best-practices logo
agents-best-practices★ 2.4k
Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.
holaOS logo
holaOS★ 11.4k
The agent environment for long-horizon work, continuity, and self-evolution.
Godot-MCP logo
Godot-MCP★ 276
Godot-MCP — Model Context Protocol (MCP) integration for the Godot Engine. AI tools for the Godot Editor in C#, with cloud connection to ai-game.dev. Apache-2.0.
claude-code-ultimate-guide logo
claude-code-ultimate-guide★ 6.1k
The most comprehensive Claude Code guide: agentic workflows, hooks, skills, MCP servers, quizzes, and production-ready templates. 430K+ lines.
Graft logo
Graft★ 9.8k
Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.
See all alternatives →
1d ago
StatusActive
LicenseMIT
CategoryMemory & Context
Trend (30d)
+0.1k↑ 2.0%
Links
Documentation↗Discussion↗Issues↗Releases↗

Deploy on DigitalOcean — Get $200 Free Credit

Ad