mcpbeat Sign in

context-doctor MCP Server

local only

context-doctor runs on your own machine — the client starts it, so there is no endpoint to ping. 1 140 installs a week from npm. Last commit 29 Nov 2026.

Cut LLM agent token use in Claude Code, Cursor, Codex, Gemini CLI. Local, no API key. gAI Ventures.

Installs per day peak 389 · avg 117 · +23% w/w
a month agotoday
1 140
Installs / week
npm · context-doctor
3
Stars
0 open issues
29 Nov 2026
Last commit
57 releases in 90 days
MIT
License
TypeScript

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add context-doctor -- npx -y context-doctor mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "context-doctor": {
      "command": "npx",
      "args": [
        "-y",
        "context-doctor",
        "mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.context-doctor]
command = "npx"
args = ["-y", "context-doctor", "mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "context-doctor": {
      "command": "npx",
      "args": [
        "-y",
        "context-doctor",
        "mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "context-doctor": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "context-doctor",
        "mcp"
      ]
    }
  }
}

What the code does

We read the source, 8 h ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs an external command python/src/context_doctor/__main__.py:47
        r = subprocess.run(
    const r = spawnSync(cmd, args, { ...RUN, cwd: toolCwd() });
Builds a database query by concatenation src/savings.ts:125
  const t = a.drop + i;
    ".npmrc", ".pypirc", ".netrc", "_netrc", ".git-credentials", ".pgpass", ".htpasswd", ".vault-token",
Reads files and sends them to the network src/ab.ts:42
import { accessSync, chmodSync, constants as fsConstants, existsSync, lstatSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, readlinkSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Alternatives to context-doctor

same job, measured the same way
Deja Vu
by vshulcz

Local memory & session search across fifty-three coding agents: Claude Code, Codex, Cursor.

4 797 installs/wk local only
Codeman
by ark0n

Start, prompt and read AI coding agent sessions (Claude Code, Codex, Gemini CLI and more) in Codeman

3 939 installs/wk local only
Agent Intern
by sinantufekci

Delegate from Claude Code to Gemini, Codex, Copilot, Cursor and opencode CLIs as sub-agents.

1 468 installs/wk local only
Gemini Pro MCP
by muzaqil555

Your Google AI Pro plan in Claude, Codex and Gemini CLI: Gemini, Flow, Notebooks, Jules, Veo

1 280 installs/wk local only
Token Context MCP
by mck564

On-demand, local code-context MCP server for AI coding agents with Tree-sitter AST.

1 279 installs/wk local only
Sessionmem
by catfish-1234

Local-first persistent memory for coding agents: Claude Code, Codex, Cursor, Cline, Windsurf.

899 installs/wk local only
Tokmeter — AI Agent Usage & Cost
by sriinnu

Tokens and cost for Claude Code, Codex and 22 more AI coding agents, from local session files.

687 installs/wk local only
Pathmark
by hacksurvivor

Local-first intent and provenance for Codex, Claude Code, Cursor, Gemini CLI, and MCP agents.

656 installs/wk local only

context-doctor — questions

Answers built from our own checks of this server.

Why is there no uptime for context-doctor?
context-doctor runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package context-doctor was installed 1 140 times last week.
How do I connect context-doctor?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls context-doctor straight from npm; nothing to host, nothing to sign up for.
How many people use context-doctor?
The npm package context-doctor was installed 1 140 times in the last week. Week over week that is +23%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is context-doctor open source?
Yes — it is published under the MIT licence, written in TypeScript and 3 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.