ai
3 мин
27 ноября 2026 г.
Источник: Dev.to AI Feed

MCP vs Native CLIs: Why Loading 91 Tools Burns 42x More Tokens

vishvaisadev123
vishvaisadev123
RSS AI Ingest
MCP vs Native CLIs: Why Loading 91 Tools Burns 42x More Tokens

Model Context Protocol (MCP) servers make tool integrations look effortless, but they carry a silent token tax: every connected MCP server serializes its entire catalog of tool schemas into every turn—even when you only need one command or ...

Model Context Protocol (MCP) servers make tool integrations look effortless, but they carry a silent token tax: every connected MCP server serializes its entire catalog of tool schemas into every turn—even when you only need one command or none at all. As developer Albert Olgaard highlighted, 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. That is 42x more tokens on a single turn—and up to 80x more on multi-turn workflows like summarizing pull requests. Why Native CLIs Win on Cost, Speed, and Coverage Metric GitHub MCP (91 tools) Native gh CLI Difference Single GitHub question 59,417 tokens 1,421 tokens 41.8x fewer tokens Idle schema tax per turn ~58,000 tokens 0 tokens 100% eliminated PR summarization loops Up to 80x baseline On-demand diff/JSON Up to 80x savings API coverage Manually wrapped subset Full REST & GraphQL API No missing endpoints Zero idle context tax: CLIs (gh, stripe, vercel, supabase, wrangler, docker) only load into context when the agent runs a command. Full vendor API access: Official CLIs expose every subcommand and raw API escape hatch (gh api), not just the 20–90 endpoints someone manually wrapped. Composable Unix pipes: Agents can pipe JSON output through jq, head, or grep before it ever hits your context window. How to Switch in 2 Minutes Install once: brew install gh (or npm i -g vercel, brew install stripe/stripe-cli/stripe) Log in once: gh auth login Add one line to CLAUDE.md: Use the gh CLI for GitHub. Remove the MCP. Ask naturally: "Open a PR for this branch" and Claude runs gh pr create directly. Model your exact MCP schema waste vs. native CLIs with our live calculator and benchmark: MCP vs CLI Token Cost Calculator Full Benchmark: MCP vs Native CLIs (42x Token Cost Math) Claude Code Cost Estimator

Хотите внедрить ИИ в ваш бренд?

Спроектируем и развернем автономных агентов и современный цифровой стек под ваши задачи.

Рассчитать проект