Works with the AI Agents you already use
MCP Tool Diet: Cut Per-Turn Token Tax & Tool Collisions
by Badung
Audits MCP server configs, pasted or on disk, for per-turn token tax, tool collisions and risky launches, then hands back a lean diff built from CLI replacements and tool allowlists.
$3.99
MCP Tool Diet: Cut Per-Turn Token Tax & Tool Collisions
Example session with this skill installed
My Claude Code sessions compact after ~12 turns. Audit my .mcp.json and ~/.codex/config.toml and tell me which MCP servers are costing the most per turn, and what to cut.
- Read your context and instructions
- Compiled the mcp tool diet
MCP Tool Diet Report — api-platform
You are carrying 6 servers / ~74 tools ≈ 27,900 tokens per turn (~14% of a 200k window) before your first message. Two of those servers are pure CLI overlap.
| Server | Scope | Tools (est.) | Tokens (~est.) | Verdict | Why |
|---|---|---|---|---|---|
issues | Global | 26 | ~9,800 | REPLACE | gh CLI covers issues, PRs and CI runs at zero startup cost |
filesystem | Global | 11 | ~3,900 | REPLACE | Native Read/Edit/Grep exist and already duplicate read_file |
postgres | Project | 12 | ~4,400 | SLIM | Keep query + describe_table only |
notion | Global | 18 | ~6,300 | DEMOTE | Not used in code work; move to project config |
sentry | Global | 8 | ~2,600 | DEMOTE | Incident work only |
context7 | Global | 2 | ~900 | KEEP | 2 tools, high signal |
Projected after diet: 2 servers, ~4 tools, ~4,300 tokens/turn — an 85% reduction.
Findings
[TAX]filesystemandpostgresboth expose file and row reads; the agent alternated between them twice on the same task yesterday.[HYGIENE]postgresin.mcp.jsonholdsPOSTGRES_URL=<redacted, 64 chars>as plaintext.[HYGIENE]notionlaunches withnpx -yand no version pin.
Ready-to-apply diff (~/.codex/config.toml)
# remove [mcp_servers.issues], [mcp_servers.filesystem], [mcp_servers.notion] from global
[mcp_servers.postgres]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-postgres@0.6.2"]
enabled_tools = ["query", "describe_table"]
# POSTGRES_URL: export in shell env and reference as ${POSTGRES_URL}
CLI equivalents
issues→gh issue list --state open/gh pr listfilesystem→ native Read / Edit / Grep
Next: reply apply postgres only and I will patch that one block after showing the exact diff. Nothing on disk is touched until you say which parts to apply.
Connects securely to your tools. The creator never sees your data.
About this skill
Your MCP setup is charging rent on every turn
Every enabled MCP server injects its full tool list — names, descriptions and JSON inputSchema objects — into the prompt before you type a single word. Six to ten connected servers routinely cost 12,000–35,000 tokens per turn, often 10–20% of the active window. That is context you never get back, and it is why long sessions hit compaction early.
It also makes agents pick the wrong tool. When three servers expose search, fetch or read_file, the agent spends turns guessing which one you meant.
MCP Tool Diet audits your real configuration files, shows which servers are charging the most, and returns a lean diff you can apply in one paste.
What it does
- Token tax audit — inventories every server in
.mcp.json,~/.claude.json,.cursor/mcp.json,claude_desktop_config.jsonand~/.codex/config.toml, then prices the per-turn schema cost of each one. - Tool collision detection — flags overlapping verbs (
search,fetch,read_file,query) across servers, the most common cause of wrong-tool calls. - CLI replacement — finds servers your shell already covers (
gh,git,psql,sqlite3, native file tools) and scores themREPLACE: zero startup tokens, same capability. - Allowlist slimming — when you need 2 tools out of 25, proposes
enabled_tools(Codex) or a scoped tool permission set (Claude Code) instead of throwing the server away. - Scope demotion — moves Figma, Sentry, Stripe, Notion or Kubernetes servers out of global always-on config into project-local or on-demand profiles.
- Supply-chain hygiene — unpinned
npx -ylaunches, deprecatedssetransports, and plaintext secrets insideenvblocks, reported masked and never echoed.
How it works
- Inventory every config scope — project, user home, host-specific file — and table each server with its transport, launch command, secret hygiene and filter status.
- Classify each server as
KEEP,SLIM,DEMOTEorREPLACEagainst four criteria: per-turn tax, native/CLI overlap, allowlist opportunity, and scope. - Report a summary banner (servers, estimated tax, projected reduction), a server-by-server verdict table, and
[TAX]/[HYGIENE]findings. - Diff the exact patched JSON or TOML for your host, plus the CLI equivalent for anything replaced.
- Stop at the approval gate. No config file is rewritten until you have seen the diff and said which parts to apply.
Why not just ask the agent yourself
A general agent treats "more servers" as "more capable" and has no reason to price the schemas it is carrying. It will read your config, summarize it, and miss the arithmetic. This skill is a fixed policy: measure first, classify against explicit criteria, label every estimate as an estimate, redact every secret, and hand over a diff instead of editing your files.
Who it is for
- Claude Code, Codex CLI, Cursor, Claude Desktop and any other SKILL.md-compatible agent
- Developers whose sessions compact before the task is done
- Anyone collecting MCP servers faster than they retire them
- Teams auditing shared config files for hardcoded keys
What's inside
A single SKILL.md — the workflow, the classification criteria, the output format, and two worked examples. No dependencies, no API keys, no network calls.
Honest limitations
Token figures are estimates (chars / 4, or ~350–650 tokens per tool schema) unless a schema manifest can be measured, and measured counts are labelled as measured. Remote servers without a manifest cannot be priced precisely. The skill reads configuration files; it does not launch uncached servers or scan your network to count tools.
A second session, start to finish
You: "Cursor keeps picking the wrong search tool. I have brave-search, fetch and firecrawl connected."
What comes back: .cursor/mcp.json — 3 servers, 14 tools, ~est. 6,300 tokens per turn. brave_web_search and firecrawl_search expose near-identical descriptions, and fetch overlaps firecrawl_scrape — that overlap, not the model, is where the wrong-tool calls come from.
| Server | Tools | Verdict | Reason |
|---|---|---|---|
firecrawl | 6 | SLIM | Keep firecrawl_scrape only, for JS-rendered pages |
brave-search | 2 | KEEP | Fast keyword search |
fetch | 1 | REPLACE | Redundant with firecrawl_scrape and curl |
Result: 3 overlapping servers (14 tools) become 2 non-overlapping ones, the search/scrape ambiguity is gone, and ~2,800 tokens per turn come back.
Next: approve the allowlist and the skill writes the patched .cursor/mcp.json — or hands you the snippet to paste yourself.
Pasted config, or no config at all
You should not have to dig up your files before you get an answer. Paste a .mcp.json, ~/.codex/config.toml or claude_desktop_config.json snippet straight into the chat and it is audited in place, with no file paths involved.
If there is nothing to read, it does not stop to ask for your config. You still get a complete Token Tax & Verdict matrix for the servers most people run (github, filesystem, postgres, notion, sentry, firecrawl, context7), a lean template with enabled_tools allowlists, and the exact shell command that dumps your local MCP configs — send that dump back whenever you like and the same section becomes a diff tailored to your machine.
Nothing waits for a second message either: a verdict table and summary banner land on the first reply, every number is labelled ~est. unless it can be measured, every secret stays masked, and no config file is written until you approve the diff.
Token figures are estimates (chars / 4, or ~350-650 tokens per tool schema) unless a manifest can be measured, and measured counts are labelled. Remote servers without a manifest cannot be priced precisely. It will not launch uncached npx/uvx servers just to count tools, and it never edits a config file before you approve the diff. It audits config files the agent can read, or a config you paste into the chat; with neither, it returns the reference matrix, the lean template and the dump command rather than asking for your files.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 14 days ago
Nothing to install. It runs in your AI agent.
Nothing to install: no dependencies, no API keys, no network calls. Drop SKILL.md into your agent's skills folder. It reads your MCP configs and shows a diff — nothing is edited until you approve it.
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.