PyPI & npm Package Health, Releases & Supply-Chain Risk (MCP) avatar

PyPI & npm Package Health, Releases & Supply-Chain Risk (MCP)

Pricing

from $2.20 / 1,000 package analyzeds

Go to Apify Store
PyPI & npm Package Health, Releases & Supply-Chain Risk (MCP)

PyPI & npm Package Health, Releases & Supply-Chain Risk (MCP)

Audit PyPI and npm packages in real time for release freshness, deprecated or yanked versions, maintainer bus-factor, license hygiene, repository links, download velocity, and deterministic 0-100 maintenance health & supply-chain risk flags. MCP-ready.

Pricing

from $2.20 / 1,000 package analyzeds

Rating

0.0

(0)

Developer

Cade Hockley

Cade Hockley

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Audit PyPI (pypi.org + pypistats.org) and npm (registry.npmjs.org + api.npmjs.org) dependencies in real time for release freshness, deprecated or yanked latest versions, maintainer bus-factor, license hygiene, repository URLs, download velocity, and a deterministic 0-100 maintenance health score with structured supply-chain risk flags.

Built for Apify Pay-per-Event ($0.004 per valid package analyzed = US$4.00 / 1,000 packages; malformed inputs and HTTP 404 not-found packages are not charged) and ready for Hosted MCP (mcp.apify.com), Clay, and n8n workflows.

Overview & Key Features

  • Dual-Registry Live Metadata: Queries official pypi.org/pypi/{name}/json and registry.npmjs.org/{name} APIs (including scoped npm packages such as @types/node) using pure Python stdlib HTTP/JSON with zero heavy scraping overhead.
  • Supply-Chain Risk Flags: Computes deterministic boolean flags (deprecated, yankedLatest, staleOver365Days, missingLicense, singleMaintainer, hasRepositoryUrl) plus human-readable issues.
  • Optional Download Velocity: Enriches results with downloadsLastMonth (plus downloadsLastWeek and downloadsLastDay for PyPI) via pypistats.org and api.npmjs.org with graceful null fallback if rate-limited or unavailable.
  • Zero-Charge Guardrails: Invalid entries ("", "bad:pkg", whitespace/control chars) emit status: "invalid_input", and missing packages emit status: "not_found", both with 0 PPE charges.
  • Concise MCP Mode: Limits verbose maintainer arrays, URL maps, and long descriptions so AI coding agents and dependency auditors stay compact inside LLM context windows.

Input & Output Reference

Input Parameters

FieldTypeDefaultDescription
packagesstring[]["pypi:requests", "npm:axios"]Required list of registry-prefixed packages (pypi:<name>, npm:<name>, npm:@scope/name). Also accepts {"registry": "pypi"|"npm", "name": "..."} objects programmatically.
timeoutSecondsinteger12Per-request HTTP timeout in seconds (3–30).
includeDownloadStatsbooleantrueFetch recent download counts from pypistats.org and api.npmjs.org (graceful null fallback).
conciseMcpModebooleantrueCaps maintainer lists (top 5), project URLs (top 5), and summaries (280 chars) for MCP context efficiency.

Output Dataset Fields

FieldTypeDescription
registry / namestringNormalized registry (pypi or npm) and canonical package name.
status / okstring / booleanok (true), invalid_input (false), not_found (false), or error (false).
latestVersionstring | nullLatest published version (info.version on PyPI, dist-tags.latest on npm).
daysSinceLastReleaseinteger | nullDays elapsed since the latest version was published.
maintenanceHealthScoreintegerDeterministic 0–100 score (HEALTHY, MODERATE, AT_RISK, CRITICAL, or ERROR).
riskFlagsobject{ deprecated, yankedLatest, staleOver365Days, missingLicense, singleMaintainer, hasRepositoryUrl }.
downloadsLastMonthinteger | nullLast 30-day download count when includeDownloadStats is enabled and available.

Use Cases

  • AI Coding & AppSec Agents: Verify release recency, license hygiene, deprecation status, and single-maintainer bus factor via mcp.apify.com before adding a Python or JS dependency.
  • Vendor & Supply-Chain Audits: Batch-check open-source dependencies across internal SBOMs in n8n to flag staleOver365Days, deprecated, or yankedLatest packages.
  • DevTools Market Intelligence: Track monthly PyPI/npm download velocity and maintainer counts across competing SDKs in Clay.

