Agents Index

NPMScan

Online

Detect malicious or vulnerable npm packages: registry search, OSV.dev and GitHub advisory lookups

Visit publisherConnectJSON

What it can do: 23 tools

  • search_packages read-onlySearch the npm registry by name or keywords. Each result includes its current weekly/monthly download counts, dependentsCount (how many other npm packages depend on it), topPackagesRank (position among npmscan's own top-
  • get_package read-onlyFetch npm registry metadata for a package: latest version, install scripts (preinstall/postinstall are a key risk signal), maintainers, license, recent version history, weekly downloads, GitHub stars, TypeScript support,
  • get_package_version read-onlyFetch registry metadata for one exact version of a package (dependencies, install scripts, tarball) AND check that exact version against OSV.dev for known vulnerabilities — isVulnerable/highestSeverity give a direct answ
  • get_maintainer_profile read-onlyGiven an npm username, returns every package npm's own maintainer:<username> search index currently returns for that account (registry.npmjs.org's /-/v1/search — the public registry API has no dedicated 'list packages by
  • query_vulnerabilities read-onlyQuery OSV.dev for known vulnerabilities affecting an npm package, optionally scoped to one exact version (e.g. to check whether a version pinned in a lockfile is safe). Returns isVulnerable and highestSeverity as a direc
  • batch_query_vulnerabilities read-onlyCheck a whole npm dependency inventory against OSV.dev in one call: pass `packages: [{name, version?}]`, or raw package.json / package-lock / yarn.lock / pnpm-lock / CycloneDX / SPDX content via `content`. Large inventor
  • get_latest_advisories read-onlyBrowse recently published npm security advisories and known-malicious-package findings. Three disjoint sources, selected via type: "reviewed" (default) is GitHub's curated, mostly CVE-backed advisories; "malware" is GitH
  • get_cve read-onlyLook up authoritative NIST NVD data for one exact CVE ID (e.g. "CVE-2026-2950"), or browse/search NVD by keyword, CVSS severity, CWE, or a publication-date range. Every result is enriched with CISA KEV status (`kev`, non
  • analyze_install_script read-onlyStatically scans a package's preinstall/install/postinstall/prepare lifecycle scripts AND the file(s) they reference — fetched directly from the published tarball, not just the command string in package.json — against np
  • analyze_transitive_dependencies read-onlyWalk one or more root packages' dependency trees (e.g. a package.json "dependencies" section) up to `maxDepth` levels (default 2, max 3) and check every resolved package@version against OSV.dev, so vulnerabilities severa
  • check_package_provenance read-onlyChecks whether a package version was published with npm's own Sigstore-backed publish provenance (`npm publish --provenance`), and cross-checks that provenance against reality rather than just reporting its presence. Thr
  • check_maintainer_changes read-onlyReconstruct who has controlled an npm package and when, straight from the packument (each version records the maintainer list at publish time and who ran `npm publish`). Use it for the 'who controls this package, and did
  • check_maintainer_blast_radius read-onlyGiven an npm username, lists the packages npm's maintainer:<username> search index returns for that account and looks for a tight cluster of packages whose latest version was published within a short rolling window of ea
  • check_license_compliance read-onlyGiven a list of packages (name + optional exact version or semver range — e.g. straight from a package.json "dependencies" object) and an optional allow/deny license policy, resolves each package's declared SPDX license
  • diff_dependencies read-onlyCompare two snapshots of a package.json, package-lock.json (v1-v3), yarn.lock (classic or Berry) or pnpm-lock.yaml (e.g. before/after a PR; formats can differ) and report added, removed and changed packages. Lockfiles co
  • prioritize_remediation read-onlyRank vulnerability findings other tools already returned (batch_query_vulnerabilities, query_vulnerabilities, analyze_transitive_dependencies, diff_dependencies...) by what to fix first. Pass up to 200 `{packageName, cve
  • simulate_dependency_upgrade read-onlyBefore running npm install, check whether upgrading a package from a current to a target version is safe. Pass `packageName` + `currentVersion` + `targetVersion` (omit target for "latest"), or `packages: [...]` (1-100) t
  • suggest_alternative read-onlyGiven a package that looks deprecated, vulnerable, abandoned, or suspicious, suggest better-maintained alternatives in the same category. This tool first checks the source package's own latest-version health (deprecation
  • compare_packages read-onlyCompare 2-5 candidate packages for the same job (e.g. "axios vs got vs node-fetch") side by side and get a deterministic pick. More than 5 names is rejected, never truncated; duplicate names are rejected. Use search_pack
  • audit_github_repository read-onlyAudit a GitHub repository's npm dependencies from its URL — no pasted files needed. Fetches package.json plus the first lockfile found (pnpm-lock.yaml, then package-lock.json, then yarn.lock) from the default branch (or
  • get_remediation_playbook read-onlyMaps a finding's `rule` value from analyze_install_script, check_maintainer_changes, or check_package_provenance to the matching human-authored incident-response playbook (the same content published at /docs/playbooks) a
  • generate_sbom read-onlyGiven the same inputs batch_query_vulnerabilities accepts — either a flat {packages:[...]} list, or raw package.json / lockfile / CycloneDX JSON / SPDX JSON content via `content` — emits a spec-valid CycloneDX 1.6 or SPD
  • enrich_npm_audit read-onlyGiven the raw output of `npm audit --json` (npm 7+'s `{vulnerabilities: {...}}` format, or legacy npm 6's `{advisories: {...}}`), parses it directly — no need to re-paste package.json/lockfile content — and runs it throu

Connect it

Claude Code
claude mcp add --transport http npmscan https://npmscan.com/api/mcp
Claude.ai / ChatGPT
Settings → Connectors → Add custom connector
URL: https://npmscan.com/api/mcp
Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "npmscan": {
      "url": "https://npmscan.com/api/mcp"
    }
  }
}
VS Code (.vscode/mcp.json)
{
  "servers": {
    "npmscan": {
      "type": "http",
      "url": "https://npmscan.com/api/mcp"
    }
  }
}

Questions

What does NPMScan do?

Detect malicious or vulnerable npm packages: registry search, OSV.dev and GitHub advisory lookups It exposes 23 tools to AI assistants.

What tools does NPMScan provide?

23 tools, including search_packages, get_package, get_package_version, get_maintainer_profile, query_vulnerabilities, batch_query_vulnerabilities, get_latest_advisories, get_cve, analyze_install_script, analyze_transitive_dependencies, check_package_provenance, check_maintainer_changes….

How do I connect NPMScan to Claude, ChatGPT or Cursor?

Add the remote MCP endpoint https://npmscan.com/api/mcp as a custom connector or MCP server. Copy-paste setup is on this page.

Does NPMScan require an account or API key?

No sign-in was needed to list its tools. Individual tools may still need an account or API key.

Is NPMScan online?

As of 2026-11-19 our probe found it online. It answered 100% of our last 3 checks.

Who publishes NPMScan?

@salemalem on GitHub. The official MCP Registry verified that the publisher controls this GitHub account before accepting the listing.

Similar in Developer Tools