pkg-health-mcp aims to answer a common question: is this dependency still maintained? Through a unified scoring engine, it scores the maintenance health of npm packages, PyPI packages, and GitHub repositories, helping developers identify potentially abandoned dependencies before installing them.
Key capabilities:
- Six-signal scoring: release and commit recency, active committers, time to first maintainer response, download trends, OpenSSF Scorecard, license. Each signal is scored 0-100, combined by weight; signals with missing data are dropped and the weights rescaled, along with a confidence value indicating how much of the weight is backed by data.
- Hard caps: deprecated packages score at most 10, archived repositories at most 15.
- Grade bands: A ≥ 80, B ≥ 65, C ≥ 50, D ≥ 35, F < 35.
- Explainable output: each score comes with per-signal details and a concrete list of risks, not just a number.
- Supports npm, PyPI, and any GitHub repository (via owner/repo or a GitHub URL).
- Supports manifests and lockfiles: package.json, requirements.txt, pyproject.toml (PEP 621 and Poetry), as well as package-lock.json, yarn.lock, pnpm-lock.yaml, poetry.lock, uv.lock for transitive dependencies. Git dependencies on GitHub are scored by repository.
- Three usage modes: MCP server (for MCP clients such as Claude Code, Claude Desktop, Cursor, and VS Code), CLI (audit manifests or lockfiles), GitHub Action (add a health report to every PR and optionally fail the build via a --fail-under threshold).
- Disk cache: 12 hours by default, shared between the CLI and MCP server, so repeated scans make almost no API calls.
- No account or API key required; an optional GITHUB_TOKEN raises GitHub rate limits.
- Local and private: runs on the user's machine, communicates directly with public APIs, no backend, no telemetry.
- Output formats: human-readable, JSON and Markdown, suitable for terminals, scripts, and CI job summaries.
Usage:
- Requires Node.js 20 or later. No global installation is needed; the package is downloaded via npx on first run.
- The MCP server communicates over stdio and can be configured in Claude Desktop (edit claude_desktop_config.json), Cursor (~/.cursor/mcp.json or .cursor/mcp.json within the project), VS Code (.vscode/mcp.json), or other MCP clients.
- Provides three MCP tools: score_package (score a single package), scan_manifest (scan an entire manifest or lockfile, sorted by risk), and compare_packages (compare 2-5 alternatives from the same registry or GitHub repositories). All tools are read-only and annotated with readOnlyHint and idempotentHint.
- The CLI can use the same engine without an MCP client, supports human-readable output (! marks risks, ~ marks data warnings), and exit codes: 0 success, 1 package below --fail-under or an error, 2 invalid arguments.
- The GitHub Action can write the results table to the job summary and optionally fail the job.
Use cases:
- AI agents check the maintenance status of libraries before recommending them, avoiding recommendations of deprecated libraries.
- Engineering leads quickly audit project dependencies.
- Security and compliance teams get repeatable, explainable maintenance signals to use alongside vulnerability scanners.
- Add a dependency health report to each PR in CI and set thresholds.
Limitations and caveats:
- Focuses on maintainability rather than security; does not look for known vulnerabilities and must be used with npm audit, pip-audit, or OSV.
- "Complete" does not mean "dead": small, feature-complete tools may have had no commits for years but are still safe; scoring will still flag them, so read the risks before acting.
- Repository data comes from GitHub; packages hosted on GitLab, Codeberg, or self-hosted platforms are scored only from registry data, with lower confidence.
- Activity in a monorepo is shared with every package published from it.
- Large lockfiles are slow with a cold cache; a lockfile with 800 packages requires thousands of API calls the first time, so it is recommended touse a token and --max or wait for the cache to warm up.
- Maintainer responses are attributed by GitHub role; only replies from owners, organization members, and collaborators count, so projects that classify community members may appear slower to respond.
- No code or manifests are sent; only package names leave the machine as part of public API URLs.
- Licensed under Apache 2.0, usable commercially.
- The test runner requires Node.js 22+.
No specific pricing information is currently provided.