Wanted to drop a quick guide on this. Let me know what you guys think!
Developers are installing **Model Context Protocol (MCP)** servers into Cursor and Claude every day — often with one `npx` line and almost no review.
That's riskier than a normal npm dependency:
- MCP tools get broad access to your machine, repos, and secrets
honestly, - many servers ship with lifecycle scripts (postinstall, etc.)
basically, - attackers already target AI tooling and assistant configs
Most people either trust the name… or paste a Discord "safe MCP list." That's not a review process.
So I built a small, zero-dependency CLI:
npx mcp-package-audit <package>
npx mcp-package-audit --config
Alias: `npx audit-mcp`
📦 npm: mcp-package-audit
2usage3network / not found
| Area | Signals |
|---|---|
| Registry metadata | missing repo, template description, no maintainers, no provenance |
| like, | Tarball / source |
| Agent configs | Cursor mcp.json / Claude config — npx runtime installs, shell pipelines, secret-like env keys |
It also:
- verifies npm
dist.integrity(SRI) before trusting tarball bytes - caps download / unpack size (gzip-bomb guard)
- keeps zero runtime dependencies (a trust tool shouldn't widen its own supply chain)
Use them too.
This is intentionally narrower:
like, - **MCP-first workflow** (`npx` + `--config`)
- shareable terminal report in one command
- no account, no daemon, no heavy install
Think of it as a pre-enable checklist before you turn on a new MCP server.
Against a local Next app and my Cursor config:
- local private app → mostly "missing repo / license" noise (expected)
@modelcontextprotocol/server-githubdeep scan → no critical findingsnext@16.4.6meta scan → clean
# .github/workflows/mcp-audit.yml
name: mcp-package-audit
on: [push, pull_request]
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npx mcp-package-audit --config --fail-on high
This is a **heuristic scanner**, not a proof of safety. Pin versions. Prefer provenance. Read the code when the blast radius is high.
If it helps you catch one bad `postinstall` before it hits your laptop, it's done its job.
npx mcp-package-audit --help- [npm package](
- [GitHub](
If you try it, tell me what MCP server you scanned — and whether the report was useful or noisy. I'm iterating fast.
Would love to hear how you guys handle this in your own projects.