Blog / How agents load MCP tools

Same job, two agents: what one MCP task really costs in Claude Code and Codex

“How many tokens does an agent use per MCP task?” The honest answer is a range, per job and per app. Here's ours, from 80 live runs, with where the tokens went and why we don't crown a winner.

Leonid Bugaev · Published 21 Oct 2026

The numbers

Codex CLI 0.161.0Claude Code 2.1.301
Correct (strict)34/40 (71–93%)32/40 (65–90%)
Correct, label accepted34/4037/40
Found the tools34/4040/40
Avg input per question218,032209,722
Avg largest request46,794 (18.1% of 258,400)40,910 (4.1% of 1M)
Max largest request63,14070,222
Runs with duplicate calls13/400/40
Results sent to a file by the app040
Codex: input per question
218,032
Claude Code: input per question
209,722

Know what each task costs on your server.

We run your users' jobs in the agent apps they use and report tokens, pass rates with ranges, and the tools that drive the cost.

Measure your MCP

Cost per job (Codex)

One record's detail
301,486 · 7.6 requests
Targeting summary
289,193 · 7.4
My feedback
238,883 · 6.2
Find a company
228,509 · 6.2
Campaign status
209,948 · 6.2
Best group
184,182 · 6.0
Search by job title
178,252 · 5.6
Plan and credits
113,803 · 4.2

Average input tokens and model requests per run, 5 runs each. The order tracks the request count: every request resends the conversation so far.

Where the tokens went

In Codex's largest request, MCP results were about a quarter (11,734 of 46,794 tokens); tool search output and the app's own prompt were bigger. In both apps clear-cut waste was small: 0.2% (Codex) and 0.0% (Claude Code) of the largest request, up to 12.5% and 5.0% counting records nobody used. Claude's figure is lower partly because its oversized results went to a file instead of the context. Breakdown: MCP context window usage.

How each one failed

Go deeper: Agent compatibility across apps, Reduce tool response size, Pass rates with ranges.

Why there's no winner

What the data does show: the cost is driven by your server's shape (result sizes, how many calls a job takes), and both apps pay it. Back to how agents load MCP tools.

How we measured

FAQ

How many tokens does an agent use per MCP task?

On our 99-tool server, a simple read question cost about 210–218k input tokens on average in Claude Code and Codex, from 114k to 301k per job in Codex. Most of that is resent context across 4–8 model requests, and much of it is billed as cached input.

Is Claude Code or Codex cheaper with MCP?

On our runs, about the same: 209,722 vs 218,032 tokens per question. Each app used its own model and tokenizer, so small differences don't mean much.

Why do tokens vary so much between jobs?

Mostly the number of model requests. Each request resends the conversation so far, so a job that takes 7.6 requests costs far more than one that takes 4.2, even if the tool results are similar.

Does OpenCode cost more?

OpenCode 1 averaged 341,615 tokens per question on the same jobs, about 1.6×, because it resends every tool definition with each request.

Know what each task costs on your server.

We run your users' jobs in the agent apps they use and report tokens, pass rates with ranges, and the tools that drive the cost.

Measure your MCP