Server data from the Official MCP Registry
Weigh your MCP servers: token cost, dead servers, risky configs, with a ranked fix list.
About
Weigh your MCP servers: token cost, dead servers, risky configs, with a ranked fix list.
Security Report
mcpdiet and the mcp-pack tools show no data exfiltration, hardcoded secrets, or shell injection, and the npm calls use execFileSync with a validated package name. The main concerns are that the mcpdiet_scan tool launches every configured stdio server on demand, the pack depends on unpinned 'latest' MCP packages, and the mcpseal tarball extraction and file path arguments are not hardened. Permissions mostly match a config-auditing and package-checking purpose. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.
14 files analyzed Β· 8 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"mcpdiet": {
"command": "npx",
"args": [
"-y",
"@hashshabbir/mcpdiet@0.2.0"
]
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
mcpdiet π₯
Your MCP servers are eating your context window. Weigh them.
npx github:goldrusher9009-sketch/mcpdiet
Or from npm: npx @hashshabbir/mcpdiet
One command finds every MCP server in Claude Desktop, Claude Code, Cursor, VS Code and Windsurf, starts each one exactly like your client does, and tells you:
- What it costs β tokens each server burns before you type a word (tool names, descriptions and schemas are re-sent every session)
- What's dead β servers that no longer start but still clutter your setup
- What's risky β hard-coded secrets, unpinned
npxpackages, plain-HTTP remotes, duplicate tool names (shadowing), and tool-poisoning phrasing in descriptions - What to do β a ranked fix list with the tokens you'd save
14,659 tokens (7.3% of a 200K window) 43 tools Grade C
server tools tokens
fat 40 14,400 ββββββββββββββββββ
lean 2 162
dead 0 0 β failed
Every run ends with a one-line brag/shame you can paste anywhere.
Why
Every MCP server dumps its full tool list into the model's context on every session. Three popular servers can cost 30β55K tokens before your first message β slower, pricier, and measurably less accurate tool choice. Security scanners tell you what's malicious; mcpdiet tells you what's wasteful, and covers the basic security hygiene in the same pass.
Use it from your agent
mcpdiet is also an MCP server β and it practices what it preaches (2 tools, <700 tokens).
{ "mcpServers": { "mcpdiet": { "command": "npx", "args": ["-y", "@hashshabbir/mcpdiet", "serve"] } } }
Then ask: "Audit my MCP setup and tell me what to cut."
Options
| Flag | Meaning |
|---|---|
--config <file> | Scan this config instead of auto-discovery (repeatable) |
--static | Don't start servers; config-only checks |
--json / --md | Machine / markdown output |
--timeout <s> | Per-server startup limit (default 20) |
Exit code is 1 on grade F or any high-severity finding, so you can gate CI.
Honest limits
- Scanning starts your configured stdio servers (as your client would), lists tools, and stops them. Remote servers are not measured.
- Token counts are estimates (charsΓ·4), good for ranking, not billing.
- Security checks are heuristics. Use a dedicated scanner for audits.
- Nothing leaves your machine; env values are never printed.
MIT licensed.
CI & teams
Stop bloat and silent tool swaps before they ship:
npx github:goldrusher9009-sketch/mcpdiet --budget 12000 # fail the build over 12K tokens
npx github:goldrusher9009-sketch/mcpdiet --save-baseline mcp.lock.json # fingerprint every tool
npx github:goldrusher9009-sketch/mcpdiet --check-baseline mcp.lock.json # fail if a trusted tool changed (rug-pull alert)
# .github/workflows/mcpdiet.yml
on: [pull_request]
jobs:
mcpdiet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npx -y github:goldrusher9009-sketch/mcpdiet --config .mcp.json --budget 12000 --check-baseline mcp.lock.json
Need audits for your company's MCP setup or a custom connector? Open an issue.
Reviews
No reviews yet
Be the first to review this server!
More Design MCP Servers
Toleno
Freeby Toleno Β· Developer Tools
Toleno Network MCP Server β Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace Β· Developer Tools
Search and install MCP servers from inside your AI client.
mcp-creator-python
Freeby mcp-marketplace Β· Developer Tools
Create, build, and publish Python MCP servers to PyPI β conversationally.
by Lharries Β· Communication
Read, search, and send WhatsApp messages through your AI assistant
FinAgent
Freeby mcp-marketplace Β· Finance
Free stock data and market news for any MCP-compatible AI assistant.
Memory
Freeby Modelcontextprotocol Β· Productivity
Knowledge graph-based persistent memory across sessions
