You are offline

Switched to Home view. Returning to your route when internet connects.

← Back to Knowledge Center
Coding
Published:Nov 28, 2026
•
Updated:Nov 28, 2026
•3 min read

I audited MCP packages for install-time risk : here's the CLI (npx mcp-package-audit)

I audited MCP packages for install-time risk : here's the CLI (npx mcp-package-audit)
Sneha Reddy

Sneha Reddy

Contributor & Platform Mentor

Writes about programming, productivity, and online learning.

Wanted to drop a quick guide on this. Let me know what you guys think!

The problem

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:

Bash
npx mcp-package-audit <package>
npx mcp-package-audit --config

Alias: `npx audit-mcp`

📦 npm: mcp-package-audit

  • 2 usage
  • 3 network / not found
What it checks
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)
Why not "just use Socket / Snyk"?

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.

Real run from my machine

Against a local Next app and my Cursor config:

  • local private app → mostly "missing repo / license" noise (expected)
  • @modelcontextprotocol/server-github deep scan → no critical findings
  • next@16.4.6 meta scan → clean
CI snippet
Yaml
# .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
Honest disclaimer

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.

Links
  • 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.

Comments (0)

No comments yet. Be the first to join the dialogue!