One hub for every AI agent: add MCP tools and skills once, and every local agent reuses them with zero config. Tool schemas 71,929 -> 581 tokens (-99.2%, measured). Zero-dependency CLI.
pip install mcptoon==0.8.8 Copy PIP instructions
Install 1,000 skills and 1,000 MCP tools locally — and don't worry about the token context. mcptoon manages it all.
Its own compact format cuts the tool context by ~90% (99.2% on a 255-tool sample; run mcptoon status for your own number); no line of config to write for any desktop or command-line agent.
Connects to a 17,000+ MCP tool registry and searches skills on demand — nothing pre-installed, you pick what goes in.
It's just a 327KB native CLI — delete it anytime; keep it, and you never have to configure tools or skills for any agent again.
👉 See it first: landing page · 30-second token calculator · 中文
👉 Or run it: pip install mcptoon && mcptoon bench — it measures what your own tools and skills cost, on your machine.
Every MCP agent (Claude Code, Cursor, Codex, …) loads the full description of every tool and every skill into its context window before it does any work — and re-sends it every turn. On 255 tools that is 71,929 tokens: more than half of a 128K window spent on descriptions, before the first question.
mcptoon keeps those descriptions on disk, not in context, and hands the agent a compact view instead:
Nothing is lost: the full schema and the full skill text stay one command away. Only the context window is spared.
mcptoon is a 327KB, zero-dependency native CLI that manages every MCP tool and agent skill on your computer — and shares them across all your agents with no config written by you.
Those numbers are ours — but "loading every tool schema into context is expensive" is not a claim only we make:
mcptoon is the one you can use today, covering every agent at once.
Install once, and every desktop AI you have — Claude Desktop, Claude Code, Codex, Cursor, Windsurf, Cline, VS Code Copilot and any other agent — shares all the tools and skills you already have. You write nothing in any agent's config.
Script it. mcptoon is a plain CLI with stable JSON output and an mcptoon serve MCP endpoint — wire it into your own agent, CI, or app.
Measure your numbers: pip install mcptoon && mcptoon bench — it reports your own catalog, not the fixed 255-tool sample below (that sample's method is in docs/tiktoken-benchmarks.md).
Skills work the same way: 926,232 tokens of SKILL.md text → 39 resident + 501 per lookup (−99.9%). Call results shrink a further ~6% with --toon (shape-dependent).
You have a desktop AI — Claude, Codex, Cursor, Windsurf, Cline, VS Code Copilot. Today, adding a tool or a skill means hand-editing that agent's JSON. mcptoon removes that step:
pip install mcptoon && mcptoon quickstart quickstart finds your MCP servers, writes your config, and registers mcptoon in every agent it detects. (Skip quickstart and the first command you run still self-heals: it installs mcptoon's own skill into each agent and builds the skill index, once per machine.)
Add tools and skills in one place — here, not in each agent.
mcptoon install --search github # find and install any MCP server mcptoon skills search "make a PDF" # find a skill by what it does Use them from any agent. Your agent runs mcptoon like any other command — no config, no restart. See Works with every AI agent.
Want a head start? Four built-in starter packs — essentials, web-research, code-review, docs — stand up a working toolset in one command:
mcptoon install --pack essentials Path 2 · I build with MCP / agents mcptoon is a plain CLI with scriptable output, plus an MCP endpoint when you want one.
mcptoon manifest --format json # machine-readable tool index mcptoon call '{}' # call any tool, JSON or --toon output mcptoon serve # expose every configured server behind one MCP endpoint Stable output — JSON by default, --toon for smaller results (shape-dependent, 5.7% on a mixed sample), --format mcp to export standard MCP JSON. mcptoon serve — stdio or HTTP, connection pooling, per-agent keys, for clients that insist on a proxy. Zero dependencies — pure Python standard library, so it drops into any environment (CI, containers, air-gapped). Full reference: DEVELOPERS.md and All commands.
pip install mcptoon # pure stdlib, 327KB, zero dependencies # One command: find your MCP servers, write your config, register the gateway # in every agent you have, and show you what it found: mcptoon quickstart # See every tool available (names-only by default; 255 tools cost 581 tokens): mcptoon manifest # Call a tool (JSON output by default; add --toon to save more): mcptoon call everything echo '{"message":"hi"}' quickstart is also what makes mcptoon visible: it writes mcptoon serve into each agent's config as the reserved server mcptoon, so your agent can see mcptoon itself. Already synced? Re-register with mcptoon sync --self (plain mcptoon sync only writes your servers); check the state any time with mcptoon status.
And it is fully reversible. The install registers the gateway, and by default quickstart also takes over — it routes your existing servers through the gateway and removes their direct entries (that is the mode that actually saves tokens). It is a listed, confirmed step, and it is undoable: mcptoon restore drops the gateway entry and puts your servers back exactly where they were. Anything you added to a config afterwards is left untouched. mcptoon off is the lighter switch — it removes only the gateway entry and leaves your servers where they are. Preview either with --dry, and preview the complete removal plan with mcptoon uninstall --dry (it prints exactly what it will remove first).
Don't want to install yet? Watch it work instead (needs Node):
uvx mcptoon demo --quick It boots the official "everything" reference server, calls one tool, and prints the token math on your screen — no API key, none of your servers, nothing written to disk.
The full schema is compressed to a name index. When you need one, mcptoon inspect fetches its real parameters, then call runs it. You pay for a listing, not for every turn.
No more loading the whole catalog. A single pointer line stays resident (39 tokens) and one lookup returns the most relevant skills (501 tokens). Views are links (a junction on Windows, no admin needed), so one edit at the source is live everywhere and there is no second copy to drift.
Install mcptoon once and every AI on the machine gets all your tools and skills. Add more later and it is live immediately — no agent restart, no per-agent JSON.
mcptoon install brave-search --npm @modelcontextprotocol/server-brave-search mcptoon install my-tool --pip mcp-my-tool mcptoon install remote-api --url https://example.com/mcp mcptoon add my-server --stdio npx -y @any/mcp-package mcptoon install --list # see what's installed mcptoon install --remove brave-search # uninstall one One command per server, from npm / pip / HTTP. Or let mcptoon scan what you already have: mcptoon discover.
A remote server that needs a token reads it from the environment, so no credential is ever written to disk:
mcptoon install remote-api --url https://example.com/mcp \ --header 'Authorization: Bearer ${BAIZHI_TOKEN}' # BAIZHI_TOKEN set in your environment ${NAME} is resolved at request time, so the config, the generated handler and every log keep the template — rotate the variable and the next call uses the new value, with no reinstall. A missing or empty variable fails loudly, naming it, never as an empty header.
On a new machine the first question isn't "how do I save tokens", it's "which tools do I even want". The old answer is to hunt GitHub for mcpServers snippets and hand-copy them into JSON.
mcptoon ships no tools and bundles no catalog. It queries the upstream registries, so you search for exactly what you need:
mcptoon install --search github # search, list only — nothing installed mcptoon install --search postgres mcptoon install github # search and install Results carry a ✓ (registry-verified), a type tag (npm / pypi / hosted / remote) and a call count. Data comes from two upstreams, queried live and never stored:
Why nothing is bundled: a built-in list would need a release to update and would pull someone else's source into your supply chain. mcptoon stores only a pointer — the search writes one line into your own ~/.mcptoon/config.json; third-party source never lands inside mcptoon.
mcptoon sync # push the new tools to every detected agent mcptoon manifest # see every tool (name index, the cheapest view) How to read a result: the index mixes official @modelcontextprotocol/* servers with packages individuals publish. A ✓ means the registry verified the entry — your cue to read the source before you hand it credentials.
The skills half: skills search queries the open skills index (skills.sh) — find a skill by what it does, then install it with skills add . mcptoon installs the repos you point it at — the catalog is the open ecosystem itself.
Starter packs: if you'd rather not pick tool-by-tool, four built-in packs — essentials, web-research, code-review, docs — each bundle a few tools plus a ready-made prompt. mcptoon install --packs lists them; mcptoon install --pack essentials installs one. The two research packs need no API key.
mcptoon saves tokens in three separate places. Comparing the numbers across them is meaningless.
There are two ways to read "how much does this save?", and they answer different questions. The gateway figure — full schemas versus what the agent actually loads under the default compact exposure — is what installing mcptoon buys, and it is the honest headline (89% on the machine this was written on). The slim-schema figure (same tools, terser descriptions) is the smaller, secondary claim (24%), and it is what manifest --slim buys. mcptoon status prints both, side by side, from one measurement, so the two can never drift apart.
mcptoon manifest with no flags is this tier. Want more? --slim (names plus param types, 8,282 tokens, −88.5%) or --full (the complete schema).
This bill comes due after a tool returns. mcptoon call prints JSON by default and saves nothing by default. Add --toon to shrink the result.
mcptoon skills manifest # 39 tokens, resident mcptoon skills resolve "make a PDF" --k 5 # 501 tokens, the 5 most relevant One table, all three, on the machine this README was written on:
The fixed headline benchmark — a synthetic sample of 255 tools across 50 servers, tiktoken cl100k_base. It is not your catalog; run mcptoon status to see your own numbers:
Measure your own catalog with mcptoon bench (it reports your tools, not this fixed sample). The exact three-format table above is reproducible too — no clone needed:
mcptoon manifest # populate the schema cache python -m mcptoon.bench_tokens # the same JSON / --slim / --compact counts, your tools Method and caliber: docs/tiktoken-benchmarks.md.
pip install mcptoon Linux (Debian/Ubuntu 23.04+, and any distro that follows PEP 668), and Homebrew Python on macOS. A plain pip install into the system Python is refused there with error: externally-managed-environment. That is the distro protecting itself, not a problem with mcptoon. Install it the clean way instead:
pipx install mcptoon # isolates the CLI; recommended # or, into a virtualenv you control: python3 -m venv ~/.mcptoon-venv && ~/.mcptoon-venv/bin/pip install mcptoon pip install --break-system-packages mcptoon also works, but it writes into the system Python — prefer pipx or a venv. On Windows, pip install mcptoon just works.
# Run without installing (needs Node) uvx mcptoon demo --quick # Isolated CLI install (avoids the PEP 668 error on Linux / Homebrew Python) pipx install mcptoon # From source (for development) git clone https://github.com/activeing123/mcptoon.git cd mcptoon pip install -e . --no-build-isolation # Claude Code plugin /plugin marketplace add activeing123/mcptoon Works with every AI agent mcptoon is a CLI tool — a manager, not a proxy — not a client library. Your agent doesn't connect to MCP servers; it runs mcptoon commands. So the config is written once and shared:
# Agent needs GitHub access mid-task? It just runs: mcptoon add github --url https://api.githubcopilot.com/mcp/ # Done. No JSON editing. No restart. No lost context. mcptoon serve is the other direction: run all your configured servers behind one MCP endpoint, with connection pooling and per-agent keys, for clients that insist on a proxy.
MCP's premise is that every capability is a server your agent must be configured to reach — which is why one new tool means editing per-agent JSON in a different format for each, restarting everything, and re-paying the full schema cost in every agent.
A command line is the one interface every agent already has. And the form factor is measurably cheaper on its own, before mcptoon does anything:
If you genuinely need the proxy form, mcptoon serve is exactly that — all configured servers behind one MCP endpoint.
mcptoon quickstart # one-shot start (discover + configure + register the gateway) mcptoon discover # scan this machine for MCP servers (--write to keep, --health to probe) mcptoon import # import servers from Claude Desktop / Cursor / Cline / Windsurf mcptoon init # create a sample config (--auto to discover and fill it) mcptoon list # show configured servers mcptoon manifest # all tool names (compact by default; 255 tools = 581 tokens) mcptoon manifest --slim # names + param types (8,282 vs 71,929 = −88.5%) mcptoon inspect # inspect one tool's schema mcptoon search # search tools across servers mcptoon call '{"args":"here"}' # call a tool mcptoon add --stdio|--http # add any MCP server mcptoon remove # remove a server mcptoon install --npm|--pip|--url # install + auto-generate handler mcptoon install --search # search the live registries (nothing installed) mcptoon update # refresh each server's cached tool surface; report what moved mcptoon plugin install # install an Agent Plugins 1.0.0 plugin mcptoon sync # sync native config to every detected agent mcptoon health # health-check every MCP server mcptoon serve # run as an MCP server (stdio/HTTP) mcptoon skills list # list the skill catalog (--usage adds hit counts) mcptoon skills sync # distribute a skill catalog to every agent's folder mcptoon skills resolve " " # BM25 shortlist of skills (offline, no LLM) mcptoon bench # prove the savings on this machine (tools + skills, one table) mcptoon demo # one command, live demo on your machine mcptoon demo-server # the same proof with zero downloads (11 stdlib tools) mcptoon doctor # self-check: Python, config, connectivity mcptoon status # one screen: what's configured, gateway wired, tokens saved mcptoon stats # token-savings dashboard (vs raw JSON) mcptoon report # the whole savings account: tools + skills + cumulative mcptoon usage # local call statistics mcptoon footer-facts # one line of savings for a chat footer (never blocks) mcptoon config # show gateway settings (footer, welcome, lang) mcptoon toggle # enable/disable a single tool (--list to show all) mcptoon policy # per-tool compression policy (raw / toon / slim) mcptoon completion ps # shell completion (bash/zsh/fish/powershell) mcptoon off # remove the gateway entry from your agents (reversible) mcptoon restore # drop the gateway and put your servers back mcptoon uninstall # full cleanup — prints the plan first (--dry to preview) Full reference in DEVELOPERS.md.
All optional; the default is already the leanest tier.
Why compact by default? Choosing which tool to use only needs names (581 tokens for 255 tools); parameter detail matters at call time and is fetched on demand. Defaulting to full schemas would hand the 99.2% right back.
The rule for agents: use manifest to choose, inspect before you call. Measured on 41 live tools: an agent guessing arguments from names alone lands ~10% valid calls, while one that runs inspect once for the 2–3 tools a turn actually uses hits 100% — identical to injecting every schema, at a fraction of the cost.
Three guards run on every tool result before your agent sees it:
Scope, in one line: mcptoon is an index and a config manager — it points you to each tool's own source, which you can review on its own terms.
Who builds this: mcptoon is an independent third-party project maintained by @activeing123. It is not affiliated with Anthropic.
git clone https://github.com/activeing123/mcptoon.git cd mcptoon pip install -e . --no-build-isolation pip install pytest pytest-cov python -m pytest tests/ -v # 1785 passed, 2 skipped Three hard rules: zero dependencies (CI-enforced), new behavior ships with tests, Windows is a first-class target. New here? Start with CONTRIBUTING.md and DEVELOPERS.md.
The codebase: 24,473 lines of Python across 43 modules, zero third-party dependencies.
mcptoon is an independent third-party MCP client, not affiliated with Anthropic.
If mcptoon cut your context bill, star it — that's how other builders find small tools.
mcp cli token-efficient model-context-protocol agent llm
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




