Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Lean Ctx Bin

MCP server by yvgude Verified · npm:lean-ctx-bin

Lean Ctx Bin is the open-source LeanCTX runtime, a local context gateway that selects, controls and records the context AI tools read. It suits developers using Claude Code, Cursor or Codex who want more focused context for their agents.

  • Score 93
  • 4k stars
  • 2.6k a week
  • Apache-2.0
  • Updated

Install Lean Ctx Bin

Built from the published package, never by AI.

claude mcp add lean-ctx-bin -- npx -y lean-ctx-bin

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Lean Ctx Bin in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the lean-ctx-bin block.

About

LeanCTX sits between AI tools and the information they read. It selects task-relevant context using search, structural views, compression and reuse. It applies configured path permissions, content filters and context budgets to supported calls, and it records the context operations and delivery evidence it can observe. The open-source LeanCTX | OSS runs locally through CLI, MCP, hooks and proxy paths.

The project is aimed at developers who want to improve the context path of existing AI tools such as Claude Code, Cursor or Codex. The host keeps its own model calls and application workflow. The source states that the claim of more effective agents with less context is a stance, not a measured savings promise, until a published cost-per-accepted-outcome study exists.

Written from the project's README and checked against it.

Tools it gives your assistant

  • ctx_url_readPulls a public web page, PDF or YouTube transcript into context as compressed, citation-backed text.
  • ctx_expandRecovers retained source from compact views and searches archived tool outputs with search_all.
  • ctx_patchEdits a whole symbol body using op=replace_symbol.
  • ctx_callgraphFinds references to a symbol through supported language servers.
  • ctx_agentExperimental local agent handoff with context transfer bundles and shared state.
  • ctx_handoffExperimental local handoff of context between agents.
  • ctx_proofExports an audit trail of recorded context operations and provenance records.
  • ctx_verifyChecks runtime policy claims such as PathJail per touched file and budget.

Try asking

  • Fetch this public docs page and summarize its key claims with sources.
  • Show me the callers of this function using the call graph.
  • Replace the body of this symbol with the updated implementation.

Good to know

  • Savings and cost figures are estimates and do not prove answer quality.
  • A filesystem boundary is not an operating-system sandbox.
  • Context Packages, Context Time Machine and Addons are experimental research features.
  • Enterprise controls are licensed and separate from the open-source edition.

Security check

C
  • Downloads a script from the internet and runs itIn README.md: curl -fsSL https://leanctx.com/install.sh | sh

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Lean Ctx Bin

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Lean Ctx Bin: common questions

Does LeanCTX require Rust?

No. The source states that no Rust is required to use it.

Is LeanCTX a hosted service?

The open-source LeanCTX | OSS runs locally. Team handoff, packaging and snapshot sharing are described as experimental and not a hosted or generally available service.

Does LeanCTX prove that answers are better?

No. Usage estimates and calculated costs help assess operational effect but do not prove answer quality, according to the source.

How do I install Lean Ctx Bin?

In Claude Code run claude mcp add lean-ctx-bin -- npx -y lean-ctx-bin. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Lean Ctx Bin the official server?

Lean Ctx Bin is published by npm:lean-ctx-bin from its verified domain in the official MCP Registry.

Is Lean Ctx Bin free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Lean Ctx Bin safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to Lean Ctx Bin?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Lean Ctx Bin work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Lean Ctx Bin Install

Add to stack

Loading.