NPMScan
REMOTE · NPMSCAN.COM · SCANNED SEP 22
Detect malicious or vulnerable npm packages: registry search, OSV.dev and GitHub advisory lookups
Available components
How this component scores in each security and reliability category. Every signal is checked automatically against the live server, and we only credit what we can confirm. How we score → Why this is hard to score →
Endpoint Security74
- The endpoint's TLS certificate is valid, in date, and uses a strong key. View diagnostics → Pass
- No authorisation is required to call this server. Every tool declares its destructiveHint and none is destructive, so open access doesn't expose one. See how to fix → View diagnostics → Partial
- HTTPS is enforced; there's no plaintext access path. View diagnostics → Pass
- HSTS check failed: the Strict-Transport-Security header is absent. See how to fix → View diagnostics → Fail
- DNSSEC check failed: this domain isn't protected by DNSSEC. See how to fix → View diagnostics → Fail
Transport & Reachability100
- Verified streamable-http transport via a live MCP handshake. View diagnostics → Pass
Schema Quality & AI Usability62
- AI-judged instruction clarity (excellent).Pass
- Context-footprint check failed: tool/resource definitions use about 12921 tokens (~561/item across 23 items; 23 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management100
- No destabilizing schema changes in the last 30 days.Pass
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 99% of tool parameters carry a description.Partial
- Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 23 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 24 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
How do I install the NPMScan MCP server?
NPMScan is a hosted endpoint at https://npmscan.com/api/mcp, so there is nothing to install locally. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
remote · npmscan.com
claude mcp add --transport http salemalem-npmscan 'https://npmscan.com/api/mcp'
{
"mcpServers": {
"salemalem-npmscan": {
"url": "https://npmscan.com/api/mcp"
}
}
} {
"servers": {
"salemalem-npmscan": {
"type": "http",
"url": "https://npmscan.com/api/mcp"
}
}
} [mcp_servers.salemalem-npmscan] url = "https://npmscan.com/api/mcp"
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"salemalem-npmscan": {
"type": "remote",
"url": "https://npmscan.com/api/mcp",
"enabled": true
}
}
} openclaw mcp add salemalem-npmscan --url 'https://npmscan.com/api/mcp' --transport streamable-http
mcp_servers:
salemalem-npmscan:
url: "https://npmscan.com/api/mcp" {
"McpServers": {
"salemalem-npmscan": {
"Transport": "http",
"Url": "https://npmscan.com/api/mcp"
}
}
} assistant mcp add salemalem-npmscan -t streamable-http -u 'https://npmscan.com/api/mcp'
{
"mcpServers": {
"salemalem-npmscan": {
"type": "http",
"url": "https://npmscan.com/api/mcp"
}
}
} The mcpServers block is a cross-client convention. Remote transports vary, so check your client's docs.
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 22 Sept 26 0
- Tool “compare_packages” rewrote its description, which is the text the model reads security
- Tool “get_cve” rewrote its description, which is the text the model reads security
- Tool “get_package” rewrote its description, which is the text the model reads security
- Tool “get_package_version” rewrote its description, which is the text the model reads security
- Tool “suggest_alternative” rewrote its description, which is the text the model reads security
- 21 Sept 26 0
- Tool “audit_github_repository” rewrote its description, which is the text the model reads security
- Tool “analyze_transitive_dependencies” rewrote its description, which is the text the model reads security
- Tool “batch_query_vulnerabilities” rewrote its description, which is the text the model reads security
- Tool “diff_dependencies” rewrote its description, which is the text the model reads security
- Tool “generate_sbom” rewrote its description, which is the text the model reads security
- Tool “prioritize_remediation” rewrote its description, which is the text the model reads security
- Tool “query_vulnerabilities” rewrote its description, which is the text the model reads security
- Schema quality: 474 → 541 ▼ functional
- “audit_github_repository” added an optional parameter “includePeerDependencies” cosmetic
- “batch_query_vulnerabilities” added an optional parameter “includePeerDependencies” cosmetic
- “generate_sbom” added an optional parameter “includePeerDependencies” cosmetic
- 18 Sept 26 0
- Tool “batch_query_vulnerabilities” rewrote its description, which is the text the model reads security
- Tool “diff_dependencies” rewrote its description, which is the text the model reads security
- 9 Sept 26 0
- Tool “check_maintainer_blast_radius” rewrote its description, which is the text the model reads security
- Tool “get_latest_advisories” rewrote its description, which is the text the model reads security
- Tool “get_maintainer_profile” rewrote its description, which is the text the model reads security
- “get_latest_advisories” reworded the description of “category” cosmetic
- “get_latest_advisories” reworded the description of “cveId” cosmetic
- “get_latest_advisories” reworded the description of “ghsaId” cosmetic
- “get_latest_advisories” reworded the description of “severity” cosmetic
- “get_latest_advisories” reworded the description of “type” cosmetic
- 8 Sept 26 0
- Tool “batch_query_vulnerabilities” rewrote its description, which is the text the model reads security
- Tool “get_latest_advisories” rewrote its description, which is the text the model reads security
- Tool “query_vulnerabilities” rewrote its description, which is the text the model reads security
- “get_latest_advisories” added an optional parameter “type” cosmetic
- 7 Sept 26 0
- Server version: 1.3.0 → 3.0.0 functional
- 6 Sept 26 0
- Tool “check_maintainer_changes” rewrote its description, which is the text the model reads security
- Tool “check_maintainer_blast_radius” rewrote its description, which is the text the model reads security
- Tool “get_maintainer_profile” rewrote its description, which is the text the model reads security
- 5 Sept 26 0
- The server rewrote its instructions, which are the text every model session reads security
- Tool “audit_github_repository” rewrote its description, which is the text the model reads security
- Tool “check_maintainer_blast_radius” rewrote its description, which is the text the model reads security
- Tool “compare_packages” rewrote its description, which is the text the model reads security
- Tool “simulate_dependency_upgrade” rewrote its description, which is the text the model reads security
- Schema quality: 7864 → 9877 ▼ functional
- New tool “enrich_npm_audit” functional
- New tool “generate_sbom” functional
- New tool “get_maintainer_profile” functional
- “simulate_dependency_upgrade” added an optional parameter “packages” cosmetic
- “simulate_dependency_upgrade” reworded the description of “currentVersion” cosmetic
- “simulate_dependency_upgrade” reworded the description of “packageName” cosmetic
- “simulate_dependency_upgrade” reworded the description of “targetVersion” cosmetic
- “simulate_dependency_upgrade” made “currentVersion” optional cosmetic
- “simulate_dependency_upgrade” made “packageName” optional cosmetic
- Tool “simulate_dependency_upgrade” changed its title: Simulate upgrading one package from one version to another → Simulate upgrading one package from one version to another, or a whole batch at once cosmetic
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 22 Sept 2026 · Probed https://npmscan.com/api/mcp
TLS valid
Negotiated TLS 1.3 with TLS_AES_128_GCM_SHA256 .
| Subject | Issuer | Valid from | Valid until | Key | Signature | Serial |
|---|---|---|---|---|---|---|
| CN=npmscan.com | CN=YE1,O=Let's Encrypt,C=US | 29 Jul 2026 | 27 Oct 2026 | ECDSA 256 | ECDSA-SHA384 | 52d75574f4a14a2bea5936c4ae214956a24 |
| SANs: npmscan.com | ||||||
| CN=YE1,O=Let's Encrypt,C=US (CA) | CN=Root YE,O=ISRG,C=US | 3 Sept 2025 | 2 Sept 2028 | ECDSA 384 | ECDSA-SHA384 | 5ddd70dd31f801c85c186a7a04b80afe |
| CN=Root YE,O=ISRG,C=US (CA) | CN=ISRG Root X2,O=Internet Security Research Group,C=US | 13 May 2026 | 2 Sept 2032 | ECDSA 384 | ECDSA-SHA384 | 872165fc34b6e5fba8add5b3705fb53a |
| CN=ISRG Root X2,O=Internet Security Research Group,C=US (CA) | CN=ISRG Root X1,O=Internet Security Research Group,C=US | 13 May 2026 | 2 Sept 2032 | ECDSA 384 | SHA256-RSA | 6c8f1dc727c7117f7baf853ac980f9cd |
Background: What to check on a remote MCP endpoint →
DNSSEC insecure
Validation of npmscan.com. — Not signed
| Zone | DS | Keys | Algorithms | Outcome |
|---|---|---|---|---|
| . | trust_anchor | 20326, 38696 | 8, 8 | Verified |
| com. | present | 19718 | 13 | Verified |
| npmscan.com. | absent | Unsigned (proven) parent-signed NSEC/NSEC3 proves an unsigned delegation |
Authentication No authorisation required
The endpoint answered without asking for a token. Anyone who knows the URL can reach it.
| Result | No authorisation required |
|---|---|
| HTTP status | 200 |
| Header | Value |
|---|---|
| x-content-type-options | nosniff |
| x-frame-options | SAMEORIGIN |
| referrer-policy | origin-when-cross-origin |
Background: How OAuth 2.1 works in the 2026 MCP spec →
Transports 2 probes
| Transport | URL | Outcome | Status | Location |
|---|---|---|---|---|
| streamable-http | https://npmscan.com/api/mcp | Verified | 200 | |
| http (plaintext) | http://npmscan.com/api/mcp | HTTPS enforced | 301 | https://npmscan.com/api/mcp |
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
analyze_install_script Analyze an npm package install script ~297
Statically 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 npmscan's documented red-flags rubric (/docs/red-flags): child_process use, network calls, access to sensitive paths/env (.ssh, .aws, .npmrc, *TOKEN/*KEY), obfuscation, remote binaries hosted off trusted CDNs, writes to HOME, Discord/Telegram/Pastebin exfil endpoints, eval on decoded strings, chmod+exec of downloaded binaries, and CI-metadata telemetry — plus a possibleTyposquatOf name check. Returns a weighted totalScore and riskTier ('none'/'low'/'moderate'/'high'/'critical'). This is a heuristic static scan, not proof of malice or a guarantee of safety: it doesn't execute any code, can't see behavior gated on runtime conditions, and does NOT check maintainer/ownership history (a separate red-flags signal this tool doesn't cover). Use get_package/get_package_version first for the raw script listing; use this when you need to know what an install script actually does, not just that one exists.
| Name | Type | Req | Description |
|---|---|---|---|
| name | string | yes | Exact npm package name, e.g. "lodash" or "@scope/name" |
| version | string | – | Exact version to analyze; omit to use the latest published version |
| Name | Type | Req | Description |
|---|---|---|---|
| filesScanned | array | yes | – |
| findings | array | yes | – |
| hasLifecycleScripts | boolean | yes | – |
| lifecycleScripts | object | yes | – |
| name | string | yes | – |
| npmscanUrl | string | yes | – |
| possibleTyposquatOf | – | yes | – |
| riskTier | string | yes | – |
| scanNote | string|null | yes | – |
| totalScore | number | yes | – |
| version | string | yes | – |
No examples provided.
analyze_transitive_dependencies Analyze transitive dependencies for vulnerabilities ~596
Recursively resolves one or more direct/root packages' dependency graphs — e.g. the "dependencies" section of a package.json — up to maxDepth levels deep (default 2, max 3) and batch-checks every resolved package@version against OSV.dev, so vulnerabilities buried several levels down (which would never show up from checking direct dependencies alone) still surface. `summary` is a one-sentence, deterministic recap (packages scanned, unresolved count, vulnerable count and which roots pulled them in) — read it first. The `vulnerablePaths` field directly answers "which of my dependencies pulled this in" by naming the root package(s) responsible for each vulnerable transitive package; `nodes` has the full resolved graph (depth, parents, resolutionError) for deeper inspection. An npm alias (e.g. `"totally-safe": "npm:minimist@0.0.8"`) is followed to its real target — `actualName` names the real package that vulnerability data attaches to (`name` stays the declared/alias key) — this is NOT silently skipped, since doing so would mean a vulnerable package hides behind whatever name a project calls it. A node with `resolutionError` set (unsatisfiable range, 404, or a git/file/workspace/URL specifier — those still aren't followed, only npm: aliases are) has `isVulnerable: null`, not `false` — it was never actually scanned, so "not vulnerable" would be a fabricated clean bill of health; only trust `isVulnerable: true`/`false` once a real version was resolved and checked. Scope/limits worth knowing before trusting a "clean" result: only the "dependencies" field is followed (not devDependencies/peerDependencies/optionalDependencies); each range is resolved independently per branch via semver max-satisfying against published versions — this does NOT emulate npm/yarn's actual node_modules hoisting/dedup, so read results as "which vulnerable versions are reachable in the graph," not the exact installed layout; and the whole traversal is capped at a total node budget — check `truncat…
| Name | Type | Req | Description |
|---|---|---|---|
| maxDepth | integer | – | How many levels of transitive dependencies to expand beyond the given root packages (0 = only check the roots themselves). Default 2, capped at 3 to bound registry calls and stay within the request t… |
| packages | array | yes | 1-15 direct/root packages to expand from, e.g. a package.json's "dependencies". version accepts an exact version or a semver range like "^4.17.21"; omitted = latest. |
| Name | Type | Req | Description |
|---|---|---|---|
| enrichmentNote | string|null | yes | – |
| maxDepth | number | yes | – |
| nodes | array | yes | – |
| roots | array | yes | – |
| summary | string | yes | – |
| totalPackagesScanned | number | yes | – |
| totalVulnerabilities | number | yes | – |
| truncated | boolean | yes | – |
| truncationNote | string|null | yes | – |
| unresolvedCount | number | yes | – |
| vulnerablePackageCount | number | yes | – |
| vulnerablePaths | array | yes | – |
No examples provided.
audit_github_repository Audit a GitHub repository's npm dependencies ~872
Given a GitHub repository URL, fetches its package.json (and, if present, a pnpm-lock.yaml/package-lock.json/yarn.lock — first one found wins, in that priority order) straight from the repo's default branch and runs the same vulnerability, license-compliance, install-script, and ownership-risk pipelines batch_query_vulnerabilities/check_license_compliance/analyze_install_script/check_maintainer_changes/check_package_provenance expose individually, in one call — no copy-pasting file contents required. A monorepo (package.json#workspaces, Yarn's {packages:[...]} form, or pnpm-workspace.yaml) is detected automatically: pnpm-lock.yaml and yarn.lock already record every workspace member's dependencies directly, and for package.json-only or package-lock.json repos this additionally lists the repo's file tree, resolves the declared glob patterns to member directories, and merges each member's dependencies into the audit (capped at 50 member packages) — see isMonorepo/workspacePatterns/workspacePackageCount/workspaceNote in the result. Every direct dependency (up to 100 per call, across the root and any merged workspace members) gets: an OSV.dev vulnerability check, a license-compliance verdict against the given policy (same default as check_license_compliance: only copyleft/network-copyleft/proprietary are violations unless you pass one), and a tarball-free install-script risk signal (installScriptScanScope: 'lifecycle-scripts-only'). Up to 10 of the packages that actually declare a lifecycle script — prioritized by already-vulnerable, then possible-typosquat, then whatever's left — additionally get the full tarball-fetching deep scan analyze_install_script itself runs (installScriptScanScope: 'deep-tarball-scan', with a populated installScriptFindings array); any remaining flagged packages past that cap keep the lighter signal only, noted in deepScanNote. Any package that comes back vulnerable at high/critical severity, a possible typosquat, or deprecated (ownershipRiskE…
| Name | Type | Req | Description |
|---|---|---|---|
| includeDevDependencies | boolean | – | Include package.json devDependencies in the audit. Default false. Ignored when a lockfile is used instead (its own format decides direct-dependency scope), and yarn.lock can never distinguish dev fro… |
| includePeerDependencies | boolean | – | Include package.json peerDependencies (root and, for a monorepo, each workspace member) in the audit. Default false — a peer is often intentionally left unresolved by the consumer. See warnings for w… |
| policy | object | – | License allow/deny policy, same shape as check_license_compliance. Omit for the default policy (only copyleft/network-copyleft/proprietary are violations). |
| ref | string | – | Branch, tag, or commit SHA to audit. Omit to use the repository's default branch. |
| url | string | yes | GitHub repository URL, e.g. "https://github.com/owner/repo". |
| Name | Type | Req | Description |
|---|---|---|---|
| deepScanNote | string|null | yes | – |
| deepScannedCount | number | yes | – |
| defaultBranchUsed | boolean | yes | – |
| findings | array | yes | – |
| inputFormat | string | yes | – |
| installScriptFlaggedCount | number | yes | – |
| isMonorepo | boolean | yes | – |
| licenseViolationCount | number | yes | – |
| lockfilePath | string|null | yes | – |
| manifestPath | string | yes | – |
| overflowPackages | array | yes | – |
| owner | string | yes | – |
| ownershipCheckNote | string|null | yes | – |
| ownershipCheckedCount | number | yes | – |
| ownershipRiskFlaggedCount | number | yes | – |
| policy | object | yes | – |
| ref | string | yes | – |
| repoName | string | yes | – |
| summary | string | yes | – |
| totalPackages | number | yes | – |
| truncationNote | string|null | yes | – |
| vulnerablePackageCount | number | yes | – |
| warnings | array | yes | – |
| workspaceNote | string|null | yes | – |
| workspacePackageCount | number | yes | – |
| workspacePatterns | array | yes | – |
No examples provided.
batch_query_vulnerabilities Batch query known vulnerabilities ~1,067
Query OSV.dev for known vulnerabilities across a whole npm dependency inventory at once: either pass a flat {packages:[...]} list, or paste raw package.json / lockfile / CycloneDX JSON / SPDX JSON content via `content`. The tool normalizes npm dependencies first, then chunk-queries OSV behind the scenes so large SBOMs don't stop at the upstream 100-package batch limit. Each finding includes severity, a summary, CVE aliases, and the fixed version — not just a bare advisory ID — so a dependency audit answer doesn't need a follow-up call per flagged package. For an explicit `packages` list or raw `package.json` content — names that were never actually resolved against a registry, unlike a real lockfile/SBOM — package names are also cross-checked against the npm registry (capped at 200 unique names): a name that doesn't exist there would otherwise show a silent, indistinguishable `vulnerabilityCount: 0` — see `unresolvedPackages`/`existenceCheckNote` and do not read those entries as a clean bill of health. A `packages[].version` that doesn't currently appear on the registry (a typo'd/fabricated version, OR a real version that was published and later removed, e.g. unpublished for containing malware) is cross-checked the same way — see `nonexistentVersions`; don't assume it never existed. Each result also carries `signals` (deprecated, hasInstallScripts for the specific requested/resolved version, popularityTier/maintenanceTier, and possibleTyposquatOf — same deterministic rule-based labels as get_package/search_packages, capped at the same 200 unique names): a clean `vulnerabilityCount:0` does NOT mean safe to use if `signals` flags a likely typosquat, an abandoned/stale package, or a deprecation notice — surface those explicitly rather than reporting only the vulnerability count. `vulnerabilityCount`/`advisoryCount` are raw OSV/GHSA advisory counts and can over-count: OSV sometimes publishes more than one advisory record for the same underlying CVE — use `uniqueVulnera…
| Name | Type | Req | Description |
|---|---|---|---|
| content | string | – | Raw dependency inventory content: package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, CycloneDX JSON, or SPDX JSON. Use this OR `packages`, not both. |
| includeDevDependencies | boolean | – | Ignored when using `packages`; only applies when `content` is a manifest/lockfile format that distinguishes dev dependencies. |
| includePeerDependencies | boolean | – | Ignored when using `packages`; only applies when `content` is a package.json. peerDependencies are excluded from scanning by default (see ignoredPeerDependencyNames) since a peer is often intentional… |
| packages | array | – | Explicit package list (1-1000 items). Use this OR `content`, not both. |
| Name | Type | Req | Description |
|---|---|---|---|
| enrichmentNote | string | – | – |
| existenceCheckNote | string | – | – |
| ignoredCount | number | – | – |
| ignoredPeerDependencyNames | array | – | – |
| inputFormat | string | – | – |
| nonexistentVersions | array | – | – |
| packagesWithVulnerabilities | number | yes | – |
| parsedPackageCount | number | – | – |
| projectLifecycleScriptRisk | object | – | – |
| projectLifecycleScripts | – | – | – |
| queryFailureCount | number | – | – |
| results | array | yes | – |
| totalUniqueVulnerabilities | number | yes | – |
| totalVulnerabilities | number | yes | – |
| unresolvedPackages | array | – | – |
| warnings | array | – | – |
No examples provided.
check_license_compliance Check a dependency list against a license policy ~409
Given 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 and reports a compliance verdict per package. Classifies every license into one of permissive/weak-copyleft/copyleft/network-copyleft/proprietary/public-domain/unknown, and understands simple SPDX expressions: "(MIT OR GPL-3.0)" is compliant if EITHER side is permitted (a consumer may legally pick the clean alternative), "MIT AND Apache-2.0" requires both sides to pass, and "X WITH exception" is judged on X. A mixed/nested expression like "(MIT OR ISC) AND Apache-2.0" is reported as needsReview rather than guessed at. `policy.deny` entries always win over `policy.allow` (so a name can appear in both without a silent contradiction); with `policy.allow` set, anything not matching it is a violation (unproven is treated as non-compliant); with neither given, the default policy flags only copyleft/network-copyleft/proprietary (e.g. GPL/AGPL/UNLICENSED) — weak-copyleft (LGPL/MPL/EPL) and unrecognized license strings are surfaced but not auto-flagged. Policy entries accept an exact SPDX id, a family prefix ("GPL" catches GPL-2.0/GPL-3.0-only/etc.), or a category name. This reads only the registry-declared `license` field — it does not fetch or parse LICENSE file contents from the source repository.
| Name | Type | Req | Description |
|---|---|---|---|
| packages | array | yes | 1-100 packages to check. version accepts an exact version or a semver range like "^4.17.21"; omitted = latest. |
| policy | object | – | Omit entirely to use the default policy: only copyleft/network-copyleft/proprietary are violations. |
| Name | Type | Req | Description |
|---|---|---|---|
| compliantCount | number | yes | – |
| needsReviewCount | number | yes | – |
| policy | object | yes | – |
| results | array | yes | – |
| summary | string | yes | – |
| totalPackages | number | yes | – |
| unresolvedCount | number | yes | – |
| violationCount | number | yes | – |
No examples provided.
check_maintainer_blast_radius Find every package an npm maintainer account touches, and flag a tight publish cluster ~738
Given an npm username, finds every package npm's own maintainer:<username> search index currently returns for that account (registry.npmjs.org's /-/v1/search — the same reverse lookup npmjs.com's own site search uses; the public registry API has no dedicated 'list packages by maintainer' endpoint otherwise) and looks for a tight cluster of packages whose LATEST version was published within a short rolling window of each other. That's the shape of a compromised-account supply-chain attack: a stolen or phished credential doesn't get used on one package, it gets used on every package that account can publish to, usually within hours — the exact pattern behind the September 2025 chalk/debug ('qix') compromise, which hit roughly 18 packages within about 2 hours. A large total package count is NOT itself a red flag — many legitimate maintainers publish hundreds of packages over a career — only a tight publish-time cluster is scored, weighted up by how many packages it includes and by their combined weekly downloads/dependentsCount, since a burst touching a handful of near-zero-download packages is a very different event than one touching something with billions of weekly downloads. A cluster where most of the packages share one npm scope (e.g. @docusaurus/*) is dampened, since that's the shape of a project's own monorepo doing one coordinated release, not a compromised account spread across unrelated packages — this is why a large official org account (e.g. facebook/fb) publishing several of its own monorepos still lands well below what a plain sum of its cluster count would suggest. Multiple distinct clusters on one account combine with diminishing returns (the single worst cluster counts in full; each additional one contributes half the previous one's weight), not a plain sum — an account that does many independent, legitimate coordinated releases over its lifetime should not accumulate an unbounded score purely from being prolific. avatarUrl is the same Gravatar image…
| Name | Type | Req | Description |
|---|---|---|---|
| maintainerUsername | string | yes | Exact npm username, e.g. "sindresorhus" — as shown at npmjs.com/~username. Not an email address, not a package name or scope. |
| Name | Type | Req | Description |
|---|---|---|---|
| avatarUrl | string|null | yes | – |
| clusterWindowHours | number | yes | – |
| clusters | array | yes | – |
| findings | array | yes | – |
| maintainerUsername | string | yes | – |
| note | string|null | yes | – |
| npmProfileUrl | string | yes | – |
| npmscanUrl | string | yes | – |
| packages | array | yes | – |
| packagesReturned | number | yes | – |
| resultsTruncated | boolean | yes | – |
| riskTier | string | yes | – |
| totalPackagesFound | number | yes | – |
| totalScore | number | yes | – |
No examples provided.
check_maintainer_changes Check an npm package for maintainer/ownership red flags ~463
Reconstructs a package's maintainer-change history straight from the npm packument — every published version carries the maintainers-list SNAPSHOT as it stood at that publish plus who actually ran `npm publish` (`_npmUser`), so diffing consecutive snapshots in publish-time order recovers exactly who was added or removed and when, with no extra API calls. Flags: (1) a maintainer added recently who then published a release shortly afterward on a package with real prior history — the account-takeover/hostile-handoff shape behind incidents like ua-parser-js, event-stream, and the 2025 chalk/debug ('qix') compromise; (2) a full, sudden replacement of the entire maintainer list; (3) a long-standing maintainer quietly dropped from the list; (4) a maintainer-list change that happened on npm's site AFTER the latest release — not yet tied to any published version, which is the more urgent case since it means access changed hands but nothing has shipped with it yet. Also cross-checks the declared GitHub repository: whether it still resolves to the same owner/name (a transfer/rename), whether it's reachable at all, and whether the latest npm release landed long after any real push activity there — repository.ownerLogin/ownerAvatarUrl name and show the CURRENT owning account (the new one after a transfer, not the one originally declared in package.json), with ownerAvatarUrl served from our own /api/github/avatar proxy rather than linking avatars.githubusercontent.com directly, both null whenever the repo check itself didn't reach GitHub. Use get_package/check_package_provenance first for the package's general health and publish-integrity signals; use this specifically for the 'who controls this package, and did that change recently' question. If this flags a newly added or fully turned-over maintainer, follow up with check_maintainer_blast_radius on that maintainer's username — it lists every other package the same account currently touches and flags a tight publish-time cluste…
| Name | Type | Req | Description |
|---|---|---|---|
| name | string | yes | Exact npm package name, e.g. "lodash" or "@scope/name" |
| Name | Type | Req | Description |
|---|---|---|---|
| currentMaintainers | array | yes | – |
| findings | array | yes | – |
| history | object | yes | – |
| lookbackDays | number | yes | – |
| name | string | yes | – |
| npmscanUrl | string | yes | – |
| repository | object | yes | – |
| riskTier | string | yes | – |
| totalScore | number | yes | – |
No examples provided.
check_package_provenance Check an npm package version for publish-provenance red flags ~443
Checks 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. Three checks: (1) parses the SLSA build attestation (declared source repo, commit, builder identity, GitHub Actions run URL) and flags a builder that isn't GitHub-hosted, or an attested source repo that doesn't match package.json's own `repository` field; (2) when this version LACKS provenance, checks whether most peer packages (same npm scope, or same maintainer for an unscoped name) DO have it — a package that's the odd one out in an org that otherwise always publishes from CI is a real anomaly, not proof of malice; (3) fetches package.json from the source repository at the exact attested commit (or a best-effort matching git tag when no provenance/commit is available) and diffs its install-lifecycle scripts (preinstall/install/postinstall/prepare) and dependency names against what's actually in the published tarball — this is the single highest-signal check here, since a script or dependency that exists on npm but was never committed is exactly the pattern of a stolen-npm-token publish that bypasses CI (the event-stream/ua-parser-js incident shape). This is a heuristic, structural check: it does NOT cryptographically re-verify the Sigstore bundle (Fulcio cert chain, Rekor inclusion proof) — it trusts that npm's registry already refused to accept a publish that failed that verification, and checks the CONTENT of what the registry reports instead. Most packages don't use --provenance yet, so its bare absence is never scored on its own — only an org-norm anomaly or an actual source mismatch is. Use get_package/get_package_version first for basic package info; use this specifically to assess publish-integrity risk.
| Name | Type | Req | Description |
|---|---|---|---|
| name | string | yes | Exact npm package name, e.g. "lodash" or "@scope/name" |
| version | string | – | Exact version to check; omit to use the latest published version |
| Name | Type | Req | Description |
|---|---|---|---|
| findings | array | yes | – |
| name | string | yes | – |
| npmscanUrl | string | yes | – |
| peers | object | yes | – |
| provenance | object | yes | – |
| riskTier | string | yes | – |
| sourceDiff | object | yes | – |
| totalScore | number | yes | – |
| version | string | yes | – |
No examples provided.
compare_packages Compare npm packages side-by-side ~495
Given 2-5 candidate packages for the same job (e.g. "axios vs got vs node-fetch"), fetches the same registry/popularity/maintenance/vulnerability enrichment get_package computes for each one in parallel and returns a structured side-by-side plus a deterministic, reasoned pick. Each candidate gets downloads + trend, popularityTier/maintenanceTier, GitHub stars, TypeScript support, license, deprecated status, latest-version vulnerability status, a lightweight installScriptRisk signal (scans lifecycle script command strings for known red flags — does NOT fetch the tarball; call analyze_install_script on a specific candidate for that deeper scan), and installSize (the candidate's own dist.unpackedSize plus a transitive rollup — summed dist.unpackedSize across its resolved dependency tree, walked up to depth 2 / 60 nodes per candidate; `installSize.transitive.truncated`/`sizeUnknownCount` flag when that sum is partial rather than pretending it's exact — call analyze_transitive_dependencies on a specific candidate for the full graph). `differentiators` names which candidates stand out on each dimension (most downloads, only ones with TS types, which are deprecated/vulnerable/flagged as a typosquat/install-script risk, smallest/largest install size). `recommendation.pick` is chosen deterministically from a weighted score (popularity, maintenance, deprecation, vulnerabilities, typosquat flag, install-script risk, TS support, GitHub stars — install size is reported but not scored) — never a deprecated or typosquat-flagged candidate — with `rationale` explaining why and `confidence` reflecting how close the top two scored. If a candidate's OSV.dev vulnerability check itself failed (network/timeout/upstream outage), `isLatestVersionVulnerable` comes back `false` only because the field has to be a boolean — `vulnerabilityCheckFailed:true` is the real signal there, and means that candidate's safe/not-safe answer is unknown, not confirmed clean. A name that can't be resolved (ty…
| Name | Type | Req | Description |
|---|---|---|---|
| packages | array | yes | 2-5 exact npm package names to compare, e.g. ["axios", "got", "node-fetch"]. |
| Name | Type | Req | Description |
|---|---|---|---|
| candidates | array | yes | – |
| differentiators | object | yes | – |
| recommendation | object | yes | – |
No examples provided.
diff_dependencies Diff two package.json/lockfile snapshots ~1,007
Compares two raw snapshots of a package.json, package-lock.json (npm v1-v3), yarn.lock (classic v1 or Berry), or pnpm-lock.yaml — e.g. before/after a PR — and reports which packages were added, removed, or version-bumped. An npm alias (e.g. `"totally-safe": "npm:minimist@0.0.8"`) is followed to its real target in every format — `actualName` names the real package that vulnerability/install-script data attaches to (`name` stays the declared/alias key); this is NOT silently skipped, since doing so would let a vulnerable package hide behind whatever name a project calls it. For every added or bumped package (up to 100 per call), also checks whether its resolved version carries a preinstall/install/postinstall/prepare lifecycle script that the before-version did NOT have (`installScriptIntroduced`, a headline signal — a routine-looking patch bump quietly adding a postinstall is exactly the shape of a compromised-maintainer supply-chain attack) and batch-checks it against OSV.dev, reporting `vulnerabilityDelta` (introduced/fixed/still-vulnerable/still-clean) rather than just a bare isVulnerable flag. `installScriptIntroduced` is a boolean across all four lifecycle keys, so it treats a bare `"prepare": "husky"` bump the same as a newly-added network-capable `postinstall` — read `installScriptKeysIntroduced` (null when only npm-lock's boolean hint was available, not the real scripts object; otherwise the actual key(s) added) to tell those apart before treating a flag as high-severity. `sourceIntegrityChanged` catches a DIFFERENT attack shape than a version bump: a lockfile entry whose resolved tarball URL or integrity hash changed while the version string stayed IDENTICAL — e.g. a compromised registry mirror or a hand-edited lockfile pointing a legitimate-looking "lodash@4.17.21" at a different, unverified artifact — which a version-only diff would report as "no change" (`resolvedUrl`/`integrity` are null when a format doesn't record either, package.json has neither). Sco…
| Name | Type | Req | Description |
|---|---|---|---|
| after | string | yes | Raw file content of the "after" snapshot — a package.json, package-lock.json (npm v1-v3), yarn.lock (classic v1 or Berry), or pnpm-lock.yaml. Format is auto-detected; before/after may be different fo… |
| before | string | yes | Raw file content of the "before" snapshot — a package.json, package-lock.json (npm v1-v3), yarn.lock (classic v1 or Berry), or pnpm-lock.yaml. Format is auto-detected; before/after may be different f… |
| Name | Type | Req | Description |
|---|---|---|---|
| added | array | yes | – |
| afterFormat | string | yes | – |
| beforeFormat | string | yes | – |
| changed | array | yes | – |
| comparisonNote | string|null | yes | – |
| enrichmentNote | string|null | yes | – |
| flaggedCount | number | yes | – |
| overridesChanges | – | yes | – |
| projectLifecycleChanges | – | yes | – |
| removed | array | yes | – |
| summary | string | yes | – |
| totalAdded | number | yes | – |
| totalChanged | number | yes | – |
| totalRemoved | number | yes | – |
| truncated | boolean | yes | – |
| truncationNote | string|null | yes | – |
No examples provided.
enrich_npm_audit Rank raw `npm audit --json` output by what to fix first ~398
Given 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 through the same patch-now/patch-soon/scheduled/monitor ranking prioritize_remediation exposes for hand-built finding lists. npm audit's JSON almost never includes a CVE id (only a GHSA advisory URL), so this resolves each GHSA to its CVE alias via OSV.dev when one exists (ghsaResolvedToCveCount reports how many) before doing the same CISA KEV + FIRST.org EPSS + severity scoring — skipping this step would silently degrade most findings to severity-only ranking despite prioritize_remediation being built around CVE-keyed KEV/EPSS data. Also carries through npm-audit-specific context prioritize_remediation itself has no field for: isDirect (direct vs. transitive dependency) and fixAvailable/fixTarget (npm's own computed fix — note fixTarget can name a different package than the vulnerable one, e.g. bumping a parent to pull in a patched transitive dependency). A package with more than one distinct advisory in the source report only has its first advisory used for ranking; a warning names the package so query_vulnerabilities can be called on it directly for the rest. `yarn audit --json` and `pnpm audit --json` use different report shapes and are not supported — use batch_query_vulnerabilities with the project's manifest/lockfile for those instead.
| Name | Type | Req | Description |
|---|---|---|---|
| content | string | yes | Raw stdout of `npm audit --json` — either npm 7+ format ({"auditReportVersion": 2, "vulnerabilities": {...}}) or legacy npm 6 format ({"advisories": {...}}). |
| Name | Type | Req | Description |
|---|---|---|---|
| ghsaResolvedToCveCount | number | yes | – |
| inputFormat | string | yes | – |
| ranked | array | yes | – |
| skippedCount | number | yes | – |
| summary | object | yes | – |
| totalFindings | number | yes | – |
| uniqueCveCount | number | yes | – |
| warnings | array | yes | – |
No examples provided.
generate_sbom Generate a CycloneDX or SPDX SBOM ~637
Given 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 SPDX 2.3 JSON document (pick with `format`, default 'cyclonedx') with npmscan's own OSV.dev vulnerability findings and registry license data embedded in each spec's native fields: CycloneDX gets a top-level `vulnerabilities[]` array (VEX `analysis.state: 'in_triage'` — an unreviewed automated finding, not a claim of exploitability) and per-component `licenses[]`; SPDX (which has no vulnerabilities array in 2.3) gets one `externalRefs` SECURITY/advisory entry per finding and `licenseDeclared`/`licenseConcluded`. Only a flat package inventory is known here, so the CycloneDX `dependencies[]` transitive graph and any SPDX package hierarchy are intentionally omitted rather than fabricated. Set `includeVulnerabilities`/`includeLicenses` to false to skip either enrichment pass (faster, no registry/OSV calls for that pass); pass `policy` (same shape as check_license_compliance) to also get per-package compliance context; `componentName`/`componentVersion` name the SBOM's own root component/document if known. When `content` is a package.json, `peerDependencies` are excluded by default (a peer is often intentionally left unresolved by the consumer) — pass `includePeerDependencies: true` to include them as SBOM components too, since an SBOM meant to be complete shouldn't silently omit a whole dependency category.
| Name | Type | Req | Description |
|---|---|---|---|
| componentName | string | – | Name of the SBOM's own root component/document, if known. |
| componentVersion | string | – | – |
| content | string | – | Raw dependency inventory content: package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, CycloneDX JSON, or SPDX JSON. Use this OR `packages`, not both. |
| format | string | – | SBOM format to emit. Default 'cyclonedx'. |
| includeDevDependencies | boolean | – | Ignored when using `packages`; only applies when `content` is a manifest/lockfile format that distinguishes dev dependencies. |
| includeLicenses | boolean | – | Resolve registry license data and embed it natively. Default true. |
| includePeerDependencies | boolean | – | Ignored when using `packages`; only applies when `content` is a package.json. peerDependencies are excluded by default — set this to also include them as SBOM components. |
| includeVulnerabilities | boolean | – | Query OSV.dev and embed findings natively. Default true. |
| packages | array | – | Explicit package list (1-1000 items, capped to 100 when includeLicenses is on). Use this OR `content`, not both. |
| policy | object | – | License allow/deny policy, same shape as check_license_compliance. Omit for the default policy. |
| Name | Type | Req | Description |
|---|---|---|---|
| enrichmentNote | string | – | – |
| format | string | yes | – |
| ignoredCount | number | – | – |
| inputFormat | string | – | – |
| licenseViolationCount | number | – | – |
| packagesWithVulnerabilities | number | yes | – |
| parsedPackageCount | number | yes | – |
| policy | object | – | – |
| sbom | object | yes | – |
| totalVulnerabilities | number | yes | – |
| warnings | array | – | – |
No examples provided.
get_cve Look up a CVE in the NIST NVD ~632
Look 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-null only if this CVE is a confirmed, actively-exploited-in-the-wild vulnerability — treat that as an urgent-patch signal regardless of CVSS score) and FIRST.org EPSS (`epss`, the probability of exploitation in the next 30 days — a better prioritization signal than CVSS severity alone, which measures impact, not likelihood). If the KEV or EPSS lookup itself fails (network/timeout/upstream outage), `kev`/`epss` come back `null` only because those fields have to be nullable — `kevCheckFailed`/`epssCheckFailed` (true in that case) is the real signal, and means "unknown", not "confirmed absent/unscored". For a search, a failed EPSS batch call sets `epssCheckFailed` on every result in that response, since one call scores every id together; `kevCheckFailed` is tracked per-CVE since each is looked up independently. For a single cveId lookup, if NVD has no record yet or hasn't scored it, this falls back to the raw MITRE CVE record automatically (`source: "mitre"` on the result) rather than returning nothing. NVD is NOT npm-scoped — unlike query_vulnerabilities/get_latest_advisories, search results can include CVEs for any ecosystem, so pass keywordSearch (e.g. the package name) to narrow it. Prefer this for the authoritative CVSS score/vector/KEV/EPSS data on a CVE already found via another tool, or when a user pastes a CVE ID/link directly; prefer get_latest_advisories for npm-specific browsing. NVD enforces a strict shared rate limit, so this tool may occasionally ask you to retry in a few seconds — do so rather than assuming failure.
| Name | Type | Req | Description |
|---|---|---|---|
| cveId | string | – | Exact CVE ID for a single lookup, e.g. "CVE-2026-2950". When given, search filters below are ignored and should be omitted. |
| cweId | string | – | Filter by weakness type, e.g. "CWE-79" |
| keywordSearch | string | – | Free-text search, e.g. a package or product name |
| publishedSince | string | – | Publication date range start (YYYY-MM-DD). Must be given together with publishedUntil. |
| publishedUntil | – | – | Publication date range end (YYYY-MM-DD). Must be given together with publishedSince; range is capped at 120 days. |
| resultsPerPage | integer | – | Max results for a search (default 10, capped at 50) |
| severity | string | – | Filter by CVSS v3 base severity |
| startIndex | integer | – | Pagination offset for a search |
| Name | Type | Req | Description |
|---|---|---|---|
| cveId | string | – | – |
| cves | array | – | – |
| cvss | – | – | – |
| cwes | array | – | – |
| dateRangeClamped | boolean | – | – |
| description | string|null | – | – |
| epss | – | – | – |
| epssCheckFailed | boolean | – | – |
| found | boolean | – | – |
| id | string | – | – |
| kev | – | – | – |
| kevCheckFailed | boolean | – | – |
| lastModified | string|null | – | – |
| note | string | – | – |
| npmscanUrl | string | – | – |
| published | string|null | – | – |
| references | array | – | – |
| resultsPerPage | number | – | – |
| source | string | – | – |
| startIndex | number | – | – |
| totalResults | number | – | – |
| vulnStatus | string|null | – | – |
No examples provided.
get_latest_advisories Get latest npm security advisories ~508
Browse 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 GitHub's own known-malicious-package advisories; "osv" is OSV.dev's OpenSSF malicious-packages feed, which covers far more malicious npm packages than GitHub ever republishes under a GHSA id. None of "malware"/"osv" carry a CVE or meaningful CWE beyond "embedded malicious code". Filter by severity, vulnerability category (XSS, SQL/NoSQL Injection, SSRF, Access Control, Code Injection, etc. — reviewed only), an affected package name, or (reviewed/malware only) look up one exact advisory by GHSA or CVE ID. Paginated with an opaque cursor: pass a previous response's nextCursor back in as cursor to fetch the next page.
| Name | Type | Req | Description |
|---|---|---|---|
| affects | string | – | Filter to advisories affecting this npm package name |
| category | string | – | Filter by vulnerability category (reviewed only). One of: access-control, dos, xss, ssrf, auth, code-injection, info-exposure, path-traversal, input-validation, prototype-pollution, command-injection… |
| cursor | string | – | Opaque pagination cursor from a previous response's nextCursor, to fetch the next page |
| cveId | string | – | Look up one exact advisory by its CVE ID (e.g. "CVE-2024-12345") — reviewed/malware only |
| direction | string | – | Sort by published date, newest or oldest first (default desc) |
| ghsaId | string | – | Look up one exact advisory by its GHSA ID (e.g. "GHSA-xxxx-xxxx-xxxx") — reviewed/malware only |
| severity | string | – | Filter by severity (default all; not applicable to "malware"/"osv") |
| type | string | – | Advisory source: "reviewed" (curated CVE-style, default), "malware" (GitHub-curated known-malicious packages), or "osv" (OSV.dev/OpenSSF malicious-packages feed) |
| Name | Type | Req | Description |
|---|---|---|---|
| advisories | array | yes | – |
| category | string | yes | – |
| direction | string | yes | – |
| nextCursor | string|null | yes | – |
| severity | string | yes | – |
| type | string | yes | – |
No examples provided.
get_maintainer_profile Get basic profile info for an npm maintainer ~350
Given 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 maintainer' endpoint otherwise), plus precomputed aggregates: currentlyMaintainsCount (still listed as maintainer right now vs. already-revoked), totalWeeklyDownloads and totalDependents summed across every returned package, and avatarUrl — the same Gravatar image npmjs.com's own profile page shows for this account, derived from the email already public in the registry's own maintainer records but served from our own /api/avatar/:hash proxy rather than linking gravatar.com directly (null only if no returned package still lists an email for this exact username). This is a plain info lookup — it does NOT run the publish-cluster / compromised-account detection that check_maintainer_blast_radius does; use that tool instead when the goal is a security read on whether this account's recent activity looks like a takeover, not just a profile summary. Natural pairing with check_maintainer_changes: once that tool names a maintainer on a package, call this with that maintainer's username to see the rest of what they touch. npmscanUrl is this account's profile page on npmscan itself; npmProfileUrl is the account's actual page on npmjs.com, included for verification since that's the authoritative record of the account.
| Name | Type | Req | Description |
|---|---|---|---|
| maintainerUsername | string | yes | Exact npm username, e.g. "sindresorhus" — as shown at npmjs.com/~username. Not an email address, not a package name or scope. |
| Name | Type | Req | Description |
|---|---|---|---|
| avatarUrl | string|null | yes | – |
| currentlyMaintainsCount | number | yes | – |
| maintainerUsername | string | yes | – |
| note | string|null | yes | – |
| npmProfileUrl | string | yes | – |
| npmscanUrl | string | yes | – |
| packages | array | yes | – |
| packagesReturned | number | yes | – |
| resultsTruncated | boolean | yes | – |
| totalDependents | number | yes | – |
| totalPackagesFound | number | yes | – |
| totalWeeklyDownloads | number | yes | – |
No examples provided.
get_package Get npm package details ~356
Fetch 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, days since last publish, a topPackagesRank (position among npm's ~100k most-downloaded packages, from npmscan's own periodically-refreshed snapshot — not live), and a downloadTrend (growing/stable/declining vs. ~3 months ago). Also checks the LATEST version against OSV.dev for known vulnerabilities — isLatestVersionVulnerable/highestSeverity give a direct safe/not-safe answer, and each finding includes severity, a summary, and the fixedVersion to upgrade to (use get_package_version or query_vulnerabilities to check a specific older version instead). If the OSV.dev query itself fails (network/timeout/upstream outage), isLatestVersionVulnerable comes back `false` only because the field has to be a boolean — vulnerabilityCheckFailed:true is the real signal there, and means the safe/not-safe answer is unknown, not confirmed clean. Also returns popularityTier/maintenanceTier (deterministic rule-based labels, not model-generated) and a plain-language maintenanceSummary, plus a possibleTyposquatOf flag if the name is one typo away from a top-5,000 package while itself being obscure — read `deprecated` and maintenanceSummary before recommending a package, since a long gap since the last release can mean either a stable/finished package or a slowing one. Includes a link to the full npmscan.com analysis page.
| Name | Type | Req | Description |
|---|---|---|---|
| name | string | yes | Exact npm package name, e.g. "lodash" or "@scope/name" |
| Name | Type | Req | Description |
|---|---|---|---|
| createdAt | string|null | yes | – |
| daysSinceLastPublish | number|null | yes | – |
| description | string|null | yes | – |
| distTags | object | yes | – |
| downloadTrend | object | yes | – |
| githubStars | number|null | yes | – |
| hasBuiltInTypes | boolean | yes | – |
| highestSeverity | string|null | yes | – |
| homepage | string|null | yes | – |
| isLatestVersionVulnerable | boolean | yes | – |
| keywords | array | yes | – |
| latestVersion | string|null | yes | – |
| latestVersionInfo | – | yes | – |
| license | string|null | yes | – |
| maintainers | array | yes | – |
| maintenanceSummary | string | yes | – |
| maintenanceTier | string | yes | – |
| modifiedAt | string|null | yes | – |
| name | string | yes | – |
| npmscanUrl | string | yes | – |
| popularityTier | string | yes | – |
| possibleTyposquatOf | – | yes | – |
| recentVersions | array | yes | – |
| repository | string|null | yes | – |
| topPackagesRank | number|null | yes | – |
| vulnerabilities | array | yes | – |
| vulnerabilityCheckFailed | boolean | yes | – |
| weeklyDownloads | number|null | yes | – |
No examples provided.
get_package_version Get a specific npm package version ~174
Fetch 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 answer, and each finding includes severity, a summary, and the fixedVersion to upgrade to. Use this to check a version pinned in a lockfile rather than the latest release. If the OSV.dev query itself fails (network/timeout/upstream outage), isVulnerable comes back `false` only because the field has to be a boolean — vulnerabilityCheckFailed:true is the real signal there, and means the answer is unknown, not confirmed clean.
| Name | Type | Req | Description |
|---|---|---|---|
| name | string | yes | Exact npm package name |
| version | string | yes | Exact version string, e.g. "4.17.21" |
| Name | Type | Req | Description |
|---|---|---|---|
| dependencies | object | yes | – |
| deprecated | string|null | yes | – |
| description | string|null | yes | – |
| highestSeverity | string|null | yes | – |
| isVulnerable | boolean | yes | – |
| license | string|null | yes | – |
| name | string | yes | – |
| npmscanUrl | string | yes | – |
| scripts | object | yes | – |
| shasum | string|null | yes | – |
| tarball | string|null | yes | – |
| version | string | yes | – |
| vulnerabilities | array | yes | – |
| vulnerabilityCheckFailed | boolean | yes | – |
No examples provided.
get_remediation_playbook Get the concrete remediation playbook for a flagged finding ~294
Maps 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) and returns its concrete, ordered steps, severity tier, real-incident references, and prevention tips — not just a link. Pass the exact `rule` string(s) a prior finding already returned (batch up to 10 in one call to cover a whole findings array; duplicates resolving to the same playbook are deduplicated) or an `id` to look up a specific playbook by slug directly. Each matched rule also gets its own short situationNote explaining specifically what that rule caught — so a batch of several different rules landing on the same playbook does not read as identical, repeated boilerplate. An unrecognized rule or id is not an error — it comes back with matched:false and a note, since a low-severity or baseline-only finding (e.g. analyze_install_script's lifecycle-present) legitimately has no dedicated playbook.
| Name | Type | Req | Description |
|---|---|---|---|
| id | string | – | A playbook slug to look up directly, e.g. "postinstall-binary" — see /docs/playbooks |
| rules | array | – | 1-10 exact `rule` values copied from findings already returned by analyze_install_script/check_maintainer_changes/check_package_provenance |
| Name | Type | Req | Description |
|---|---|---|---|
| matches | array | yes | – |
| playbooks | array | yes | – |
No examples provided.
prioritize_remediation Rank a batch of flagged vulnerabilities by what to fix first ~439
Given a batch of vulnerability findings already flagged elsewhere (e.g. from batch_query_vulnerabilities, analyze_transitive_dependencies, or query_vulnerabilities across a whole package.json/lockfile audit), ranks them by what to actually fix first. Combines CISA KEV status (confirmed active exploitation in the wild — an automatic top-priority override), FIRST.org EPSS (probability of exploitation in the next 30 days — the primary ranking signal, since it measures likelihood rather than just impact), and severity (a secondary/fallback signal, most useful for a GHSA finding with no CVE alias) into one composite score and a remove-now/patch-now/patch-soon/scheduled/monitor tier per finding. A finding with `findingType: "malware"` (or a MAL-* advisoryId, auto-detected even when findingType is omitted) always lands in `remove-now` — the tier above patch-now — regardless of score: a confirmed-malicious package needs removal/replacement, not an "urgent patch" (there often isn't a fixed version to patch TO), and EPSS/severity don't meaningfully apply to "how malicious" the way they do to a genuine vulnerability. When EPSS data isn't available at all (no CVE id, or a real CVE that just isn't in FIRST.org's database) severity becomes the sole usable signal and is scored on its own scale instead of being diluted to a ~10% sliver of the composite — a bare CRITICAL/HIGH GHSA finding with no CVE alias lands in patch-soon/scheduled, not monitor, the way it would if severity kept its normal secondary weight with nothing else to combine it with. This does NOT re-query OSV/NVD itself — pass in the severity/CVE id findings other tools already returned; it only adds KEV/EPSS enrichment (the same data get_cve returns per-CVE) and ranks the batch. A CVE id shared by multiple findings in the same call is only looked up once.
| Name | Type | Req | Description |
|---|---|---|---|
| findings | array | yes | 1-200 previously-flagged vulnerability findings to rank |
| Name | Type | Req | Description |
|---|---|---|---|
| ranked | array | yes | – |
| summary | object | yes | – |
| totalFindings | number | yes | – |
| uniqueCveCount | number | yes | – |
No examples provided.
query_vulnerabilities Query known vulnerabilities for a package ~278
Query 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 direct answer, plus each finding's severity, a plain-language summary, CVE aliases, and the fixedVersion to upgrade to — not a raw advisory dump. Also cross-checks the name/version against the npm registry: isVulnerable:false on a package that does not actually exist there (typo, wrong ecosystem) would otherwise look identical to a genuinely clean result — see packageExists/existenceCheckNote. A name or version not found on the registry does NOT discard already-fetched OSV data or short-circuit into an error: OSV/GHSA advisory data is independent of the package's current registry listing, and a package/version pulled from npm for being malicious (unpublished/yanked) is exactly the case where real vulnerability data must still be reported, not hidden behind a 404. Use before recommending, installing, or upgrading a package.
| Name | Type | Req | Description |
|---|---|---|---|
| ecosystem | string | – | OSV ecosystem, default "npm" |
| name | string | yes | npm package name |
| version | string | – | Optional exact version to narrow results, e.g. to check one version pinned in a lockfile |
| Name | Type | Req | Description |
|---|---|---|---|
| existenceCheckNote | string|null | yes | – |
| highestSeverity | string|null | yes | – |
| isVulnerable | boolean | yes | – |
| npmscanUrl | string | yes | – |
| package | string | yes | – |
| packageExists | boolean|null | yes | – |
| version | string|null | yes | – |
| vulnerabilities | array | yes | – |
No examples provided.
search_packages Search npm packages ~301
Search 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-100k-by-downloads snapshot — not live, but a second independent popularity signal), and deterministic (not model-generated) popularityTier/maintenanceTier labels — a package matching the query with a 'very-low' popularityTier, zero dependents, or a 'stale' maintenanceTier is very likely an abandoned, copy-paste, or squatted package, not a real contender, regardless of how relevant its name/description look. A result may also carry possibleTyposquatOf — set when its name is one typo away (e.g. 'raect' vs 'react') from a top-5,000 package while itself having very low popularity; treat that as a red flag to call out explicitly, not silently filter. Use these (not name recognition or the package's own README) to judge which candidates are actually established, and call get_package on your shortlist for install-script risk, TypeScript support, and GitHub stars before recommending one. Includes a link to each package's full npmscan.com risk/analysis page.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | Max results to return (default 20, max 50) |
| query | string | yes | Search text, e.g. a package name or keywords |
| Name | Type | Req | Description |
|---|---|---|---|
| query | string | yes | – |
| results | array | yes | – |
| total | number | yes | – |
No examples provided.
simulate_dependency_upgrade Simulate upgrading one package from one version to another, or a whole batch at once ~745
Given a package and a current/target version, tells you whether that specific upgrade is a safe patch/minor bump or a likely-breaking major bump, before you actually run npm install. Natural follow-up to prioritize_remediation: pass its `packageName` + `currentVersion` + `fixedVersion` straight in to check whether the suggested fix is a drop-in patch or something that needs a review pass. Classifies the jump by semver (major/minor/patch/prerelease), treats a minor bump between two pre-1.0 (0.x) versions as breaking-risk per semver's own "the API isn't stable yet" convention, and flags skipping over multiple major versions in one jump (e.g. 2.x -> 5.x) as needing a per-major changelog review rather than just a diff against the final target. Beyond semver, it also checks the registry for real signals the version number alone won't tell you: whether the target version is marked deprecated, whether it introduces a preinstall/install/postinstall/prepare lifecycle script the current version didn't have, whether it tightens its engines.node requirement, and whether it is itself a prerelease. Finally it batch-checks both versions against OSV.dev and reports vulnerabilityDelta (introduced/fixed/still-vulnerable/still-clean) — catching the case where a suggested "fix" version doesn't actually clear every open CVE. Combines all of this into one riskTier (safe/low-risk/review-recommended/breaking-change-likely/unknown) with a reasons list explaining exactly which signals drove it. This does NOT read the package's changelog/release notes or scan the target tarball's source diff for actual breaking API usage — it's a fast, deterministic pre-check, not a substitute for reading the release notes on a flagged major bump. For simulating more than one upgrade at once — e.g. every "patch-now" finding prioritize_remediation just ranked — pass `packages: [{packageName, currentVersion, targetVersion?}, ...]` (1-100 items) instead of `packageName`/`currentVersion`/`targetVersion`, not bot…
| Name | Type | Req | Description |
|---|---|---|---|
| currentVersion | string | – | Currently installed version — an exact version (e.g. "4.17.20"), a semver range (e.g. "^4.17.0"), or a dist-tag. Required when `packageName` is used. |
| packageName | string | – | Exact npm package name, e.g. "lodash" or "@scope/name". Use this (with currentVersion) OR `packages`, not both. |
| packages | array | – | Batch of upgrades to simulate (1-100 items), each mirroring the single-item packageName/currentVersion/targetVersion fields. Use this OR packageName/currentVersion, not both. Natural pairing with pri… |
| targetVersion | string | – | Version to simulate upgrading to — exact version, range, or dist-tag (e.g. the fixedVersion a prioritize_remediation finding named). Omit to use the registry's "latest" dist-tag. Only applies to the… |
| Name | Type | Req | Description |
|---|---|---|---|
| batchSummary | object | – | – |
| currentIsVulnerable | boolean|null | – | – |
| currentVersionNote | string|null | – | – |
| direction | string | – | – |
| engineChange | – | – | – |
| installScriptIntroduced | boolean|null | – | – |
| isBreakingBySemver | boolean|null | – | – |
| majorVersionsSkipped | number|null | – | – |
| npmscanUrl | string | – | – |
| packageName | string | – | – |
| reasons | array | – | – |
| requestedCurrentVersion | string | – | – |
| requestedTargetVersion | string | – | – |
| resolvedCurrentVersion | string|null | – | – |
| resolvedTargetVersion | string|null | – | – |
| results | array | – | – |
| riskTier | string | – | – |
| semverBump | – | – | – |
| targetDeprecated | string|null | – | – |
| targetIsPrerelease | boolean|null | – | – |
| targetIsVulnerable | boolean|null | – | – |
| targetVersionNote | string|null | – | – |
| targetVulnerabilities | array | – | – |
| verdict | string | – | – |
| vulnerabilityDelta | – | – | – |
| zeroMajorNote | string|null | – | – |
No examples provided.
suggest_alternative Suggest better-maintained npm alternatives ~340
Given 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, latest-version OSV verdict, popularity/maintenance tiers, typosquat flag), then combines maintainer-provided deprecation hints with deterministic npm search-based category matching. It ranks candidates using category overlap plus search_packages-style popularity/maintenance signals, filters out typosquats and weak/stale contenders, and returns a short list with plain-language whySuggested notes. A candidate is also never suggested if it's deprecated, has a confirmed HIGH/CRITICAL OSV vulnerability, or its own OSV check itself failed (network/timeout/upstream outage) — an unverifiable candidate is excluded the same as a confirmed-bad one, not defaulted to 'looks fine', since this tool's entire purpose is not recommending something dangerous. Best for turning a 'don't use this package' warning into an actionable replacement shortlist. If the OSV.dev vulnerability check fails for the SOURCE package (as opposed to a candidate, which gets excluded per above), source.isLatestVersionVulnerable comes back `false` only because the field has to be a boolean — source.vulnerabilityCheckFailed:true is the real signal there, and means that safe/not-safe answer is unknown, not confirmed clean.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | Max suggestions to return (default 5, max 10) |
| name | string | yes | Exact npm package name, e.g. "request" or "node-sass" |
| reason | string | – | Optional reason to bias filtering/ranking |
| Name | Type | Req | Description |
|---|---|---|---|
| categoryTokens | array | yes | – |
| confidence | string | yes | – |
| nonPackageAlternatives | array | yes | – |
| reason | string | yes | – |
| searchedQueries | array | yes | – |
| source | object | yes | – |
| suggestions | array | yes | – |
No examples provided.
What is the NPMScan MCP server?
NPMScan is an MCP server listed in the public MCP registry as io.github.salemalem/npmscan. Detect malicious or vulnerable npm packages: registry search, OSV.dev and GitHub advisory lookups. This page covers its hosted endpoint (https://npmscan.com/api/mcp).
Is the NPMScan MCP server safe to use?
NPMScan scores 83 out of 100 on VerifyMCP. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the NPMScan MCP server expose?
NPMScan exposes 23 tools: search_packages, get_package, get_package_version, get_maintainer_profile, query_vulnerabilities, and 18 more. Their descriptions and schemas cost roughly 11,839 tokens of context every time the server is loaded.
Does the NPMScan MCP server require authentication?
No. We connected to NPMScan without credentials and it answered, so anything it exposes is reachable by anyone who knows the address.
Is the NPMScan MCP server still maintained?
NPMScan is still listed as active in the MCP registry. We last reached this channel on 22 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.