MCP vs CLI vs Skills: When a Shell Command Is Enough and When You Need a Server
MCP vs CLI vs skills, measured on our own servers: 14 MCP tools cost 7,553 tokens before a prompt. When a shell command wins and when a server earns it.

This article compares the use of CLI, MCP, and skills in AI agent workflows, analyzing token costs, use cases, and technical trade-offs for developers.
What happened
The article analyzes token costs and technical trade-offs between CLI, MCP, and skills in AI agent workflows. It presents data from the author's servers, benchmarks like the 32x token gap, and explains how on-demand loading optimizes context usage.
Why it matters
Understanding these trade-offs helps developers optimize AI agent performance, reduce context costs, and manage stateful operations effectively in tool integration.
- Prioritize CLI for familiar, stateless commands to minimize token costs.
- Use MCP for tools requiring state, credentials, or structured outputs.
- Leverage skills for contextual guidance without preloading large datasets.
- Implement on-demand loading to avoid unnecessary token consumption.
- Measure tool costs in your specific workflow before choosing a protocol.
The bigger picture
The article influences decisions about tool architecture, context management, and cost optimization for AI agents, particularly in environments requiring stateful operations or credential security.
The article provides a technical framework for choosing between CLI, MCP, and skills, emphasizing context costs, tool requirements, and on-demand loading strategies for AI agent development.
Technical details
- MCP server schemas are loaded per request (7,553 tokens total for 14 tools).
- CLI help texts are loaded only when needed, reducing per-turn costs.
- Skills use declarative rules for activation and can dynamically load MCP servers.
- On-demand capability activation limits active tools to 4 at a time.
- Token counts use OpenAI's o200k_base tokenizer (Claude's tokenizer would vary).
FAQ
Is MCP dead?
No. The article clarifies that improper schema loading (e.g., 32x token costs) is the issue, not MCP itself. On-demand loading keeps it viable for stateful tools.
Which uses fewer tokens: CLI or MCP?
CLI is cheaper for known tools (e.g., 302 tokens for octocode search --help vs. 2,383-2,715 tokens for MCP server schemas).
What's the difference between skills and MCP?
Skills provide instructions (markdown) for tool usage, while MCP offers typed capabilities. Skills can dynamically load MCP servers but serve distinct roles.
Should I convert MCP servers to CLI?
If the tool is stateless and scriptable, ship both. For new projects, the article recommends evaluating tool requirements before choosing a protocol.
How do I optimize token costs?
Measure your toolset's token usage, use on-demand loading, and limit active capabilities to 4 at a time. Avoid preloading unused schemas.
This summary and analysis were generated with AI from the original article and may contain errors. Read the original for the full story.
Read the full story
Originally published by Zentask Blog on Oct 11, 2026.
Comments
Sign in to join the discussion.