ContextTax

PavelTkachenk0/ContextTax
★ 5 stars C# AI/LLM Updated 5d ago
Measure the context-window tax an MCP server charges your AI agent — the real token cost of its tool schemas + responses. Ground truth (Anthropic count_tokens) or keyless estimate. Cross-platform single-file CLI.
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "contexttax": {
      "command": "npx",
      "args": [
        "-y",
        "PavelTkachenk0/ContextTax"
      ]
    }
  }
}

Topics

ai-agentsanthropicbenchmarkclaudeclicontext-engineeringcontext-windowllmmcpmodel-context-protocoltaxtoken-countertokens