Zero config across 103+ coding agents. No resident background daemons.
mcptoon is a zero-dependency MCP CLI and MCP client for token optimization — tool discovery through a compact name index plus context compression, shrinking MCP tool context by 99.2% (72k → 581 tokens) and skill context by 99.9% (926k → 39 tokens), keeping tool schemas out of your context window.
MCP was designed under the assumption that every capability must be a running daemon server that every agent explicitly mounts. That creates painful configuration drift.
mcptoon callmcptoon serve bridgeInstead of forcing 255 complete JSON schemas into prompt context before conversation starts, mcptoon indexes tools into names-only pointers.
Stop dumping hundreds of full SKILL.md files into agent memory. A single resident pointer plus an offline router resolves tasks in <5ms.
Whether you just chat with coding agents or script automation pipelines, mcptoon handles the plumbing.
When installed, mcptoon automatically injects its official skill (/mcptoon) into Cursor, Claude Code, Windsurf & DSH. You never need to remember CLI arguments — just talk directly:
Scriptable headless CLI with stable JSON output and an mcptoon serve bridge endpoint for local CI, containerized tasks, and air-gapped runtimes:
Everything your AI development workflow needs to stay fast, cost-efficient, and cleanly synchronized.
mcptoon benchsearch covers Smithery and the official MCP registry — 17,000+ servers behind a single commandcall from any language; the same catalog costs 71,929 tokens as full schemas and 581 as a name index (−99.2%, measured with tiktoken cl100k_base)inspect <server> <tool> returns that tool only, so the other 70,000-plus tokens never enter the windowmcptoon bench, using the OpenAI tokeniser rather than a chars/4 guessRecent releases added a self-updating CLI, a background server, a zero-config demo, and a full set of lifecycle commands.
mcptoon upgrade: updates the installed CLI in place. upgrade --check is scriptable (exit 1 = a newer version exists), so updating the 565KB wheel needs no package manager at all.serve --background: an HTTP bridge that outlives the terminal, with --status / --stop. This is the delivery mode that makes savings real — on a measured catalog the gateway path costs 640,606 → 905 tokens.--install-autostart: opt-in logon start via a per-user Scheduled Task or a systemd user unit. Opt-in is deliberate: nothing runs in the background until you ask for it, which is why there is no daemon to babysit.mcptoon demo: spins up its own 11-tool server and shows before/after in ~10s, zero configdemo on an empty machine, so there is no dead endmcptoon bench measures your own catalogopenapi list|call: drives any REST / Swagger API as commands, on the same name-index discipline as MCP — the spec stays on disk and one operation is fetched at a time.graphql list|call: the same shape for GraphQL endpoints; the schema is read once and cached, rather than re-sent on every turn.auth login|creds|status: OAuth (PKCE, client-credentials and DCR) with tokens kept in the OS credential store, never in a config file that ships.bake: saves reusable connections with secrets by reference only — the reason no credential is ever written into a generated file.statusline: a one-line savings badge, safe to run on every prompt — it reports the same 71,929 → 581 token cut the tables above measure, not a projectionactivity / session: an honest log of what routed and how long it took, so any savings claim can be traced back to a real callsavings / credit / mode: milestones and the real delivery mode — mode exists because a fresh install sits in direct mode and saves 0% until the gateway is wired inexec / kb: code sandbox and search inside docs — no daemon and no background process; the 565KB wheel runs and exitsZero intrusive configuration rewrites. Instantly discover and synchronize across all installed agents.
Pure pip install with standard library. Ready instantly on macOS, Linux, and Windows.
Discovers MCP configs and auto-distributes the official /mcptoon skill into all detected agents.
Inspect your ultra-slim catalog. Schemas remain cached on disk until invoked.
Pinpoint relevant skill playbooks or project docs without context flooding.
The MCP token & skill bloat problem is proven by third-party benchmark data.
Skeptical of a synthetic 255-tool sample? The same ~99.9% saving holds on 7 real public MCP servers (209 tools)
measured on a real machine — 640,606 → 905 tokens. Reproduce it with mcptoon bench on your own catalog.
CI-enforced guarantees. No hand-waved performance marketing.
| Attribute | mcptoon Standard | Verification Method |
|---|---|---|
| Runtime Dependencies | Zero (Standard library only, 565KB package) | scripts/check_zero_deps.py enforced in CI |
| Token Measurement Standard | OpenAI tiktoken cl100k_base |
Public benchmark fixtures in benchmark_data.json |
| Skill Routing Latency | < 5 ms (Offline BM25 keyword matching) | Local benchmark assertions in tests/test_skills.py |
| Agent Host Compatibility | 103+ Clients (Claude Code, Cursor, Windsurf, Zed, Cline, Codex...) | Automated end-to-end integration test matrix (42 CLI + 61 serve) |
| Result Compression | TOON Compact Notation (~5.7% to 48.6% extra cut) | Lossless round-trip assertion test suite |
| Supported Operating Systems | Windows 10/11, macOS (Apple Silicon / Intel), Linux (glibc/musl) | GitHub Actions cross-platform test runners |
A background proxy still requires each AI agent to be manually configured with hostnames, ports, and headers. A CLI leverages the universal capability every coding agent already possesses: terminal execution. Agents call mcptoon call directly without any per-agent JSON setup, avoiding background memory leaks and port collisions entirely.
mcptoon provides unified governance for both: for MCP tools, it indexes schemas into names-only pointers (cutting token cost 99.2%) and pulls parameters on-demand. For skills, instead of dumping hundreds of SKILL.md files into agent prompt memory, it installs a 39-token resident pointer and uses an ultra-fast offline BM25 router to pull only the matching skill playbook when needed.
No. mcptoon quickstart automatically detects your installed agents (Cursor, Claude Code, Windsurf, Cline, etc.) and MCP servers, creating a single unified configuration and distributing the official /mcptoon skill into all of them. Add or remove tools in one place, and all agents immediately sync.
Never. mcptoon is 100% local, open-source under Apache-2.0, and contains zero dependencies. All indexing, token counting, and routing run entirely on your local machine.