Works with the AI Agents you already use

    MCP Tool Diet: Cut Per-Turn Token Tax & Tool Collisions

    by Badung

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    MCP Tool Diet: Cut Per-Turn Token Tax & Tool Collisions

    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.

    ServerScopeTools (est.)Tokens (~est.)VerdictWhy
    issuesGlobal26~9,800REPLACEgh CLI covers issues, PRs and CI runs at zero startup cost
    filesystemGlobal11~3,900REPLACENative Read/Edit/Grep exist and already duplicate read_file
    postgresProject12~4,400SLIMKeep query + describe_table only
    notionGlobal18~6,300DEMOTENot used in code work; move to project config
    sentryGlobal8~2,600DEMOTEIncident work only
    context7Global2~900KEEP2 tools, high signal

    Projected after diet: 2 servers, ~4 tools, ~4,300 tokens/turn — an 85% reduction.

    Findings

    • [TAX] filesystem and postgres both expose file and row reads; the agent alternated between them twice on the same task yesterday.
    • [HYGIENE] postgres in .mcp.json holds POSTGRES_URL=<redacted, 64 chars> as plaintext.
    • [HYGIENE] notion launches with npx -y and 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 list
    • filesystem → 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.json and ~/.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 them REPLACE: 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 -y launches, deprecated sse transports, and plaintext secrets inside env blocks, reported masked and never echoed.

    How it works

    1. Inventory every config scope — project, user home, host-specific file — and table each server with its transport, launch command, secret hygiene and filter status.
    2. Classify each server as KEEP, SLIM, DEMOTE or REPLACE against four criteria: per-turn tax, native/CLI overlap, allowlist opportunity, and scope.
    3. Report a summary banner (servers, estimated tax, projected reduction), a server-by-server verdict table, and [TAX] / [HYGIENE] findings.
    4. Diff the exact patched JSON or TOML for your host, plus the CLI equivalent for anything replaced.
    5. 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.

    ServerToolsVerdictReason
    firecrawl6SLIMKeep firecrawl_scrape only, for JS-rendered pages
    brave-search2KEEPFast keyword search
    fetch1REPLACERedundant 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Read Files
    Write Files
    Listed14 days ago

    What's inside

    Frequently Asked Questions

    Every enabled MCP server injects its full tool schemas into the prompt on every turn. Six to ten servers typically cost 12,000–35,000 tokens before you type a word, so sessions compact earlier and the agent gets slower and less accurate. The audit prices each server, replaces the ones a CLI already covers, and gives that window space back — often 70–85% of the MCP overhead.

    It follows the SKILL.md standard, so Claude Code, Codex CLI, Cursor, Claude Desktop, VS Code Copilot, Gemini CLI and other compatible agents can run it. It knows each host's config file by name (.mcp.json, ~/.claude.json, .cursor/mcp.json, claude_desktop_config.json, ~/.codex/config.toml) and audits any other MCP server list you point it at.

    Never without your approval. It reads your configs, prints the exact patched JSON or TOML, and stops. You say which parts to apply — or copy the snippet yourself — and only then is a file written. Nothing is deleted silently.

    Yes. The hygiene pass flags plaintext API keys and connection strings inside env blocks (reported masked, never echoed), unpinned npx -y packages that cannot be verified, and deprecated sse transports. It does not execute uncached packages just to count their tools.

    One SKILL.md containing the five-step workflow, the KEEP / SLIM / DEMOTE / REPLACE criteria, the report format, the secret-handling rules and two worked examples. No dependencies, no scripts, no API keys. It is a one-time purchase and updates to the skill are included.

    Token figures are estimates (chars / 4, or ~350–650 tokens per tool schema) unless a manifest can be measured, and measured counts are labelled as measured. Remote servers without a manifest cannot be priced exactly. It only audits config files your agent can read.

    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.