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 🙏

© 2026 – Pkg Stats / Ryan Hefner

osv-ui-mcp

v1.0.7

Published

MCP server for osv-ui — scan projects for CVEs, open visual dashboard, apply fixes with human confirmation

Downloads

59

Readme

osv-ui-mcp

MCP server for osv-ui — scan projects for CVEs inside Claude Desktop, Cursor, and more.

Why this exists

AI Agents (like Claude or Cursor) can write code, but they shouldn't always be trusted to "blindly" fix security vulnerabilities.

osv-ui-mcp provides a Human-in-the-loop workflow:

  1. The AI scans your project and finds vulnerabilities.
  2. Instead of just showing text, it opens a beautiful visual dashboard in your browser.
  3. You review the CVEs, severity, and suggested fixes in the UI.
  4. You tell the AI: "OK, fix exactly what I saw in the dashboard."

Human-in-the-loop Flow

Comparison with others

| | osv-ui-mcp | StacklokLabs/osv-mcp | others | |---|:---:|:---:|:---:| | Auto-detect manifests | ✅ | ❌ manual query | ❌ | | npm + Python + Go + Rust | ✅ | ✅ (query only) | partial | | Visual dashboard (browser UI) | ✅ | ❌ | ❌ | | Human-in-the-loop confirm | ✅ | ❌ | ❌ | | Apply fixes from chat | ✅ | ❌ | ❌ |

Install

npm install -g osv-ui-mcp
# also install osv-ui for the dashboard feature
npm install -g osv-ui

Setup — Claude Desktop

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

{
  "mcpServers": {
    "osv-ui": {
      "command": "osv-ui-mcp"
    }
  }
}

Setup — Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "osv-ui": {
      "command": "osv-ui-mcp"
    }
  }
}

Setup — Claude Code (npx, no install)

claude mcp add osv-ui -- npx osv-ui-mcp

Usage

Just talk naturally in Claude or Cursor:

"Scan my project for CVEs"
"Are there any critical vulnerabilities in ./frontend?"
"Show me the fix commands for axios and lodash"
"Open the security dashboard so I can review before fixing"
"Fix all high severity vulnerabilities in ./api"

Available MCP tools

scan_project

Scan a directory for CVEs across all supported ecosystems.

scan_project({ path: "./", severity_filter: "high" })

Returns: full vulnerability report with risk score, CVE list, and fix recommendations.

open_dashboard

Launch the osv-ui visual dashboard in your browser.

open_dashboard({ path: "./" })

This is the human-in-the-loop step — review the full dashboard before applying any fixes. The dashboard shows severity charts, CVE drill-down, and the upgrade guide.

get_fix_commands

Get safe upgrade commands without executing them.

get_fix_commands({ path: "./", packages: ["axios", "lodash"] })

Returns: a table of current → safe version + commands to run.

apply_fixes

Execute upgrade commands after your explicit confirmation.

apply_fixes({ path: "./", packages: ["axios", "lodash"] })

⚠️ Always review with get_fix_commands or open_dashboard before calling this.

Human-in-the-loop flow

You:   "Scan my project for vulnerabilities and fix them"

AI:    scan_project("./")
       → "Found 28 CVEs: 1 HIGH, 2 MODERATE, 25 LOW.
          3 direct packages can be upgraded.
          Want me to open the dashboard to review first?"

You:   "Yes, show me the dashboard"

AI:    open_dashboard("./")
       → Browser opens with full osv-ui UI ✨

You:   [reviews dashboard, comes back]
       "Fix axios and lodash, skip next for now"

AI:    get_fix_commands({ packages: ["axios", "lodash"] })
       → "Will run:
          npm install [email protected]  (fixes 4 CVEs)
          npm install [email protected] (fixes 3 CVEs)
          Confirm?"

You:   "Yes, do it"

AI:    apply_fixes({ packages: ["axios", "lodash"] })
       → "✅ Done. 7 CVEs resolved."

Monorepo usage

"Scan all services in my monorepo"
→ scan_project("./frontend")
→ scan_project("./api")
→ scan_project("./worker")
→ Summary: "Found CVEs in 2/3 services. Worst: api (risk score 67/100)"

License

MIT