Auditing the Top 20 Open-Source MCP Servers with leaktap
MCP (Model Context Protocol) lets AI coding tools like Claude Code, Codex CLI, Cursor, and Antigravity CLI call local tool servers for GitHub, browsers, Figma, and databases. Most MCP servers run as local child processes on your laptop (usually started with npx, uvx, or docker run) with access to your local files, shell environment variables, and internet connection.
Every finding below comes from running leaktap (v0.4.3) in two layers across the 20 most-starred standalone MCP server repositories on GitHub (11,960 to 92,074 stars, 629,809 combined stars, excluding SDKs, curated lists, and general platforms with an auxiliary MCP adapter):
- Layer 1 (Static scan via
leaktap scan): Scans each cloned repo offline at a pinned 40-char commit for unpinnednpx/uvx/dockercommands, API keys in JSON configs or CLI flags, pipe-to-shell installers, auto-run hooks, lifecycle scripts, and default-on telemetry code. - Layer 2 (Live wiretap via
leaktap tap): Boots each server insideleaktap tap, runs a standard stdio JSON-RPCinitialize+tools/listhandshake without calling any tool, hashes every returned tool schema (SHA-256), scans tool descriptions for hidden prompt injections, and logs every outboundHTTP CONNECTtunnel and OS socket opened during startup.
Summary Results
In Layer 2, 18 of 20 servers (90%) completed a live stdio handshake inside leaktap tap, exposing 470 live MCP tools (1 to 150 per server). All 470 live tool schemas came back clean on prompt injection.
Check (leaktap Rule IDs) |
Count | Share | Why It Matters on a Developer Machine |
|---|---|---|---|
Non-API outbound HTTPS calls on startup (http-connect, mcp-live-telemetry) |
5 / 20 | 25% | Sent telemetry, checked for updates, or downloaded a 140 to 190 MB browser archive during startup before any tool was called (excludes expected API calls like github-mcp-server calling api.github.com). |
Default-on usage telemetry (mcp-server-telemetry, mcp-undisclosed-telemetry) |
7 / 20 | 35% | Sends usage or crash events externally unless you set an opt-out env var (6 caught statically, 2 with zero mention in root README.md, plus a 7th, oraios/serena, caught live on the wire via serena_usage.php). |
Poisoned live tool descriptions (mcp-tool-poisoning) |
0 / 20 | 0% | Zero hidden prompt-injection instructions or credential-stealing directives across all 470 live tools (18 of 20 servers). |
Live API keys in CLI flags (mcp-cli-arg-secret) |
2 / 20 | 10% | Passes live tokens via --api-key or --figma-api-key inside args, exposing credentials to other local processes through ps aux or /proc/<pid>/cmdline. |
Plain-text secret templates in JSON configs (mcp-plaintext-secret-template) |
6 / 20 | 30% | Setup examples show literal keys inside env or headers (7 of 20 combined with CLI flags). Note that Claude Desktop still lacks ${VAR} interpolation. |
Pipe-to-shell remote installers (mcp-remote-code-exec) |
2 / 20 | 10% | Setup docs pipe a mutable https://.../install.sh URL straight into sh, bash, or PowerShell iex. |
Unpinned packages, :latest tags, or branch installs (mcp-unpinned-package) |
18 / 20 | 90% | Hygiene note: 13 unpinned npx/uvx examples and 5 mutable Docker tags or GitHub branches. |
Full Top 20 Results
Filter the 20 audited repositories by finding category:
| # | Repository | Stars | Lang | Layer 1: Static Rules (Primary File:Line) | Live Tools | Layer 2: Live Startup Outbound Hosts |
|---|---|---|---|---|---|---|
| 1 | modelcontextprotocol/servers |
92,074 | TS | mcp-unpinned-package (README.md:87), plugin-workspace-hook-exec (.claude/settings.json:3) |
16 | None |
| 2 | upstash/context7 |
65,031 | TS | mcp-cli-arg-secret (packages/mcp/README.md:126), mcp-plaintext-secret-template (:694), mcp-unpinned-package (:126), plugin-skill-network (packages/pi/lib/api.ts:43) |
2 | None |
| 3 | ChromeDevTools/chrome-devtools-mcp |
58,057 | TS | mcp-unpinned-package (README.md:77), mcp-server-telemetry (src/telemetry/ClearcutLogger.ts:76) |
33 | None (15-min background batch timer) |
| 4 | DeusData/codebase-memory-mcp |
48,791 | C | mcp-remote-code-exec (README.md:73), npm-lifecycle-script-exec (pkg/npm/package.json:30), mcp-unpinned-package (README.md:591) |
17 | None |
| 5 | microsoft/playwright-mcp |
39,811 | TS | devcontainer-lifecycle-exec (.devcontainer/devcontainer.json:5, dev-only), mcp-unpinned-package (README.md:86) |
25 | None |
| 6 | ahujasid/mcp-for-blender |
34,829 | Python | mcp-remote-code-exec (README.md:46), mcp-broad-filesystem (README.md:356), plugin-compiled-binary, mcp-unpinned-package (README.md:103), mcp-server-telemetry (src/blender_mcp/telemetry.py:314) |
10 | None (PyPI wheel pings Supabase on init) |
| 7 | github/github-mcp-server |
34,553 | Go | mcp-unpinned-package (README.md:276), mcp-plaintext-secret-template (README.md:434) |
46 | api.github.com:443 (expected primary API) |
| 8 | mksglu/context-mode |
34,240 | TS | mcp-unpinned-package (README.md:63) |
9 | None |
| 9 | tirth8205/code-review-graph |
32,830 | Python | mcp-unpinned-package (.mcp.json:3), plugin-workspace-hook-exec (hooks/hooks.json:3,15) |
30 | None |
| 10 | oraios/serena |
31,487 | Python | mcp-unpinned-package (docs/02-usage/020_running.md:238) |
3 | oraios-software.de:443 (serena_usage.php + news), pypi.org:443 |
| 11 | czlonkowski/n8n-mcp |
23,278 | TS | mcp-unpinned-package (docs/CLAUDE_CODE_SETUP.md:72), mcp-plaintext-secret-template (:80), mcp-server-telemetry (src/telemetry/telemetry-types.ts:120) |
7 | None (flushes every 60s or 10 events) |
| 12 | xpzouying/xiaohongshu-mcp |
17,185 | Go | mcp-plaintext-secret-template (README.md:493), plugin-skill-network (skills/post-to-xhs/scripts/image_downloader.py:77) |
HTTP daemon | cdn.one-world.ai:443 (140 to 190 MB browser archive on boot) |
| 13 | googleapis/mcp-toolbox |
16,897 | Go | mcp-unpinned-package (README.md:86) |
1 | api.github.com:443 (release check even on :memory: SQLite) |
| 14 | apify/apify-mcp-server |
16,743 | TS | mcp-unpinned-package (README.md:160), mcp-plaintext-secret-template (README.md:162), mcp-server-telemetry (src/telemetry.ts:3) |
13 | o272833.ingest.us.sentry.io:443 (Sentry), api.apify.com:443 |
| 15 | GLips/Figma-Context-MCP |
16,239 | TS | mcp-cli-arg-secret (README.md:66), mcp-undisclosed-telemetry (src/telemetry/client.ts:11, PostHog with GeoIP on), mcp-unpinned-package (README.md:66) |
2 | None (sends PostHog events on tool call) |
| 16 | CoplayDev/unity-mcp |
16,042 | Python | mcp-plaintext-http (Server/README.md:227), mcp-undisclosed-telemetry (Server/src/core/telemetry.py:152), mcp-unpinned-package (README.md:55), mcp-plaintext-secret-template (Server/README.md:229) |
49 | api-prod.coplay.dev:443 (telemetry), pypi.org:443 |
| 17 | 0x4m4/hexstrike-ai |
13,704 | Python | Clean (0 static MCP/plugin findings) | 150 | None |
| 18 | mrexodia/ida-pro-mcp |
13,506 | Python | mcp-unpinned-package (README.md:62,98) |
Needs IDA GUI | None |
| 19 | hangwin/mcp-chrome |
12,552 | TS | mcp-unpinned-package (README.md:66) |
27 | None |
| 20 | LaurieWired/GhidraMCP |
11,960 | Java | mcp-unpinned-package (README.md:59) |
30 | None |
Key Takeaways & Opt-Out Env Vars
- Why startup traffic matters: Coding clients boot every enabled stdio MCP server on session open just to fetch
tools/list, even if you never call that server. Five of the top 20 opened non-API outbound HTTPS connections before any tool ran:unity-mcp,serena,apify-mcp-server,mcp-toolbox, andxiaohongshu-mcp. - Why static scan and live tap complement each other: Static SDK rules miss custom first-party pings like Serena's
serena_usage.php(caught live on the wire), while live startup windows miss batched or tool-triggered telemetry likeFigma-Context-MCP(PostHog withdisableGeoip: false),chrome-devtools-mcp(15-min Clearcut timer),n8n-mcp(60s flush,PRIVACY.mdnotes default-on telemetry may be used to train ML models), andmcp-for-blender(wheel-only Supabase ping). - CLI-flag credentials:
upstash/context7(--api-key) andGLips/Figma-Context-MCP(--figma-api-key) pass live keys in CLIargs, making them readable by other local processes viaps auxor/proc/<pid>/cmdline.
Telemetry Opt-Out Environment Variables
Drop the relevant entries into your MCP server "env" block to disable default-on telemetry where supported:
DISABLE_TELEMETRY=1
MCP_DISABLE_TELEMETRY=1
SERENA_USAGE_REPORTING=false
FRAMELINK_TELEMETRY=off
N8N_MCP_TELEMETRY_DISABLED=true
CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS=1
BLENDER_MCP_DISABLE_TELEMETRY=1
TELEMETRY_ENABLED=false
DO_NOT_TRACK=1
Audit Your Own MCP Servers & Local Logs
Run leaktap offline (single 6 to 8 MB MIT Rust binary, zero root certificates required):
# 1. Scan local AI chat logs, SQLite state, MCP configs, and plugins (read-only, offline)
npx leaktap@0.4.3
# 2. Preview local log redactions (dry run), then scrub in place if needed
npx leaktap@0.4.3 clean
npx leaktap@0.4.3 clean --apply
# 3. Watch what any MCP server connects to on startup (no root certs required)
npx leaktap@0.4.3 tap --scrub-env --log ~/.leaktap/mcp.jsonl -- npx @org/some-mcp@1.2.3
On macOS or Linux you can also install once with brew install vssinghh/tap/leaktap and run leaktap directly. Full pinned commits, raw JSON data, and reproduction scripts live in docs/mcp-top-20-audit.md.