ByteCosts
mcptoon-mcp-gateway-review.mdx

AI Coding Agents

mcptoon Review: One MCP Gateway CLI for Servers, Skills and Tokens

mcptoon is a 565KB, zero-dependency Python CLI that keeps MCP tool schemas and agent skill files on disk instead of in context, exposing a compact name index and fetching full schemas only when a tool is actually called. The project reports 71,929 tokens of tool descriptions compressed to 581 on its 255-tool benchmark, a claimed 99.2% saving, and it doubles as a single config layer that shares one set of servers and skills across Claude Code, Codex, Cursor and roughly 100 other agents. It is free, Apache-2.0, and its own README is unusually explicit about which numbers measure what.

What it is and which cost layer it targets

In vanilla MCP setups, the README argues, every agent injects the full JSON Schema of every installed tool into context and re-sends it every turn. mcptoon attacks that bill at the tool-discovery layer: it holds your whole server catalog and hands the agent a name index instead, then fetches a real schema with mcptoon inspect only when a tool is called. The same trick applies to agent skills, where one resident pointer plus a per-lookup fetch replaces loading every SKILL.md, and to docs, where mcptoon docs feeds one chapter instead of nineteen. As of November 30, 2026 the repo has 448 stars, 27 forks and zero open issues, is Apache-2.0 licensed pure Python standard library, and shipped v0.8.41 on November 26, 2026.

Because it is a CLI, any agent that can run a shell command gets every feature; for clients that only understand MCP, mcptoon serve exposes the whole catalog behind one endpoint in a compact mode that routes the model through manifest, inspect and call instead of raw upstream tools. The README claims support for 103+ client integrations, 42 that run the CLI directly and 61 that mount the serve entry.

How it works

The mechanism is on-demand retrieval, not compression of content you asked for. Tool schemas stay on disk; the agent sees roughly 2.2 tokens per tool of name index on idle, and pays for one inspect per schema it actually uses. Results default to JSON and “saves nothing by default”; opt in with --toon, which re-encodes a result as TOON and measured 5.7% smaller on the project’s mixed sample, ranging 1.8% to 48.6% by result shape. Session dedup turns byte-identical output in one turn into a reference.

The sharing half is sync: it writes one config into every detected client, and skills sync distributes one skill catalog through link-based views (a junction on Windows), so one edit at the source is live everywhere with no second copy to drift. Discovery covers the other direction: mcptoon discover scans the MCP servers you already have, install --search queries 17,000+ entries across Smithery and the official MCP registry live without bundling a catalog, and skills search queries the skills.sh index. According to the README, mcptoon resolves ${NAME} from the environment at request time and retains the template in its config and logs. A missing or empty variable triggers an error that names the variable. The remote endpoint receives the resolved header. Verify the endpoint and use a scoped test credential before connecting it.

A guard layer screens calls for destructive operations, prompt injection and credential leaks; v0.8.41 added an off switch for that screen on the MCP path. Every claim can be re-measured locally with mcptoon bench, which uses real tiktoken accounting on your own catalog.

Install and first run

pip install mcptoon && mcptoon quickstart

mcptoon manifest                      # compact tool catalog (name index)
mcptoon install --search github       # find servers in the registries
mcptoon skills resolve "write git commit message"
mcptoon call <server> <tool> '{}'     # call any tool; add --toon to shrink

quickstart detects your MCP servers, writes client configs, registers the gateway in every agent it finds, and self-installs mcptoon’s own /mcptoon skill. Two cautions straight from the README. First, a fresh install can sit in direct mode, installed but not wired into the agent, and save nothing; run mcptoon mode to check. Second, quickstart lists its proposed takeover changes for you to confirm. By default, the takeover works like this: it routes your existing servers through the gateway and removes their direct entries, because otherwise the agent sees every tool twice and pays more, not less.

Removal is the best-documented part: mcptoon restore drops the gateway entry and puts your servers back exactly where they were, mcptoon off removes only the gateway entry, both preview with --dry, and mcptoon uninstall --dry prints the full removal plan before touching anything.

What it saves: claims versus evidence

The table reports the project’s own tiktoken counts. The available evidence contains no independent token benchmark for mcptoon. Discovery, slim schemas and call results represent different parts of the prompt, so use the row that matches what your client sends.

BillWhat it measuresThe project’s numbers
Tool discoveryWhat the agent loads to know tools exist255-tool synthetic sample: 71,929 to 581 tokens (−99.2%); a 209-tool set of 7 real public servers: 640,606 to 905 (−99.86%); a real 212-tool machine: 640,787 to 914 (99.85%)
Slim schemasmanifest --slim, names plus parameter types8,282 tokens on the 255-tool sample (−88.5%)
Call results--toon re-encoding~5.7% on a mixed sample, 1.8-48.6% by shape; nothing by default
Skill catalogResident pointer plus lookup480 SKILL.md files, 1,572,330 tokens, to 39 resident + 791 per lookup
DocsChapters per question40k to 17k tokens

