# Package Health

> Package Health is an open-source MCP server for health and science. Score npm, PyPI and GitHub projects 0-100 for maintenance health before you depend on them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/orcsnren/pkg-health-mcp
- **MCP Registry name:** io.github.orcsnren/pkg-health-mcp
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science), [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

Package Health runs on your machine over stdio and turns six signals into an A to F grade and a plain list of risks: release and commit recency, active committers, time to first maintainer response, download trend, OpenSSF Scorecard and license. Its README shows request scoring 10 out of 100 with a deprecation warning while express scores 99.

The same engine also ships as a command-line scanner that reads package.json, requirements.txt, pyproject.toml and lock files for transitive dependencies, and as a GitHub Action that can fail a build below a score. Results are cached on disk for 12 hours. When a data source is unreachable it lowers a confidence value rather than the score.

No account or key is needed. An optional GITHUB_TOKEN lifts GitHub's limit from 60 to 5,000 requests an hour and enables the response-time signal. The README says it runs locally with no backend and no telemetry.

## Features

- **Six-signal score:** Combines activity, maintainers, issue response, downloads, Scorecard and license.
- **Plain-language risks:** Each result lists concrete risks, such as deprecation or no recent releases.
- **Manifest and lock scans:** Reads package.json, requirements.txt, pyproject.toml and common lock files.
- **CI gating:** A threshold flag and GitHub Action fail builds on weak dependencies.
- **Local operation:** Runs on your machine with no backend and no telemetry.
- **Disk cache:** Reuses results for 12 hours to save API calls.

## Good for

- Stop an assistant suggesting abandoned libraries
- Audit a project's dependencies, including transitive ones
- Fail pull requests whose dependencies fall below a score
- Compare alternative packages before choosing one
- Add a maintenance signal alongside vulnerability scanners

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add pkg-health-mcp --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y pkg-health-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add pkg-health-mcp --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y pkg-health-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.pkg-health-mcp]
command = "npx"
args = ["-y", "pkg-health-mcp"]
env = { GITHUB_TOKEN = "<GITHUB_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e GITHUB_TOKEN='<GITHUB_TOKEN>' pkg-health-mcp npx -- -y pkg-health-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pkg-health-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkg-health-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 1 tool only read data. From the server's own tool labels and tool names; not verified by us.

- `check_package` (name suggests: reads): Score one npm or PyPI package or GitHub repository for maintenance health.

## FAQ

### Do I need a GitHub token?

It is optional but raises the limit from 60 to 5,000 requests an hour and enables response-time measurement.

### Which ecosystems are covered?

npm packages, PyPI packages and any GitHub repository.

### Does Package Health send data to a backend?

No. The README says it talks directly to public APIs from your machine with no telemetry.

### What runtime does Package Health need?

Node.js 20 or later, started with npx.

### Is Package Health free?

Yes. Package Health is open source, so you can use and self-host it for free.

### How do I add Package Health to Claude Code?

Run this command in your terminal: claude mcp add pkg-health-mcp --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y pkg-health-mcp

### What are the best alternatives to Package Health?

The closest alternatives to Package Health are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/package-health
