MCP token cost calculator
Paste your mcpServers config and see how much context these servers permanently occupy — too many will crowd out file reading and reasoning.
Not sure what to paste? See the measured token benchmark for 12 popular MCP servers →
Paste config
Accepts JSON wrapped in mcpServers / servers, a single server object, or Codex config.toml ([mcp_servers.x]). Computed locally, never uploaded.
Paste a config, or click “Load sample” to start.
Resident tokens
Per-server cost (highest first)
How it is estimated
~250 tokens per tool (calibrated by real probes): an MCP tool definition carries name, description and the full JSON Schema parameter tree. Probed context7(2), filesystem(14), playwright(25) on 2026-12-06 — measured 236–777 tokens/tool, median ~250.
+40 tokens per server for handshake notes and tool-list prefixes.
Above 10% of context is a red flag: 20,000 tokens at 200K, usually 30+ tools, and the model starts dropping details.
This is an order of magnitude, not an exact figure: a single tool’s JSON Schema ranges from 80 to 150 tokens depending on parameter complexity.
Not sure which to install? Use the builder → · Wrong format? Convert your config →