AgentIndex icon
AgentIndex
ToolsCategoriesTrendingNewCompare
Submit Tool
Home/
Observability/
lean-ctx
lean-ctx logo

lean-ctx

Active·★ 2.3k·MIT·Updated 2026-05-29
★ Hidden Gem★ Dev Tooling★ Memory & Context

Reduce AI coding costs by 99% — MCP Server + Shell Hook for Cursor, Claude Code, Copilot, Windsurf, Gemini CLI & 24 tools. Single Rust binary, zero telemetry.

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#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

GitHub MCP Server logo
GitHub MCP Server★ 30.3k
GitHub's official MCP Server. Allows AI agents to interact directly with your GitHub repositories (read files, search code, issues).
vs →
genai-toolbox logo
genai-toolbox★ 15.4k
MCP Toolbox for Databases is an open source MCP server for databases.
vs →
nuclear logo
nuclear★ 17.7k
Streaming music player that finds free music for you
vs →
context-mode logo
context-mode★ 16.0k
Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 12 platforms
vs →
Auto-claude-code-research-in-sleep logo
Auto-claude-code-research-in-sleep★ 11.0k
ARIS ⚔️ (Auto-Research-In-Sleep) — Claude Code skills for autonomous ML research: cross-model review loops, idea discovery, and experiment automation via Codex MCP
vs →
agents-best-practices logo
agents-best-practices★ 1.1k
Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.
vs →
holaOS logo
holaOS★ 5.4k
The agent environment for long-horizon work, continuity, and self-evolution.
vs →
qveris-agent-toolkit logo
qveris-agent-toolkit★ 229
Open-source toolkit for the QVeris capability routing network: CLI, MCP server, Python SDK, skills, and REST API docs for agents to discover, inspect, call, and audit real-world tools.
vs →
See all alternatives →

Related searches

lean-ctx AlternativesBest Observability Tools 2026Open Source Observabilitylean-ctx Tutoriallean-ctx Vs Competitorsagentic-codingaiai-coding

Comments

Log in to leave a comment
  • C
    Corey ThompsonMay 1, 2026

    MCP Server plus Shell Hook combination covers both interactive and automated workflows.

  • J
    Jordan LewisMay 1, 2026

    99% AI coding cost reduction via context compression is a bold claim worth testing.

  • P
    Phoenix HarrisApr 5, 2026

    Context management at this level can make AI coding economically viable for large codebases.

  • L
    Logan NguyenMar 19, 2026

    Works with Cursor, Claude Code, and other MCP-compatible tools.

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
Stats
GitHub Stars★ 2.3k
Last commit1d ago
StatusActive
LicenseMIT
CategoryObservability
Trend (30d)
+0k↑ 2.0%
Links
Documentation↗Discussion↗Issues↗Releases↗

Deploy on DigitalOcean — Get $200 Free Credit

Ad
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
QYSGitHubBuy me a coffee ☕

Browse by Category

Code AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.