Tool
MCP vs CLI Token Cost Calculator
Estimate how many tokens your Claude Code sessions carry before the first prompt under three ways of loading tools, and what that startup prefix costs a team each month at Claude API list prices. The defaults reproduce the measured setup and worked example in our MCP vs CLI token-cost decision record. Every output is an estimate built from the assumptions you set below, not a bill.
Estimated startup-prefix cost by loading strategy
1,050 sessions a month (10 developers x 5 sessions a day x 21 working days) on Claude Opus 5.5, 5-minute cache writes, 100% cache hit rate.
| Loading strategy | Startup tokens per session | Prefix tokens sent per session | Estimated cost per session | Estimated cost per month |
|---|---|---|---|---|
| MCP with deferred tool search (the default) | 29,800 | 1,490,000 | $0.44 | $463 |
| MCP with tool search off | 407,000 | 20,350,000 | $6.02 | $6,325 |
| CLI tools and skills, no MCP servers | 22,700 | 1,135,000 | $0.34 | $353 |
Estimated monthly cost: MCP with deferred tool search (the default) $463; MCP with tool search off $6,325; CLI tools and skills, no MCP servers $353.
How the estimate is calculated
cost per session = P x (w + (R - 1) x (h x r + (1 - h) x w)) / 1,000,000
cost per month = cost per session x developers x sessions per day x working days- P: startup tokens for the strategy, from the table above.
- w: cache write rate, $5 per million tokens for Claude Opus 5.5 at the 5-minute lifetime.
- r: cache read rate, $0.20 per million tokens.
- R: requests per session that re-send the prefix, 50.
- h: cache hit rate, 100%. A miss re-bills the whole prefix at the write rate.
The prefix is written to the cache on the first request and read from it on later ones. At a 100% hit rate this is the formula in the decision record's worked example, which with the defaults gives $0.44 a session and $463 a month with tool search on, and $6.02 and $6,325 with it off. Like that example, the calculator leaves out conversation growth, output, thinking and idle cache expiry. On a subscription these tokens draw down plan usage instead of an invoice.
| Model | Base input | 5-minute cache write | 1-hour cache write | Cache read | Output |
|---|---|---|---|---|---|
| Claude Opus 5.5 | $4 | $5 | $8 | $0.20 | $20 |
| Claude Sonnet 5.5 | $2 | $2.50 | $4 | $0.10 | $10 |
| Claude Haiku 5.5, prompts up to 100,000 tokens | $0.10 | $0.125 | $0.20 | $0.01 | $0.50 |
| Claude Haiku 5.5, prompts over 100,000 tokens | $0.50 | $0.625 | $1 | $0.05 | $2.50 |
Where the default figures come from
- 29,800 and 407,000 tokens are /context totals measured on October 20, 2026 with Claude Code 2.1.285, claude-opus-5-5, ten MCP servers exposing 395 tools and 139 skills, with tool search on and off. See the measurement setup.
- A reproducible check is the open-source claude-code-context-benchmark harness (MIT), which measures /context against a synthetic MCP server. Its reference run on November 24, 2026 (Claude Code 2.1.331) held startup at 25,900 tokens from 0 to 300 synthetic tools with tool search on, and added about 408 tokens per synthetic tool with it off. It is a separate synthetic setup, and the calculator's defaults do not use it.
- 22,700 tokens for CLI tools and skills is arithmetic, not a measurement: the 29,800 total minus its 4,300-token MCP tools row and 2,800-token MCP server instructions row. The decision record explains that a CLI adds no per-tool listing because commands run through the built-in Bash tool.
- 280 and 906 tokens in count mode are averages from the same run: 2,800 tokens of server instructions across ten servers, and 358,000 tokens of tool definitions across 395 tools. Six tools still loaded in full with tool search on.
- 10 developers, 5 sessions a day, 21 working days and 50 requests a session are the decision record's illustrative assumptions, not measurements. Replace them with your own.
- Prices are the list rates in the pricing architecture guide and the model routing and prompt caching guide, with no fast mode, data-residency multiplier, discount or tax.
Measure your own baseline with claude -p "/context" on the machines and routes your team uses: a gateway, a HIPAA configuration or Microsoft Foundry on Azure can turn tool search off without anyone choosing it. The Claude Code architecture cheatsheet collects the related settings, and the CLAUDE.md budget checker sizes the instruction files that share the same startup prefix.