The Hidden Token Tax Inside Every MCP Connection
Model Context Protocol (MCP) servers make connecting tools to an LLM look effortless, but they come with a structural context tax: every connected MCP server serializes its entire catalog of tool names, JSON parameter schemas, and usage descriptions into the prompt prefix on every single request. Even if you only ask one simple read-only question, the model still pays to read all 91 tool definitions.
As engineer Albert Olgaard demonstrated, asking the exact same GitHub question with Claude Sonnet 5.5 consumed 1,421 tokens using the native gh CLI compared to 59,417 tokens with the GitHub MCP server enabled—a 42x token explosion on a single turn. On multi-turn workflows like summarizing pull requests, verbose schemas and raw JSON payloads compound across turns to consume up to 80x more tokens.
| Metric | GitHub MCP (91 tools) | Native gh CLI | Difference |
|---|---|---|---|
| Single GitHub question (total tokens) | 59,417 tokens | 1,421 tokens | 41.8x fewer tokens |
| Idle schema tax on unrelated turns | ~58,000 tokens/turn | 0 tokens/turn | 100% eliminated |
| PR summarization loop overhead | Up to 80x baseline | On-demand diff/JSON | Up to 80x savings |
| API endpoint coverage | Manually wrapped subset | Full REST & GraphQL API | No missing endpoints |
Why Native CLIs Beat MCPs for Terminal Coding Agents
- On-demand context loading: CLIs stay completely invisible in the system prompt until Claude or Codex decides to run a shell command, then only the compact command output enters context.
- Full vendor API access: Official CLIs like gh, stripe, vercel, supabase, wrangler, and docker expose every flag, subcommand, and raw API escape hatch (such as gh api) rather than only the 20–90 endpoints an MCP maintainer wrapped.
- Composable Unix pipes: An agent running a CLI can pipe JSON through jq, head, or grep so only the exact 15 lines needed reach the model—avoiding multi-kilobyte MCP response dumps.
- Faster quota survival: On flat-rate Claude Pro/Max or ChatGPT Plus plans, keeping 58K+ schema tokens out of every turn keeps you well below 5-hour rolling rate caps and 100K/200K pricing cliffs.
How to Switch from MCP to Native CLIs in 2 Minutes
- 1Install the official CLI once (for example: brew install gh, npm i -g vercel, or brew install stripe/stripe-cli/stripe).
- 2Authenticate once in your local terminal (gh auth login, vercel login, stripe login) so credentials live in your OS keychain.
- 3Remove or disable the redundant MCP server from your Claude Code or IDE MCP config so its JSON schemas stop loading on every turn.
- 4Add explicit CLI instructions to your CLAUDE.md or AGENTS.md file and ask naturally—for example, "open a PR for this branch."
# Prefer Native CLIs Over MCP Servers - Use the gh CLI for GitHub PRs, issues, CI checks, and API queries. Do not load GitHub MCP. - Use vercel, supabase, stripe, wrangler, and docker CLIs directly via shell. - Pipe large JSON outputs through jq or head so only relevant fields enter context.
💡 Creator Note: Because Claude Code already knows standard CLI flags (and can run `<cmd> --help` on demand), zero schema preloading is required.
When MCP Still Makes Sense (And How to Trim It)
Native CLIs require a local shell and pre-authenticated terminal, so they cannot replace MCP everywhere. Keep MCP for browser or desktop chat clients that lack terminal execution, for governed enterprise OAuth apps like Google Workspace (where Google’s AI Tools Addendum mandates official MCP servers for agent access starting February 2027), or when you front large toolsets with a lazy-loading MCP schema gateway.
Optimize Your AI Prompts & Inference Spend
Audit token waste, test structured prompts in our free Builder, and compare cloud API costs across all major models.
20+ modular templates with 8-part prompt brief auditing and instant token counting.
Model monthly script & B-roll token costs across Gemini, Claude, and GPT-4o.
Pair open weights and free tiers to run automated video pipelines at $0/mo.
Frequently asked questions
Does prompt caching make MCP schema overhead free?
No. Prompt caching cuts repeated schema read prices by up to 90% when prefixes remain byte-identical within the 5-minute TTL, but you still pay full Turn-1 write rates, lose context window capacity on every turn, and pay again whenever caches expire or tools change.
Why did GitHub MCP use 59,417 tokens while gh CLI used 1,421 tokens?
GitHub MCP preloads schemas for roughly 91 tools on every message regardless of whether the prompt needs them. The gh CLI adds zero schema tokens to the prompt and only returns the concise output of the single command executed.
Which developer tools should stay on CLIs vs MCP?
Move developer infrastructure with strong official CLIs—GitHub (gh), Stripe (stripe), Vercel (vercel), Supabase (supabase), Cloudflare (wrangler), and Docker (docker)—to CLIs in terminal agents. Keep MCP for OAuth-gated SaaS connectors in no-shell chat environments.
Inspired by Albert Olgaard’s MCP vs CLI token efficiency benchmark and priced against verified TokenCalc AI catalog rates (2026-11-27).