The main caveat is what the percentage applies to: it is the discovery surface, not your whole bill. If your catalog is 10 tools, the resident schema cost was never 71,929 tokens, and mcptoon bench on your own machine is the right first measurement, which the project itself recommends.

Prompt-cache and extra-turn risk

On-demand loading trades a constant resident cost for occasional lookup turns: each inspect or skills resolve is a tool call round-trip the vanilla path never needed. On the numbers above that trade is enormously favorable at scale, but on a 5-tool setup it can be negative. Second, the takeover step is load-bearing: run the gateway alongside direct server entries and every tool appears twice, increasing the very cost you installed it to cut. Third, the closed issue #60 complains that MCP content was intercepted and could not be turned off; current releases add the safety-screen off switch and mcptoon off, but verify the gateway is not rewriting output you wanted raw. A stable index can qualify for caching when it remains in a matching prefix. If results stay in context, compare provider cache usage with JSON and TOON output.

What the GitHub issues show

Zero open issues as of November 30, 2026, with seven listed releases in November (v0.8.35 through v0.8.41). Closed feature requests from August 11, 2026 include shell completion, container setup, TOML support, error-message improvements, and a Cursor guide. The XDG support request is dated October 2, 2026.

The protocol-correctness fixes tell you where the edges are: #22 where serve dropped structuredContent while tools/list still advertised an outputSchema, which strict MCP clients reject; #23 where mcptoon_health emitted uptimeSeconds: -0.0 and failed strict JSON checks; #19 where spec="auto" deadlocked legacy stdio servers whose probe output filled the unread stderr pipe; and #18 where mcptoon health failed for HTTP transport. UX issues include #36 and #37 on ambiguous install usage and option ordering, and #29 on missing text encodings across seven subprocess call sites.

A cost example (estimate)

Start with the README’s synthetic 255-tool fixture. The reported discovery counts are 71,929 tokens for full schemas and 581 for mcptoon’s index, a difference of 71,348 input tokens. If the full discovery delta recurs on all 50 turns, 71,348 × 50 = 3,567,400 tokens. The estimated gross difference is $7.13 at $2/1M fresh input or $0.36 at $0.10/1M cache-read pricing. Account for the difference in cache-write charges between the two setups, plus gateway schemas and on-demand lookups. See the AI provider pricing index for current claude-sonnet-5-5 rates. Use provider-billed usage across both setups to see which pricing applies and what the extra lookup turns cost. Run mcptoon bench and mcptoon status, which prints the gateway and slim-schema figures side by side from one measurement, for your own catalog.

Who should use it, who should skip it

Use it if:

  • You run many MCP servers or a large skills library and the schema/catalog text is eating real context.
  • You use several agents and are tired of hand-editing mcpServers JSON in each; one config and sync is mcptoon’s cleanest win.
  • You want on-demand loading without trusting a hosted proxy; it is local, offline-first, zero-dependency, and restore/off/uninstall --dry make the takeover genuinely reversible.

Skip it if:

  • Your catalog is small; a handful of tools costs little resident schema, and the inspect round-trips are overhead for nothing.
  • You need every tool’s full schema always available for reliability reasons; on-demand retrieval is the product, so that requirement rules it out.
  • You want independently verified savings; every headline number is the project’s own tiktoken measurement.

How to trial it safely

  1. Back up the client configuration before quickstart. Start in direct mode and check mcptoon mode to see whether the gateway is wired.
  2. Run mcptoon bench on your real catalog before adopting; the savings scale with catalog size and the README says so itself.
  3. Review quickstart’s listed takeover changes before confirming. Use mcptoon restore --dry to preview the rollback.
  4. A/B one week of sessions per the companion guide how to measure coding agent token savings, watching both billed input and any new inspect round-trips.
  5. Keep mcptoon off and mcptoon restore in mind as the rollback; the reversibility is real and scripted.

Alternatives and next reads

For shrinking tool output rather than discovery, see the Pare structured MCP dev tools review and the sqz review. For another single-home approach to skills, keys and memory, see the Contexere review. For the architecture-level trade-offs between proxies, hooks and MCP gateways, see proxy vs hook vs MCP token optimization and MCP tool definition token cost.

Sources

How this note was produced

Drafted with AI assistance from committed ByteCosts pricing snapshots and deterministic cost formulas. Figures are grounded in the linked sources (last updated 2026-11-30). Read our editorial & automation policy, inspect the methodology, or report a discrepancy.

mcptoon Review: One MCP Gateway CLI for Servers, Skills and Tokens. ByteCosts. Updated 2026-11-30. https://bytecosts.com/blog/mcptoon-mcp-gateway-review/

Sources