Pay-per-Event Pricing & Store Discounts

This Actor uses Apify Pay-per-Event (PPE) billing on package-analyzed, with automatic Apify Store discounts for paid subscription tiers:

Apify TierPrice per Package AnalyzedEffective Rate / 1,000 Packages
Free (FREE)$0.0040US$4.00
Starter (BRONZE)$0.0034US$3.40 (15% off)
Scale (SILVER)$0.0028US$2.80 (30% off)
Business (GOLD)$0.0022US$2.20 (45% off)
Enterprise (PLATINUM / DIAMOND)$0.0018 / $0.0014US$1.80 / US$1.40
  • Charged ONLY on HTTP 200: Malformed entries (invalid_input), missing packages (not_found), and upstream failures (error) incur $0.00. Respects Apify spending caps cleanly at 256 MB RAM.

Example Input

{
"packages": [
"pypi:requests",
"npm:axios",
"npm:@types/node"
],
"timeoutSeconds": 12,
"includeDownloadStats": true,
"conciseMcpMode": true
}

Example Output

{
"input": "npm:axios",
"registry": "npm",
"name": "axios",
"status": "ok",
"ok": true,
"latestVersion": "1.21.1",
"summary": "Promise based HTTP client for the browser and node.js",
"license": "MIT",
"requiresPython": null,
"latestReleaseAtUtc": "2026-11-09T16:17:55.565000+00:00",
"daysSinceLastRelease": 18,
"totalReleases": 94,
"versionsCount": 94,
"dependenciesCount": 3,
"maintainersCount": 1,
"maintainers": ["jasonsaayman"],
"downloadsLastMonth": 630824254,
"downloadsLastWeek": null,
"downloadsLastDay": null,
"repositoryUrl": "https://github.com/axios/axios",
"homepageUrl": "https://axios-http.com",
"projectUrls": {
"Repository": "https://github.com/axios/axios",
"Homepage": "https://axios-http.com"
},
"deprecatedMessage": null,
"maintenanceHealthScore": 90,
"healthBand": "HEALTHY",
"riskFlags": {
"deprecated": false,
"yankedLatest": false,
"staleOver365Days": false,
"missingLicense": false,
"singleMaintainer": true,
"hasRepositoryUrl": true
},
"issues": [
"Single maintainer/owner detected (bus-factor concentration risk)."
],
"auditedAtUtc": "2026-11-27T17:58:03+00:00",
"error": null
}

Hosted MCP Configuration (mcp.apify.com)

Connect this Actor in Claude Desktop, Cursor, Windsurf, or any MCP-compatible agent using Apify's hosted MCP endpoint:

{
"mcpServers": {
"apify": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.apify.com/?actors=the_magic_dragon/pypi-npm-package-health-mcp",
"--header",
"Authorization: Bearer ${APIFY_TOKEN}"
]
}
}
}

Clay & n8n Usage Notes

  • Clay: Add an Apify — Run Actor or HTTP API enrichment column pointing to the_magic_dragon~pypi-npm-package-health-mcp with {"packages": ["npm:{{Package Name}}"], "conciseMcpMode": true} to enrich SaaS/OSS vendor tech stacks with release freshness and single-maintainer supply-chain signals.
  • n8n: Use the official Apify node (Run an Actor and get dataset items) inside CI/CD, Dependabot, or security-triage workflows to gate dependency upgrades on maintenanceHealthScore >= 65, riskFlags.deprecated == false, and riskFlags.yankedLatest == false.

FAQ & Troubleshooting

  • How are scoped npm packages formatted? Prefix with npm: as usual, e.g. "npm:@types/node" or "npm:@modelcontextprotocol/sdk".
  • What if pypistats.org is temporarily rate-limited? The Actor degrades gracefully (downloadsLastMonth: null) and still returns full release, maintainer, license, and risk-flag intelligence from pypi.org.
  • Am I charged for 404 package typos? No. Only HTTP 200 metadata retrievals trigger package-analyzed.