MCP Directory
Back

lean-ctx

by yvgude · Rust · ★ 949

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.

#agentic-coding#ai#ai-coding#claude-code#context-engineering#copilot#cursor#developer-tools#gemini-cli#llm#mcp#mcp-server#reduce-token-costs#rust#token-optimization

Install

cargo install --git https://github.com/yvgude/lean-ctx.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "lean-ctx": {
      "command": "npx",
      "args": [
        "-y",
        "github:yvgude/lean-ctx"
      ]
    }
  }
}

From the README

The context layer for AI coding agents Reduce token waste in Cursor, Claude Code, Copilot, Windsurf, Codex, Gemini & more by 60–95% (up to 99% on cached reads) Shell Hook + MCP Server · 49 tools · 10 read modes · 90+ patterns · Single Rust binary Website · Docs · Install · Demo · Benchmarks · Cookbook · Security · Changelog · Discord --- > **lean-ctx** is a local-first context runtime that compresses file reads + shell output before they reach the LLM. Cached re-reads drop to **~13 tokens**. See it in action:…
Read full README on GitHub →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related developer tools servers