LeanToken MCP server
Token-bounded repository context for coding agents over MCP.
131 stars
Reviews
Write oneNobody has reviewed LeanToken yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
LeanToken tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-29 · same rubric, same numbers if you re-run it
- –Code scanpackage could not be scannedn/a
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 3 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How LeanToken compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 75% of 48,255 servers
- GitHub stars
- 131
- more than 95% of 28,688 servers
Install LeanToken in Claude Code, Cursor or VS Code
The registry entry has no remote endpoint or installable package.
What the publisher says
From the LeanToken repository's README, as published. We do not edit it. Read it on GitHub
LeanToken
Code intelligence for agents: find the code that matters and keep your context window and tokens lean.
Language: English · 简体中文 · 日本語 · 한국어
- MCP Registry name: mcp-name: io.github.morluto/leantoken
Install · Why LeanToken · Tools · CLI · How it works · Docs
Measured token savings: In a controlled 60-run study, LeanToken used
20.1% fewer model input tokens than the agent's built-in tools with limited
repository exploration, and 37.6% fewer than those tools with broad
exploration. See exactly
how it was measured in the measurement methodology.
Quick start
Add LeanToken to Claude Code, Cursor, OpenCode, Codex, Gemini CLI, or Antigravity:
npx leantoken setupSetup behavior and safety
Current releases stop setup before writing when npx resolves a stale project-local or ancestor install, and point to npx leantoken@latest setup. Older releases that predate this check can be bootstrapped directly with that versioned command.
The interactive setup wizard preselects supported clients it detects; you can change that selection before continuing. It then shows the exact configuration paths and MCP launcher and asks for a separate final confirmation. Automation never treats detection as consent. An npx-based setup pins the exact LeanToken version that ran setup, so restarting a client cannot silently move to a newer release.
Global setup never stores the repository where setup happened. OpenCode gets a workspace-relative working directory; other supported clients launch LeanToken from the workspace cwd selected by the host. If a host instead starts it from the home directory or a filesystem root, LeanToken refuses to index that broad root by default.
Restart or reload the configured clients, then verify the connection and first retrieval from a repository:
npx leantoken doctorTry a broad task such as: Find the code related to request cancellation before editing. LeanToken helps the agent start with leantoken.context, while its normal tools remain available for edits, builds, and tests.
Inspect LeanToken's observed repository-local token accounting:
npx leantoken savingsLocal by default Source is indexed on your machine in a local database. LeanToken is a read-only discovery and retrieval layer. Explicit token budgets Every response has an explicit token limit, so large files cannot take over the request. Built for agent workflows Find files, search code, inspect structure, read exact ranges, trace history, query JSON, and track token usage through focused tools.
Advanced setup and version management
To skip the wizard, select clients explicitly or configure all supported clients:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
LeanToken: common questions
- Is LeanToken MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the LeanToken safety report
- Does LeanToken need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is LeanToken maintained?
- The last commit was 9 days ago (2026-10-26). The latest release is v0.1.28.
- What can I use instead of LeanToken?
- Servers from other publishers that do the same job: Deja Vu MCP server.
- How does LeanToken compare with other MCP servers?
- safety score 88/100 (higher than 75% of 48,255 servers); github stars 131 (more than 95% of 28,688 servers). Full comparison.
Alternatives to LeanToken
Same job from other publishers: the closest match first, then the best rated.
- Deja Vudeja-vu: local memory over the session histories of forty-three coding agents.not reviewedEstablishedA