Osv Advisory MCP Server logo

Osv Advisory MCP Server

Query OSV.dev for package, dependency-list, SBOM, commit, and advisory vulnerability data over MCP.

Install Osv Advisory MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "osv-advisory-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/osv-advisory-mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

osv-advisory-mcp-server connects MCP clients to OSV.dev for package and Git commit vulnerability lookups. It provides individual package queries, batch audits for up to 1,000 entries, full advisory retrieval, and ecosystem discovery. Batch results include per-row status and scan summaries, while pagination is marked explicitly so incomplete results are not treated as clean. Use it when an agent needs dependency vulnerability checks or detailed OSV advisory records without an API key.

Use cases

  • Audit an SBOM for known vulnerabilities
  • Check an exact package version before deployment
  • Inspect advisories linked to a Git commit
  • Retrieve complete OSV records by vulnerability ID

Key features

  • Package and PURL vulnerability queries
  • Batch audits for up to 1,000 entries
  • Git commit vulnerability lookups
  • Full advisory record retrieval
  • Case-sensitive ecosystem discovery
  • Stdio and Streamable HTTP transports

Tools5

What Osv Advisory MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~103 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

10/10 checks healthy over the last 52d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · @cyanheads/osv-advisory-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Tools exposed5Callable tools this server registers over MCP.

How Osv Advisory MCP Server works

What osv-advisory-mcp-server does

osv-advisory-mcp-server exposes OSV.dev vulnerability data through MCP tools. It can check an exact package version by ecosystem and name, accept a Package URL (PURL), scan a dependency list or SBOM, inspect a full Git commit hash, retrieve an advisory by ID, and list the ecosystem identifiers accepted by OSV.dev.

The package and commit queries return advisory information such as aliases, severity data, affected ranges, and fixes where applicable. Full advisory lookups include the record details, affected packages, version ranges, fixes, weaknesses, and references. OSV.dev is public and does not require an API key.

How it works

The server supports both stdio and Streamable HTTP transports. A local MCP client can launch it with the npm package, while HTTP clients can connect to the hosted endpoint or to a locally configured HTTP listener.

osv_query_package accepts either name, an exact, case-sensitive ecosystem, and version, or a PURL containing a version. Versions are exact rather than ranges. osv_query_batch accepts between one and 1,000 package entries, allows the two input forms to be mixed, and preserves the input index for each result. It fetches unique advisory records so batch rows can include full advisory data rather than only matching IDs.

Commit lookups require a complete 40-character SHA-1 or 64-character SHA-256 hash. Advisory IDs are matched case-sensitively and may use identifiers such as GHSA, CVE, PYSEC, or RUSTSEC. Ecosystem names are also case-sensitive; the ecosystem-list tool returns the accepted strings.

Setup and configuration

Run locally through npm with an MCP client command such as npx -y @cyanheads/osv-advisory-mcp-server. The public hosted MCP endpoint is https://osv-advisory.caseyjhand.com/mcp. A Docker deployment and source build are also supported.

All configuration variables are optional. OSV request timeouts, batch request concurrency, and the maximum number of followed result pages can be adjusted with OSV_REQUEST_TIMEOUT_MS, OSV_BATCH_CONCURRENCY, and OSV_QUERY_MAX_PAGES. Transport and HTTP behavior are controlled with MCP_TRANSPORT_TYPE, MCP_HTTP_PORT, MCP_HTTP_ENDPOINT_PATH, MCP_PUBLIC_URL, and MCP_SESSION_MODE. MCP_AUTH_MODE selects none, jwt, or oauth for HTTP deployments.

Tools and capabilities

  • osv_query_package: Check one exact package version by name and ecosystem or by PURL.
  • osv_query_batch: Audit up to 1,000 package versions in a dependency list or SBOM.
  • osv_query_commit: Find advisories associated with a complete Git commit hash.
  • osv_get_vulnerability: Retrieve one complete OSV advisory record by exact ID.
  • osv_list_ecosystems: Return the supported, case-sensitive ecosystem strings.

Batch scans report vulnerable, clean, truncated, and error counts, along with the worst severity and affected row indexes. Individual rows can contain errors without failing the entire batch call.

Limitations and notes

Queries are subject to the configured request timeout, page limit, and batch concurrency. A truncated result means additional OSV pages were not followed; an empty truncated result is not confirmation that the package or commit is clean. Batch scans have a 50-second deadline, and truncated rows are excluded from the clean count.

Responses are capped at 24,000 bytes. Overflow pages and deferred entries must be retrieved using the pagination information returned by the tool. Advisory text in rendered content escapes HTML and unsafe link constructs, while structured content preserves OSV strings. Commit results provide Git ranges and repository URLs but do not infer package-specific fixed versions.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Osv Advisory MCP Server

osv-advisory-mcp-server is an MCP server that connects AI clients to OSV.dev. Its main tools query package versions, batch-audit dependencies or SBOM entries, check Git commits, retrieve complete vulnerability advisories, and list supported ecosystems. It uses OSV.dev’s public API and requires no API key.

Install it locally by configuring your MCP client to run `npx -y @cyanheads/osv-advisory-mcp-server`. The server also provides a hosted Streamable HTTP endpoint at `https://osv-advisory.caseyjhand.com/mcp`, and Docker or source-build deployments are available.

Yes, `osv_query_batch` accepts up to 1,000 package entries in one call, including a full dependency list or SBOM. Each result retains its input index and reports vulnerability status, advisory records, truncation, and row-level errors.

No, it uses OSV.dev’s public, keyless API. You can run the server locally or connect to its hosted HTTP endpoint without configuring an API key.

It marks incomplete results with `truncated: true` rather than treating them as clean. This applies when the configured page limit is reached; batch summaries also exclude truncated rows from their clean count.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOsv Advisory MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/osv-advisory-mcp-server?style=directory)](https://allmcps.com/mcp/osv-advisory-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/osv-advisory-mcp-server"><img src="https://allmcps.com/api/badge/osv-advisory-mcp-server?style=directory" alt="Osv Advisory MCP Server on AllMCPs" /></a>