npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@pkgseer/cli

v0.1.4

Published

CLI companion for PkgSeer - package intelligence for developers and AI assistants

Readme

@pkgseer/cli

CLI and MCP server for PkgSeer — package intelligence for developers and AI assistants.

Get insights about packages across npm, PyPI, and Hex registries: metadata, security vulnerabilities, dependencies, and quality metrics. Works standalone or as an MCP server for AI assistants like Claude and Cursor.

Installation

The easiest way to get started is using npx — no installation required:

npx @pkgseer/cli --help

For frequent use, install globally:

npm install -g @pkgseer/cli

Getting Started

1. Authenticate (Recommended)

While you can use PkgSeer without authentication, logging in gives you higher rate limits and access to all features:

pkgseer login

This opens your browser to authenticate with your PkgSeer account. Your credentials are stored securely in ~/.pkgseer/.

To check your authentication status:

pkgseer auth status

2. Use with AI Assistants

The main use case for this CLI is as an MCP (Model Context Protocol) server that gives AI assistants access to package intelligence.

Cursor IDE

Add this to your .cursor/mcp.json file:

{
  "mcpServers": {
    "pkgseer": {
      "command": "npx",
      "args": ["-y", "@pkgseer/cli", "mcp"]
    }
  }
}

Claude Desktop

Add this to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "pkgseer": {
      "command": "npx",
      "args": ["-y", "@pkgseer/cli", "mcp"]
    }
  }
}

Once configured, your AI assistant can use tools to answer questions like:

  • "What security vulnerabilities does lodash have?"
  • "Compare react vs preact vs solid-js"
  • "What are the dependencies of express?"

Prompt for AI Assistants

To help your AI assistant use PkgSeer proactively, add this to your project rules (.cursor/rules, AGENTS.md, or similar):

When working with dependencies:

- Use PkgSeer MCP tools to check for security vulnerabilities before adding new packages
- Compare package alternatives with compare_packages when multiple options exist
- Review package quality metrics to ensure dependencies are well-maintained

Available Tools

When running as an MCP server, the following tools are available to AI assistants:

| Tool | What it does | | ------------------------- | ----------------------------------------------------------------------------------- | | package_summary | Get package metadata, latest versions, security advisories, and quickstart examples | | package_vulnerabilities | Find known security vulnerabilities affecting a package | | package_dependencies | Explore the dependency tree (direct and transitive) | | package_quality | View quality metrics and maintenance scores | | compare_packages | Compare multiple packages side-by-side |

All tools work with npm, PyPI, and Hex registries.

CLI Commands

pkgseer --help           # Show all available commands
pkgseer --version        # Show version number

pkgseer login            # Authenticate with your PkgSeer account
pkgseer logout           # Sign out and clear stored credentials
pkgseer auth status      # Check if you're logged in and token validity

pkgseer mcp              # Start the MCP server (for AI assistant integration)

Need Help?

License

MIT © Juha Litola