Learn

MCP supply-chain watch: provenance & install scripts

Quick answer. Across 6,346 security-scanned MCP packages in tashan’s nightly index, 3,953 (62.3%) publish without npm CI build provenance, 336 (5.3%) execute a lifecycle script during npm install, and 589 reach remote content. Every count below is derived nightly from public npm and OSV metadata.

What does the latest nightly scan show?

SignalPackagesShare
Security-scanned npm packages6,346of 12,973
No CI build provenance (dist.attestations)3,95362.3%
Published with CI build provenance2,39337.7%
Run an install-time script (postinstall / preinstall)3365.3%
Fetch or serve remote content5899.3%
Known OSV advisories at latest release0latest

An install script or missing attestation is not proof of malice. It marks where code runs automatically or lacks a verifiable link to source.

Which widely used packages run install-time scripts?

Running npx -y <pkg> executes lifecycle hooks before the server starts. These are the highest-adoption scanned packages carrying an install script today:

PackageWeeklyLifecycle scriptEvidence
@wonderwhy-er/desktop-commander996,435node dist/track-installation.js && node dist/npm-scri...dossier
@modelcontextprotocol/inspector496,486node scripts/install-clients.mjsdossier
@azure/mcp166,604node ./scripts/post-install-script.jsdossier
@claude-flow/cli116,688node ./scripts/postinstall.cjsdossier
agentic-flow97,309node scripts/postinstall.js || truedossier
agentdb96,928node scripts/postinstall.cjs || truedossier
@tacticlaunch/mcp-linear92,487node -e "try { require('fs').chmodSync('./dist/index....dossier
cline83,918node ./postinstall.mjs || truedossier
@hasna/todos57,200node postinstall.jsdossier
instar56,238node scripts/fix-better-sqlite3.cjsdossier
agnix47,209node install.jsdossier
@gitkraken/gk44,176node install.jsdossier
@drawio/mcp37,069node src/postinstall.jsdossier
@hasna/mementos30,413node postinstall.mjsdossier
@hasna/domains28,873node postinstall.jsdossier

Many hooks are benign, such as setting executable bits or downloading platform binaries. Inspect the exact command in each dossier before approving it on a developer laptop.

What permissions do scanned MCP servers declare?

tashan extracts declared capability reach from package metadata and tool schemas. High-privilege surfaces are common across developer tools:

SurfacePackagesShare
credentials5148.1%
network4416.9%
database2674.2%
filesystem1842.9%
browser1762.8%
shell651.0%
cloud480.8%

How can I audit my config locally or in pull requests?

Check every local client config without uploading anything:

npx tashan-cli doctor

Or drop the GitHub Action into CI to check .mcp.json, .cursor/mcp.json and .claude/skills on every pull request:

- uses: SerotoLabs/tashan@main
  with:
    fail-on: alert
    comment: true

See CI setup instructions or paste a config in the browser.

FAQ

Does missing CI provenance mean a package is malicious?

No. Most npm packages are still published without Sigstore attestations. Provenance proves a tarball came from a specific CI workflow rather than an untraceable local publish.

Does a postinstall script mean a server is unsafe?

No. Legitimate servers use install scripts to set file permissions or fetch binaries. Because the script runs immediately on install, tashan surfaces the exact command so you can verify it.

How often are these numbers updated?

Every night from live npm registry metadata, GitHub repository state, OSV advisories and the MCP registry.

See the ranked Index ›

tashan Pro$6/mo

This article and every score it links to are free, no account. Check your own config free too. Pro adds the series behind each row, and names a replacement when one is dying.

Start a 7-day trial ›