Skip to main content
Glama
packagerating MCP Server

packagerating MCP Server

Official

packagerating MCP Server

Give Claude (or any MCP-compatible client) live, on-demand access to packagerating.com package health/risk scores — right inside your coding session, not just in CI.

Three tools, each a thin mirror of the public REST API:

Tool

What it does

list_packages

List scored packages, sorted by composite score by default

get_package

Full score + dimension breakdown for one package by name. Transparently waits for a first-ever crawl to finish.

request_crawl

Pre-warm one or more packages for crawling without waiting on the result

A never-before-scored package can take up to ~60 seconds to return on first lookup via get_package (the server waits for the crawl to finish); every subsequent lookup is fast.

Setup

  1. Get a free API key at packagerating.com.

  2. Add the server. In Claude Code:

claude mcp add packagerating -e PACKAGERATING_API_KEY=your-api-key-here -- npx -y @packagerating/mcp-server

That adds it in Claude Code's local scope (personal, this project only). To share it with a team via a committed .mcp.json, add --scope project.

For any other MCP-compatible client, add this to its config:

{
  "mcpServers": {
    "packagerating": {
      "command": "npx",
      "args": ["-y", "@packagerating/mcp-server"],
      "env": {
        "PACKAGERATING_API_KEY": "your-api-key-here"
      }
    }
  }
}

No local install, no build step either way — npx fetches the latest published version each time.

Related MCP server: pkg-intel-mcp

Example

"Is left-pad safe to add as a dependency? What about lodash?"

Claude calls get_package for each name and can compare the results directly in conversation — liveness, community, security, dependency posture, versioning, and dependency-tree risk, plus the three composite scores (General, Automation, Risk).

Development

npm install
npm test          # unit tests, mocked HTTP — no live API calls
npm run typecheck
npm run build      # bundles to dist/index.js via @vercel/ncc
npm run smoke-test # exercises the real production API — requires a real PACKAGERATING_API_KEY

Available Tools

3 tools
get_packageGet package scoreA

Get the full health/risk score for a single package by name. If the package has never been scored, this triggers a crawl and waits (bounded) for it to finish before returning.

Inputs: name (required), version, language.

list_packagesList packagesA

List npm/PyPI packages that have at least one score, sorted by composite score by default.

Inputs: sort, limit, order, language.

request_crawlRequest a crawlA

Enqueue one or more packages for crawling without waiting for the result. Useful for pre-warming several packages at once, e.g. before comparing alternatives.

Inputs: language (required), packages (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct purpose: listing scored packages, fetching a single package's score, and enqueueing crawls without waiting. Although get_package can trigger a crawl, the key difference is that request_crawl is for background pre-warming, so there is no ambiguity.

    Naming Consistency5/5

    All tool names follow the same verb_noun pattern: list_packages, get_package, request_crawl. The naming is predictable and consistently formatted.

    Tool Count5/5

    With only 3 tools, the server is tightly scoped to its purpose of providing package ratings. Each tool is necessary and there is no bloat, making the count feel intentional rather than thin.

    Completeness5/5

    The tool surface covers the core workflows: listing available packages, retrieving detailed scores, and requesting background crawls for pre-warming. There are no obvious operational gaps for the stated domain.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers