See where your AI agent's tokens go and stop paying for the ones that do nothing. Local CLI, MCP server, hook and proxy for Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI and Anthropic/OpenAI/Gemini API apps. No API key, no telemetry.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add context-doctor -- npx -y context-doctor~/.codex/config.toml
[mcp_servers.context-doctor]
command = "npx"
args = ["-y", "context-doctor"]
# codex mcp add context-doctor -- npx -y context-doctor~/.cursor/mcp.json
{
"mcpServers": {
"context-doctor": {
"command": "npx",
"args": [
"-y",
"context-doctor"
]
}
}
}.vscode/mcp.json
{
"servers": {
"context-doctor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"context-doctor"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"context-doctor": {
"command": "npx",
"args": [
"-y",
"context-doctor"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"context-doctor": {
"command": "npx",
"args": [
"-y",
"context-doctor"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"context-doctor": {
"command": "npx",
"args": [
"-y",
"context-doctor"
]
}
}
}