r/mcp • u/Status_Ad8999 • 7h ago
i packaged my Claude Code / Gemini / Codex startup context & MCP overlap auditor into a zero-dep CLI (mcp-diet)
Disclosure: I am the author of mcp-diet (MIT licensed, free and open-source).
two days ago i posted about finding 1,587 installed skills (~53k frontmatter tokens) and 3 overlapping browser MCPs (playwright, chrome-devtools, turbo-browser) running at the same time on my machine. a few people asked for the script to check their own configs, so i cleaned it up into a zero-dependency Node.js CLI called mcp-diet (v0.1.0, 30/30 tests passing).
- GitHub: https://github.com/Tthanh2k6/mcp-diet
- run without global install:
npx github:Tthanh2k6/mcp-diet audit
what it checks locally (read-only, no network calls):
- active skills per harness (
~/.claude/skills,~/.gemini/config/skills,~/.agents/skills): counts activeSKILL.mdfiles and estimates the YAML frontmatter tokens loaded at session start (warns above--skills-max 16by default) - MCP server footprint & category overlaps: parses
~/.claude.json,~/.gemini/config/mcp_config.json, and~/.codex/config.toml, compares enabled vs disabled servers, and warns when multiple servers in the same category (browser,database,search,memory,git,desktop) are active at once - always-loaded rule files: measures global and workspace
CLAUDE.md,GEMINI.md, and rules files against a configurable KB limit (default--rules-max-kb 15) - trust-boundary script check: lists executable scripts (
.sh,.ps1,.bat,.cmd,.exe,.vbs) hiding inside active skill directories (--fail-on-scriptsif you want--strictto exit 1 on them) - secret safety: strips all
envvalues during parsing (only countsenvKeyCount) and redacts--api-key,--token, Postgres URLs, JWTs, and common token prefixes as[REDACTED]so you can paste the report without leaking keys
if you use Cursor, Cline, or Windsurf and want their MCP/rules paths added to the auto-discovery list, let me know what paths they use on your OS and i will add them.