Skip to main content
Glama
pkg-intel-mcp
by JanMaa

pkg-intel-mcp

Package intelligence for AI coding agents. An MCP server that answers: is this npm package safe to recommend?

AI coding agents constantly recommend outdated or deprecated packages — request, moment, tslint — because their training data is frozen in time. pkg-intel-mcp gives any MCP client (Claude Desktop, Claude Code, Cursor, Windsurf, ...) live tools to check package health before suggesting an install.

Tools

Tool

What it answers

Registries

package_health

Is this package alive? Downloads, last publish, deprecation, license, and a healthy / caution / avoid verdict.

npm, PyPI

compare_packages

Which of these 2–5 alternatives should I pick? Side-by-side with a recommendation.

npm, PyPI

bundle_size

What does this cost my frontend bundle? Minified + gzip via bundlephobia.

npm

deprecation_check

Is this deprecated (npm) or yanked (PyPI), and what should I use instead?

npm, PyPI

vulnerability_check

Any known CVEs in this package/version, and which version fixes them? Via OSV.dev.

npm, PyPI

All registry-aware tools take an optional registry parameter ("npm" default, or "pypi"). No API keys required — everything runs against public endpoints (npm registry, PyPI, pypistats, bundlephobia, OSV.dev) with a 15-minute in-memory cache.

Related MCP server: @4da/mcp-server

Quick start

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "pkg-intel": {
      "command": "npx",
      "args": ["-y", "pkg-intel-mcp"]
    }
  }
}

Restart Claude Desktop fully (quit from the menu bar), then ask: "Is request still okay to use? What should I use instead?"

Cursor

Same JSON shape in ~/.cursor/mcp.json — see examples/ for copy-paste configs, including local development setup.

Development

npm install
npm run dev        # run with tsx
npm test           # vitest, fully mocked, no network
npm run inspect    # MCP Inspector against the built server

Rules of the road: never console.log (stdout is the JSON-RPC channel — use console.error), keep module: Node16 in tsconfig, and verify tools in the Inspector before blaming a client config. See CLAUDE.md for full conventions.

Remote / team use (HTTP transport)

stdio is the default and right for personal use. For a shared server:

pkg-intel-mcp --http 3000
# MCP endpoint:  POST http://host:3000/mcp
# Liveness:      GET  http://host:3000/healthz

The HTTP mode is fully stateless — no sessions, no sticky routing — so it scales behind any plain load balancer.

Roadmap

  • v1: core tools, stdio, npm publish

  • v1.1: vulnerability_check via OSV.dev (also key-free)

  • v2: PyPI support, stateless Streamable HTTP transport

  • v2.1: migrate to MCP SDK v2 / 2026-07-28 spec once stable

  • Later: Rust crates.io support, SBOM audit tool

License

MIT

Available Tools

5 tools
bundle_sizeA

Get the minified and gzipped bundle size of an npm package (via bundlephobia), plus its dependency count. npm only — bundle size has no PyPI equivalent. Use when frontend bundle weight matters.

Inputs: name (required), version.

compare_packagesA

Compare 2-5 packages from the same registry (npm or PyPI) side by side on adoption, maintenance freshness, deprecation status, and bundle size (npm only). Returns a structured comparison and a recommendation. Use when choosing between alternative libraries.

Inputs: names (required), registry.

deprecation_checkA

Check whether an npm package is deprecated or a PyPI package is yanked, including the message which often names the recommended replacement.

Inputs: name (required), registry.

package_healthA

Get a health report for an npm or PyPI package: weekly downloads, last publish date, deprecation/yank status, license, and a healthy/caution/avoid verdict with reasons. Use this before recommending or installing a package.

Inputs: name (required), registry.

vulnerability_checkA

Check a package for known security vulnerabilities via OSV.dev. Give a version to check that exact version, or omit it to check the latest release. Returns advisory IDs, CVEs, severity, and fixed versions. Use before recommending a package or when auditing dependencies.

Inputs: name (required), version, registry.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 5 tools

    Disambiguation4/5

    Tools are mostly distinct, but deprecation_check overlaps with package_health since the latter already includes deprecation status. The other tools—compare_packages, bundle_size, and vulnerability_check—target clearly separate concerns, so an agent can usually pick correctly.

    Naming Consistency3/5

    Naming mixes patterns: compare_packages is verb_noun while the rest are noun_noun or adjective_noun (package_health, bundle_size, deprecation_check, vulnerability_check). The convention is readable but not consistently verb-first.

    Tool Count5/5

    Five tools is well within the ideal range for a focused package-intelligence server. Each tool serves a concrete evaluation need without bloating the surface.

    Completeness4/5

    Covers key evaluation aspects: health, security, deprecation, bundle size, and comparison. Minor gaps like raw metadata (description, homepage) or version history are absent, but they are not critical for the server's stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides crowdsourced package intelligence and security alerts for AI coding assistants by analyzing project dependencies and framework co-occurrence. It enables automated project scans, package alternative discovery, and data-driven recommendations across multiple programming ecosystems.
      10
      21 npm
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Open source intelligence for AI agents — GitHub project-health scoring, package dependency-risk analysis, trending repositories, license checks, and side-by-side package comparison.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Validates and checks packages across 19 ecosystems to prevent AI agents from installing hallucinated, deprecated, or malicious packages.
      55 npm
      AGPL 3.0