PyPI & npm Package Health, Releases & Supply-Chain Risk (MCP)
Pricing
from $2.20 / 1,000 package analyzeds
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
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}/jsonandregistry.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-readableissues. - Optional Download Velocity: Enriches results with
downloadsLastMonth(plusdownloadsLastWeekanddownloadsLastDayfor PyPI) viapypistats.organdapi.npmjs.orgwith gracefulnullfallback if rate-limited or unavailable. - Zero-Charge Guardrails: Invalid entries (
"","bad:pkg", whitespace/control chars) emitstatus: "invalid_input", and missing packages emitstatus: "not_found", both with0PPE 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
| Field | Type | Default | Description |
|---|---|---|---|
packages | string[] | ["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. |
timeoutSeconds | integer | 12 | Per-request HTTP timeout in seconds (3–30). |
includeDownloadStats | boolean | true | Fetch recent download counts from pypistats.org and api.npmjs.org (graceful null fallback). |
conciseMcpMode | boolean | true | Caps maintainer lists (top 5), project URLs (top 5), and summaries (280 chars) for MCP context efficiency. |
Output Dataset Fields
| Field | Type | Description |
|---|---|---|
registry / name | string | Normalized registry (pypi or npm) and canonical package name. |
status / ok | string / boolean | ok (true), invalid_input (false), not_found (false), or error (false). |
latestVersion | string | null | Latest published version (info.version on PyPI, dist-tags.latest on npm). |
daysSinceLastRelease | integer | null | Days elapsed since the latest version was published. |
maintenanceHealthScore | integer | Deterministic 0–100 score (HEALTHY, MODERATE, AT_RISK, CRITICAL, or ERROR). |
riskFlags | object | { deprecated, yankedLatest, staleOver365Days, missingLicense, singleMaintainer, hasRepositoryUrl }. |
downloadsLastMonth | integer | null | Last 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.combefore adding a Python or JS dependency. - Vendor & Supply-Chain Audits: Batch-check open-source dependencies across internal SBOMs in n8n to flag
staleOver365Days,deprecated, oryankedLatestpackages. - 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 Tier | Price per Package Analyzed | Effective Rate / 1,000 Packages |
|---|---|---|
Free (FREE) | $0.0040 | US$4.00 |
Starter (BRONZE) | $0.0034 | US$3.40 (15% off) |
Scale (SILVER) | $0.0028 | US$2.80 (30% off) |
Business (GOLD) | $0.0022 | US$2.20 (45% off) |
Enterprise (PLATINUM / DIAMOND) | $0.0018 / $0.0014 | US$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-mcpwith{"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 onmaintenanceHealthScore >= 65,riskFlags.deprecated == false, andriskFlags.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.orgis temporarily rate-limited? The Actor degrades gracefully (downloadsLastMonth: null) and still returns full release, maintainer, license, and risk-flag intelligence frompypi.org. - Am I charged for
404package typos? No. OnlyHTTP 200metadata retrievals triggerpackage-analyzed.