Token Pilot MCP server
io.github.Digital-Threads/token-pilot·v1.0.4·5 starsSave up to 80% tokens when AI reads code via AST-aware structural reading
not scanned yet
5 stars798 downloads/wk
Reviews
Write oneNobody has reviewed Token Pilot yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Token Pilot tools
No tool declarations could be read from the package source. They show once the server is installed.
How Token Pilot compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 78/100
- higher than 57% of 48,243 servers
- GitHub stars
- 5
- more than 83% of 28,706 servers
- Downloads a week
- 798
- more than 93% of 12,306 servers with a package
Release history: 3 versions in the registry since 2026-09-13, latest 2026-10-06, typically one every 12 days.
Install Token Pilot in Claude Code, Cursor or VS Code
Runs npx -y token-pilot on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add token-pilot -- npx -y token-pilot
What the publisher says
From the Token Pilot repository's README, as published. We do not edit it. Read it on GitHub
Token Pilot
Token-efficient AI coding, enforced. Cuts context consumption in AI coding assistants by up to 90% without changing the way you work.
Why it matters more now: as frontier models move up in price, the tokens you don't spend reading code are worth more, not less. The savings are in tokens; the value is in tokens × price. Token Pilot keeps the expensive main thread lean so the premium model spends its budget on reasoning, not on re-reading files.
Three layers, each useful on its own, stronger together:
- MCP tools — structural reads (smartread, readsymbol, readforedit, …). Ask for an outline or load one function by name instead of the whole file.
- PreToolUse hooks — intercept heavy native tool calls (Read on large files, recursive Grep, unbounded git diff) and redirect to token-efficient alternatives.
- tp- subagents** — Claude Code delegates with MCP-first behaviour and tight response budgets.
How It Works
Traditional: Read("user-service.ts") → 500 lines → ~3000 tokens
Token Pilot: smart_read("user-service.ts") → 15-line outline → ~200 tokens
read_symbol("UserService.updateUser") → 45 lines → ~350 tokens
After edit: read_diff("user-service.ts") → ~20 tokensFiles under 200 lines are returned in full — zero overhead for small files.
Benchmarks
Measured on public open-source repos. Files ≥50 lines only:
smartread outline savings only. Real sessions additionally benefit from session cache, readsymbol, and readforedit. Reproduce: npx tsx scripts/benchmark.ts.
Quick Start
npx -y token-pilot initCreates (or merges into) .mcp.json with token-pilot + context-mode, then prompts to install tp-* subagents. Restart your AI assistant to activate.
What You Get
- 25 MCP tools — structural reads, symbol search, git analysis, module routing, session analytics → tools reference
- PreToolUse hooks — block heavy Grep/Bash/Read calls; redirect to efficient alternatives → hooks & modes
- 25 tp- subagents** (Claude Code only) — MCP-first delegates with haiku/sonnet model tiers and budget enforcement → agents reference
- Tool profiles — trim advertised tools/list to save ~2 k tokens per session → profiles & config
Client Support Matrix
Manual config snippets for each client → installation guide
Enforcement Mode
TOKENPILOTMODE controls how aggressively Token Pilot redirects heavy native tool calls:
TOKEN_PILOT_MODE=strict npx token-pilot→ Full hook & mode docs
Ecosystem
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Token Pilot: common questions
- Is Token Pilot MCP server safe?
- Mostly: it is graded B (78/100). Read the Token Pilot safety report
- How do I install Token Pilot?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Token Pilot need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Token Pilot maintained?
- The last commit was 36 days ago (2026-09-30). The latest release is v1.0.4.
- How does Token Pilot compare with other MCP servers?
- safety score 78/100 (higher than 57% of 48,243 servers); github stars 5 (more than 83% of 28,706 servers); downloads a week 798 (more than 93% of 12,306 servers with a package). Full comparison.