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.
Install Lean Ctx Bin
Built from the published package, never by AI.
claude mcp add lean-ctx-bin -- npx -y lean-ctx-binRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"lean-ctx-bin": {
"args": [
"-y",
"lean-ctx-bin"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"lean-ctx-bin": {
"args": [
"-y",
"lean-ctx-bin"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"lean-ctx-bin": {
"args": [
"-y",
"lean-ctx-bin"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add lean-ctx-bin -- npx -y lean-ctx-bin{
"mcpServers": {
"lean-ctx-bin": {
"args": [
"-y",
"lean-ctx-bin"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add lean-ctx-bin npx -y lean-ctx-binGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
