context-doctor MCP server
io.github.KushalP1/context-doctor·v0.41.0·1 starsCut LLM agent token use in Claude Code, Cursor, Codex, Gemini CLI. Local, no API key. gAI Ventures.
not scanned yet
1 stars974 downloads/wk
Reviews
Write oneNobody has reviewed context-doctor yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
context-doctor tools
No tool declarations could be read from the package source. They show once the server is installed.
How context-doctor compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 4,464 AI and agents servers
- GitHub stars
- 1
- more than 50% of 2,697 AI and agents servers
- Downloads a week
- 974
- more than 93% of 1,515 AI and agents servers with a package
Release history: 13 versions in the registry since 2026-09-28, latest 2026-11-02, typically one every 2 days.
Install context-doctor in Claude Code, Cursor or VS Code
Runs npx -y context-doctor on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add context-doctor -- npx -y context-doctor
What the publisher says
From the context-doctor repository's README, as published. We do not edit it. Read it on GitHub
context-doctor 🩺
Keep every AI session's context lean, automatically, without ever making it more expensive.
Long agent sessions fill up with tool output nobody reads again: file dumps, shell logs, search results, screenshots. You pay for all of it on every request, the model gets slower, and it drifts as the window fills. context-doctor measures that, and with autopilot it removes it from every Claude Code (and GPT API) request on your machine, only at moments when doing so costs nothing extra.
- 9.8% less input cost, no session worse. Replaying 130 days of the author's real Claude Code use (43 sessions) through the shipped code: 3.8 billion input tokens not sent, $4,694 saved at API list price, about $1,080 a month, and not one session more expensive. Up to 37.7% on a long session. What it saves →
- Counts Claude correctly. Current Claude models pack 2.75 characters per token, not the 4 most tools assume; estimates built on 4 undercount Claude by about 40%. The ratios here were measured from the API's own counts, and context-doctor accuracy re-checks them on yours. How →
- Works where you work: Claude Code, Cursor, Codex, Claude Desktop, any Anthropic or OpenAI API app, VS Code, CI. macOS, Linux and Windows, Node 20+.
- Local and keyless. No account, no telemetry, no API key. Your own login passes through untouched. MIT.
Built and maintained by gAI Ventures.
Quick start
See what it would save you first (no install, reads your local Claude Code history):
npx context-doctor savingsWhat autopilot would have saved you (last 30 days, 53 Claude Code sessions)
────────────────────────────────────────────────────────
Input you were billed for $11,205 (from the usage your transcripts record)
Autopilot would have cut $1,396 12.5%, 1.2B tokens not sent
Sessions made more expensive 0
Biggest win $503 tech-Whatsit (31% of that session)That is the author's machine. Yours is computed the same way: every recent session replayed request by request through the shipped autopilot code, against what your transcripts show you were actually billed.
Then install it, whichever way suits you:
# Everything, every app it finds (Claude Code, Cursor, Codex, Claude Desktop)
npm install -g context-doctor
context-doctor install
context-doctor autopilot on # every new Claude Code session keeps its context lean# Or as a Claude Code plugin, from inside Claude Code
/plugin marketplace add KushalP1/context-doctor
/plugin install context-doctor@context-doctorThe plugin brings the every-prompt check, the MCP tools, and /context-doctor:savings, /context-doctor:checkup and /context-doctor:autopilot. It needs no npm step: the MCP server ships as one self-contained file, so it also works on Claude Code versions that do not install plugin dependencies.
context-doctor autopilot status shows what autopilot did; context-doctor doctor checks the whole setup. Everything is reversible: context-doctor autopilot off, context-doctor uninstall, or /plugin uninstall.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
context-doctor: common questions
- Is context-doctor MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the context-doctor safety report
- How do I install context-doctor?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does context-doctor need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is context-doctor maintained?
- The last commit was 36 days ago (2026-09-27). The latest release is v0.41.0.
- What can I use instead of context-doctor?
- Servers from other publishers that do the same job: mcptoon MCP server, llmtrim MCP server and Commonly MCP server.
- How does context-doctor compare with other AI and agents MCP servers?
- safety score 92/100 (higher than 90% of 4,464 AI and agents servers); github stars 1 (more than 50% of 2,697 AI and agents servers); downloads a week 974 (more than 93% of 1,515 AI and agents servers with a package). Full comparison.
Alternatives to context-doctor
Same job from other publishers: the closest match first, then the best rated.
- mcptoonMCP tools + agent skills in one zero-dependency CLI: 71,929 -> 581 tokens (-99.2%, measured).not reviewedEstablishedA
- llmtrimMCP server and proxy that compresses LLM prompts, tool output, and replies to cut token cost.not reviewedEstablishedA
- CommonlyRead Commonly pods and post as a Commonly agent you create, with a token from your Commonly account.not reviewedEstablishedA
- SuperCompressCompress coding-agent context ~64%. Hosted Neural Keep MCP for Cursor/Claude/Codex.not reviewedEstablishedB
- yutuCLI, MCP server, and AI agent to automate YouTube workflowsnot reviewedEstablishedA