LeanToken MCP Server

Token-bounded repository context for coding agents over MCP.

Local serverstdioGo

What is the LeanToken MCP Server?

Token-bounded repository context for coding agents over MCP.

What it actually does

Local-first code intelligence for coding agents. Search code, inspect structure, read exact ranges, and explore Git history through a CLI and MCP server.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
leantoken.contextDefault materialized first call for autonomous broad triage; optional preview for human or control-plane review.
leantoken.searchPrefer over grep/rg for ranked search; exhaustive text/regex calls can explicitly record or reuse complete query coverage.
leantoken.filesPrefer over find/ls/glob for compact, ignore-aware path discovery.
leantoken.outlineInspect definitions, signatures, imports, and ranges without whole-file reads.
leantoken.readPrefer over cat/head/sed for one exact symbol or inclusive line range.
leantoken.historyRead, batch-diff, or trace parsed symbols across immutable Git revisions.
leantoken.jsonQuery, summarize, or compare bounded live JSON with paged keys and typed diagnostics.
leantoken.receipt_rebaseExplicitly carry only same-path, same-coordinate, same-hash evidence into a newer completed generation.
leantoken.savingsReport observed response accounting, hash suppression, failures, and explicit observation limits.

How to install the LeanToken MCP Server

{
  "mcpServers": {
    "leantoken": {
      "command": "npx",
      "args": ["-y", "leantoken"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • “Use LeanToken to leantoken.context.”
  • “Use LeanToken to leantoken.search.”
  • “Use LeanToken to leantoken.files.”

Frequently asked questions

Token-bounded repository context for coding agents over MCP. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.