0 cumulative citations
View corpus contextThe software that wraps AI agents, not the protocol it uses, determines runtime token costs: across seven scaffoldings and five models a single task’s cost varied hugely by scaffolding (up to 139× for one model), while MCP vs CLI comparisons were inconsistent and sometimes irrelevant because agents often ignored the offered interface; MCP runs also carried a higher share of wasted spending when they failed.
Citation observations
Cumulative provider counts captured on specific dates; providers are never combined.
How much an AI coding agent costs to run can depend more on the agent scaffolding that drives it than on the interface through which it reaches its tools. We set out to measure the cost of tool use over the Model Context Protocol (MCP) against tool use over an ordinary command-line interface (CLI), a difference on which published estimates disagree by more than an order of magnitude while resting on practitioner reports that cannot be reproduced. We ran one fixed software task -- six operations against a private online git repository -- across seven agent scaffoldings and five language models, and we verified completion by inspecting the repository state rather than trusting the agent's self-report. The dominant effect was the scaffolding. Two of the seven ship no MCP support at all; they completed every run using only the CLI, which shows that MCP is unnecessary for this class of work, and they were 5.0x to 28x cheaper than the five scaffoldings that do support MCP, comparing CLI runs alone with no MCP server attached anywhere. The effect was largest for a small 27-billion-parameter model running locally, whose cost varied 139x across scaffoldings while it completed the task under all of them. The comparison we set out to make proved unstable: thirteen strictly paired MCP-to-CLI ratios span 0.43x to 29x, with outliers on both sides. The two interfaces separate on the cost of failure, where 12.9 per cent of the money spent on MCP runs bought no completed work against 2.2 per cent on CLI runs, but not on its frequency: failures were equally common in both, in the original runs and in their repetitions alike. Agents frequently ignored the interface they were assigned, so comparisons that do not verify actual behaviour measure an unknown mixture. The harness, the task, the verification and the complete dataset are released as open source.
Summary
Main Finding
The software harness (agent scaffolding) matters far more for token cost than whether model tool access uses the Model Context Protocol (MCP) or a command-line interface (CLI). Differences in scaffolding implementation produced order‑of‑magnitude cost swings; the MCP-vs-CLI effect is real but unstable and heavily conditional on scaffolding, caching and agent behaviour.
Key Points
- Dominant effect: scaffolding choice. For the same task and CLI-only runs, two minimal scaffoldings (pi, Tau) that provide no MCP support were 5.0× to 28× cheaper than the five scaffoldings that do support MCP.
- Large scaffolding variability: a single locally run 27B dense model (qwen3.6-27b) showed a 139× cost range across scaffoldings while completing the task under all of them.
- MCP vs CLI within-scaffolding comparison is unstable: 13 strictly paired MCP-to-CLI ratios ranged from 0.43× (MCP cheaper) to 29× (MCP much costlier). Outliers exist in both directions.
- Cost of failure matters more for MCP: 12.9% of money spent on MCP runs bought no completed work, vs 2.2% for CLI runs. Failures were equally frequent in both arms, but failed runs consumed substantially more tokens (median failed run 181,806 input tokens vs 81,510 for median completed run).
- Agents often ignored their assigned interface; some scaffoldings called CLI tools even when MCP was attached. Measuring declared availability without verifying actual tool calls can misattribute costs.
- Practicalities: MCP catalogues are sent in full on each request (44 GitHub-related tools in the study’s MCP server), inflating input tokens unless caching or other mitigations apply. Caching and delivery method influence the protocol penalty.
- Reproducibility: the authors open-sourced the harness, task, verifier and full dataset (GitHub + Zenodo DOI).
Data & Methods
- Fixed task (single-run goal): six operations against a private GitHub repo — locate an issue, create a branch, apply a patch, commit, open a PR, and report file count. Completion was verified by the repository state (four independent checks: branch exists, file patched, PR opened, file count correct). Repo reset before every run.
- Seven scaffoldings tested: Claude Code, OpenAI Codex, qwen-code, Hermes, opencode (all MCP-capable), plus two minimal scaffoldings with no MCP (pi, Tau) as controls.
- Two experimental arms per MCP-capable scaffolding: MCP arm (official GitHub MCP server attached, 44 tools) vs CLI arm (no MCP server; shell + gh).
- Models: five language models (two OpenAI-hosted, one Anthropic-hosted, two open-weight models served locally). Not every scaffolding used every model; local models were also repeated to measure run-to-run variation.
- Instrumentation: all requests routed through a local proxy that recorded input tokens, cached tokens, tool calls, and schemas per request. Two subscription cells bypassed the proxy due to credential limits; proxy and self-reported usage agreed where both existed.
- Costing: token costs modelled using OpenRouter public per-token rates (snapshot 3 Aug 2026). All cost figures are modelled prices (not actual bills); caching billed as input but cache share reported separately.
- Corrections & repetition: authors fixed a configuration credential error (re-ran affected cells) and repeated local-model cells three times to assess variance (90 extra runs produced, 61 completed).
- Data/publication: harness, verifiers, and full run-by-run dataset released for reproducibility (GitHub + Zenodo DOI).
Implications for AI Economics
- Be skeptical of single-number protocol penalties. The commonly cited MCP token-penalty figures (e.g., "35×") are not universal; the penalty depends strongly on scaffolding implementation, catalogue size, call count, caching, and actual agent behaviour.
- Procurement and cost modelling must include scaffolding and implementation choices, not just model and interface. Two deployments using the same model and the same protocol can differ by orders of magnitude in token cost because of scaffold design.
- Failure cost is economically significant. Systems that increase token consumption on failed attempts (or make failures more expensive) raise operational spending even if failure frequency is unchanged. Benchmarks and SLAs should track waste rates and cost-per-successful-job, not just success rates.
- Small models are more sensitive to interface conventions. If training exposure to MCP-style schemas is sparse, smaller models may perform worse (or require more back-and-forth), amplifying token costs — an important consideration when choosing model size vs. harness complexity.
- Design trade-off: general-purpose scaffolding (rich capabilities/MCP) increases flexibility but can raise running costs compared with minimal, task-specific CLI-based agents. "Harvesting" agents into lean, scriptable tools (per the authors’ prior AAWD argument) can provide substantial cost savings for narrowly specified workloads.
- Measurement best practices: (1) verify actual in-system behavior (tool calls, repository state) rather than trusting agent reports; (2) route instrumentation to capture all sub-agent calls; (3) publish harnesses and datasets to enable reproducible cost comparisons.
- Policy and benchmarking: standardized benchmarks for agent tool use should fix scaffolding implementations, caching policies and verification methods. Otherwise, cross-study comparisons will conflate protocol, scaffolding, and task differences.
If you want, I can extract the full numeric tables (per-scaffolding costs, paired MCP/CLI ratios, failure-cost shares, or the repetition variance) from the published dataset and present them in a concise table for budgeting or modelling.
Assessment
Claims (11)
| Claim | Direction | Outcome | Confidence & Evidence | Details |
|---|---|---|---|---|
| The agent scaffolding had a larger and more stable effect on tool-use cost than whether tools were accessed through MCP or the CLI. Organizational Efficiency | mixed | Input-token cost of completing the software task |
Reading fidelity
high
Study strength
medium
|
n=7
|
| For this software task, MCP was unnecessary: the two scaffoldings without MCP support completed every run using only the CLI. Organizational Efficiency | null_result | Successful completion of the six-operation repository task |
Reading fidelity
high
Study strength
medium
|
n=2
completed every run
|
| The two CLI-only scaffoldings were 5.0× to 28× cheaper than the five scaffoldings that supported MCP, when comparing CLI runs without any MCP server attached. Organizational Efficiency | negative | Modelled cost of completed software-task runs |
Reading fidelity
high
Study strength
medium
|
n=7
5.0× to 28× cheaper
|
| For the locally run 27-billion-parameter model, cost varied by a factor of 139× across scaffoldings, even though the model completed the task under every scaffolding. Organizational Efficiency | mixed | Modelled input-token cost and task completion across agent scaffoldings |
Reading fidelity
high
Study strength
medium
|
n=7
139× variation
|
| Strictly paired MCP-to-CLI cost ratios were highly unstable, ranging from 0.43× to 29× across 13 comparisons. Organizational Efficiency | mixed | Ratio of MCP-run cost to CLI-run cost |
Reading fidelity
high
Study strength
medium
|
n=13
0.43× to 29×
|
| MCP runs had a substantially larger share of spending on failed runs than CLI runs: 12.9% versus 2.2%. Organizational Efficiency | positive | Share of total spending associated with runs that produced no completed work |
Reading fidelity
high
Study strength
medium
|
12.9% of MCP spending versus 2.2% of CLI spending
|
| MCP and CLI failures occurred with equal frequency in both the original runs and the repetitions. Error Rate | null_result | Frequency of failure to complete the verified repository task |
Reading fidelity
high
Study strength
medium
|
equally common
|
| Failed runs consumed more than twice as many input tokens as completed runs at the median: 181,806 versus 81,510. Organizational Efficiency | positive | Median input-token consumption by failed versus completed runs |
Reading fidelity
high
Study strength
medium
|
181,806 input tokens versus 81,510 input tokens
|
| Every failed run cost between 4.7 and 22.9 times as much as a completed run on a scaffolding with no MCP client. Organizational Efficiency | positive | Cost of failed versus completed software-task runs |
Reading fidelity
high
Study strength
medium
|
4.7 to 22.9 times
|
| The repeated local-model dataset contained 90 runs, of which 70 executed and 61 completed the task. Organizational Efficiency | other | Execution and verified completion of repeated agent runs |
Reading fidelity
high
Study strength
high
|
n=90
70 executed; 61 completed
|
| Agents frequently used an interface different from the one assigned to them, so comparisons based only on assigned interface can measure an unknown mixture of behaviors. Task Allocation | negative | Conformance between assigned tool interface and actual tool use |
Reading fidelity
high
Study strength
medium
|
not reported
|