CLI vs API vs MCP
MCP's token bloat is a property of the harness, not the protocol: most of Claude Code's 23,132-token per-call overhead is the description of its 27 built-in tools. Choose CLI, API or MCP per job on shape and cost, and scope the token whichever wins.
Latest change · 2026-11-29Opening and standfirst rewritten to carry the argument as it now stands; no new evidence.
▶Judge’s rationale & how this score was produced
Evidence hygiene is still good — every quote and number matches its source page and the unverified 35x/72% benchmark stays footnoted — but the 2026-10-27 revision had to overturn one of the page's own table rows: "tool descriptions in context every turn" was a harness setting, not an MCP property, which Anthropic's Claude 5 guidance (deferred tool definitions, ToolSearch) and an independent three-harness measurement (Claude Code's 27 built-in tools account for ~22K of its 23,132-token per-call overhead) both show. Triangulation now spans vendor, IDE-vendor, Anthropic, an independent benchmark, the r/netsec practitioner corpus and a Nate B. Jones case; the API column is still largely the page's own inference, and the 55K GitHub-MCP figure is kept as a dated data point rather than a current cost.
What would raise confidence: An independent measurement of per-tool-call token cost for the same job done via CLI, MCP-eager and MCP-deferred on one harness, which would replace the footnoted benchmark and quantify the harness-dependence the page now asserts.
Score = 70% LLM judge (four dimensions above, graded by Claude against the cited sources on Tue Oct 27 2026 08:00:00 GMT+0800 (Philippine Standard Time)) + 30% deterministic metrics (source count, outlet diversity, recency). Levels: 85+ High confidence · 70–84 Corroborated · 50–69 Emerging · <50 Exploratory.
CLI vs API vs MCP
The standing charge against the Model Context Protocol is that every loaded server injects its tool list and descriptions into the agent's context on every turn, so that even idle servers cost tokens. An independent measurement of three harnesses, carried on Context Rightsizing, found the cost somewhere else. Claude Code's per-call overhead is 23,132 tokens, and most of that is the description of its 27 built-in tools, not of any MCP server. Claude Code now defers tool definitions as well, loading a schema only when the agent searches for it. The bloat belongs to the harness, not to the protocol.
That matters because the question of how LLM agents should talk to external tools has three answers in this wiki, and the token charge is the main prop of the bluntest. Nate Herk's Printing Press video offers a flat tier list, CLI above API above MCP. "Default to CLI; build one if you have to." MCP loses on tokens: the benchmark he cites puts a CLI at 100% reliability against MCP at 35× more tokens and 72% reliability on harder tasks, though he does not link the original source, so verify before quoting. IBM Technology's answer, in CLI vs MCP (IBM Technology), is to use both: CLI when commands map to the job, MCP when the raw tool gaps are wide or when auth, audit and multiple users matter. Boris Cherny, speaking at Sequoia's AI Ascent, says it does not matter: "To the model, it's just tokens." Pick whatever fits, and fall back on computer use when nothing else exists. Each is right within its scope, so the interface is chosen per job, on shape and cost, and security has to be settled whichever one wins.
Laid side by side, the three interfaces differ on more than tokens.
| Dimension | CLI | API | MCP |
|---|---|---|---|
| Built for | Agents | Code and humans | Tool discovery |
| Output | Short, pre-formatted text (~200 tokens) | Raw JSON, often huge | Tool descriptions plus JSON results |
| Context bloat | None; output is digested before it reaches the agent (a CLI skill's description still costs a few lines) | Full JSON in context | Harness-dependent: eager harnesses pay for every description every turn; harnesses with deferred tool definitions and ToolSearch load only the matched tool's schema |
| Discovery | Lazy (ask the CLI what it does) | Out-of-band (docs) | Eager by default; lazy where the harness defers definitions |
| Auth | One-time; the CLI holds the token | Per request | Per server; the server manages OAuth, refresh, IDs |
| Multi-user and audit | Hard to retrofit | Hard to retrofit | Built in at the server, and only as real as the token scope behind it |
| Backend | Local SQLite mirror possible: no rate limits, no round trips | Network round trip per call | Server must stay running |
| Composability | Pipes and chained commands | Manual | Each tool call independent |
| Cited benchmark | 100% reliability | not benchmarked | 35× more tokens, 72% reliability on harder tasks |
| GitHub MCP server | n/a | n/a | 80 tools ≈ 55K tokens injected per session in an eager harness (mid-2026) |
The last row is IBM's: GitHub's MCP server exposes 80 tools, and an eager harness loads all 80 definitions, about 55K tokens a session, even if the agent uses 1–2 of them. With deferred definitions only the tools the agent searches for are loaded, so the cost depends on the harness, not the server.
The three positions reconcile once each is given its scope. Herk's tier list is right for single-user local development. IBM's nuance applies when the work crosses an enterprise boundary, where auth, audit and multiple users enter. Cherny is right in the long run, as the model gets better at picking. Agent Client Protocol (ACP) turns that situational reconciliation into a structural one. In its framing MCP is the tool layer of a four-standard portability stack: MCP connects agent to tools and data, AGENTS.md carries project rules, Agent Skills carry repeatable workflows (a skill ran unchanged in Codex after being copied from Claude Code), and ACP connects agent to editor. On that view CLI-via-skill and MCP are not rivals. A skill can wrap a CLI or call an MCP tool, and the choice is per job. The source has a vendor interest, since JetBrains ships an ACP registry, but the layering matches what the three positions were each seeing from one layer.
The token charge is one this page itself made when first written, and it was wrong about the cause. First, the reference harness changed. Anthropic's context-engineering rules for Claude 5, set out by Thariq Shihipar in The New Rules of Context Engineering for Claude 5 (Thariq Shihipar) and shipped in the July 24th update to Claude Code, make shift #3 "upfront context → progressive disclosure": context is loaded selectively through skills, deferred tool definitions and ToolSearch. A deferred tool costs its name until the agent searches for it; the schema loads on a match. The lazy-discovery win this page once credited to CLIs is therefore available to MCP-shaped tools in the harness most of the vault's sources use; run /context in Claude Code with several servers loaded and the difference between eager and deferred is visible. Skill systems that load full tool definitions on demand, OpenClaw's approach and this page's trend to watch, landed in July 2026.
Second, the bloat was never MCP-specific. In the three-harness measurement the system prompt proper accounts for only about 1,430 tokens of Claude Code's per-call overhead; in the measurement's own words "most of Claude's tokens is the description of its 27 different tools." Those are built-in tools, not MCP servers. Tool-description cost is generic to tool definitions; what varies is whether the harness loads them eagerly. What survives of the original charge: in any eager harness, and many non-Claude harnesses still are, every loaded server costs tokens every turn, and IBM's 80-tools, 55K figure is the right order of magnitude. Check the harness before quoting the demerit.
APIs have a bloat problem of their own. They return whatever the upstream service returns, often a 100K-token JSON blob when three fields were wanted. A CLI's binary digests the response and emits 200 tokens; the 132K-to-2K compression in the School demo in Herk's Printing Press video is the canonical example.
Shape can favour MCP just as plainly. Ask an agent to read modelcontextprotocol.io, a Next.js single-page app, and the choice of interface decides what happens next. In IBM's demonstration the MCP fetcher makes one call, spends about 250 tokens and has the page in seconds. The CLI route, curl, gets back only the JavaScript bundle. The agent improvises: it strips HTML, hunts for embedded JSON and eventually writes a Python script to reverse-engineer Next.js's streaming format, several minutes and 2000-plus tokens later. "If the agent ever starts reverse-engineering a JavaScript framework just to read a webpage, that's a good sign it picked the wrong one."
So the CLI wins for file operations, git, text processing and scripts, for knowledge already in the model's training data, for composition through pipes, and for single-user local development. The API wins when no CLI exists and writing one would be too much work, or when raw JSON is wanted for downstream processing. MCP wins when the raw tool returns the wrong shape, as with rendered web pages and complex APIs, when auth needs server-side management, and in two enterprise cases that deserve more care than the tier list gives them.
The first is per-user access control and audit trails for an organisation-level deployment, the case IBM makes for MCP. It holds only if the server's tools run under per-tool token scope declared in a registry: "no registry entry, no network access", as the practitioner rule in Agentic Exfiltration has it. Invariant Labs' MCP finding sits in the same exploit class as GitLost, and both a CLI and an MCP tool are the outbound vertex of the Lethal Trifecta. MCP gives you a place to put the control; it does not supply the control. Praveen Akkiraju's CXOTalk conversation draws the same line between granular OAuth through the API and the abstracted version MCP offers, with policy carried in .md files.
The second is being the vendor. DoorDash shipped text ordering and an MCP endpoint on 30 September 2026 so that an order lands whether it comes through DoorDash's own assistant or someone else's agent, a case Nate B. Jones reads as MCP used for distribution rather than integration. His caveat travels with it: "being reachable by an agent… is table stakes. It does not establish why someone ought to keep paying you". Where the paying comes from is the subject of Data, Application and Agentic Layers.
Vendors have noticed. Paul Everitt of JetBrains, in DeepLearning.AI's course on spec-driven development, documents the trend from the vendor side: Context7, which serves up-to-date package documentation and is "the most popular choice" for that job, now offers at install time its MCP server or a CLI with a skill, and the course picks the CLI and skill. In Everitt's words, "MCP servers are still popular, but skills that use code tools like a CLI often accomplish the same purpose more elegantly… People are rethinking MCP because CLI tools can take action with less setup and less context usage." That is independent corroboration, from an IDE vendor on an education channel, of Herk's position for single-developer workflows. It does not address IBM's enterprise auth and audit case, so the reconciliation stands.
Two caveats apply whichever interface wins. A CLI does not bypass upstream rate limits or quotas; the YouTube API's daily comment cap still applies. And a CLI that wraps an auth-gated site still needs credentials stored somewhere, the same secrets-management problem as an API in a different file. Security, in other words, is interface-independent: a CLI holding a token and an MCP server holding a token are both an outbound channel. Pick the interface on shape and cost, and run the Lethal Trifecta test regardless. The agent reverse-engineering a JavaScript framework has picked the wrong interface; the one exfiltrating cleanly through the right interface has been given the wrong token scope.
Revision history · 9 changes
- 2026-11-29 — Opening and standfirst rewritten to carry the argument as it now stands; no new evidence.
- 2026-10-27 — The New Rules of Context Engineering for Claude 5 (Thariq Shihipar) overtakes the MCP context-bloat charge: deferred tool definitions and ToolSearch make it a harness setting; claim withdrawn.
- 2026-10-27 — Context Rightsizing nuances the token row: Claude Code's 23,132-token overhead is mostly its 27 built-in tools' descriptions; bloat is generic to tool definitions.
- 2026-10-27 — Lethal Trifecta and Agentic Exfiltration nuance MCP's access-control and audit advantage: it needs registry-declared per-tool token scope; CLI and MCP are both outbound vertices.
- 2026-10-27 — Agent Client Protocol (ACP) supports reconciling by scope: MCP is the tool layer of a four-standard portability stack, not a rival to CLI.
- 2026-10-27 — The End of the App Era What Comes Next (Nate B Jones) supports a further case where MCP wins: DoorDash shipped an MCP endpoint as vendor-side distribution.
- 2026-10-27 — Confidence re-judged after the revision: evidence 5→4, triangulation 4→5, reasoning 5→4, groundedness 4.
- 2026-09-26 — Full Course Spec-Driven Development with Coding Agents (DeepLearningAI) supports CLI-first for single developers: Context7 offers a CLI with a skill alongside its MCP server.
- 2026-05-09 — Page created; argued context bloat as an MCP property (withdrawn 2026-10-27).