osv-advisory-mcp-server
Server Details
Query OSV.dev for package vulnerabilities and batch-audit dependency lists via MCP.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- cyanheads/osv-advisory-mcp-server
- GitHub Stars
- 2
- Server Listing
- osv-advisory-mcp-server
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 5 tools
Each tool keys off a distinct input type: advisory ID (get), single package tuple/PURL (query_package), commit hash (query_commit), multi-package array (query_batch), and no input (list_ecosystems). The only real overlap is that osv_query_batch can handle a single package, but its description explicitly scopes it to audits/SBOMs and points to osv_query_package for the single-row case.
All five tools use the same osv_ prefix followed by a verb_noun pattern (get_vulnerability, list_ecosystems, query_package, query_commit, query_batch) in consistent snake_case. The query_* family is especially predictable, distinguishing only by target resource.
Five tools is a tight, well-scoped surface for an OSV lookup service: one fetch-by-ID, three query entry points by different key types, and one reference/helper list. No tool appears redundant or tacked on.
The core read paths are covered: advisory detail by ID, package/PURL queries, commit queries, batch triage, and ecosystem name resolution. Minor gaps remain — no direct lookup by CVE alias, keyword search, or ecosystem-wide advisory listing — but aliases are returned for chaining and typical agent workflows are served.
Available Tools
5 toolsosv_get_vulnerabilityOsv Get VulnerabilityARead-onlyIdempotentInspect
Fetch the full advisory record for an OSV vulnerability ID. Returns the complete record: summary, full details text, CVE aliases, all affected packages and version ranges, fix versions, CVSS severity vectors, CWE weakness IDs, references, credits, and the record-level database_specific metadata of the source database. Use when osv_query_package or osv_query_batch returns a vuln ID and you need the full advisory context — affected packages or remediation guidance. For overflow, repeat the original input with page: overflow.page. Continue the same path with offset: page.nextOffset and revision: page.revision until nextOffset is null. Retrieve each entries[].deferred.path separately at offset zero without a revision. Do not pass the output page object as input. Every page is a fresh lookup; restart a changed node without a revision. Transmission overflow and upstream truncation are separate; neither confirms clean.
Inputs: id (required), page. Returns: id, page, error, cweIds, +18 more
osv_list_ecosystemsOsv List EcosystemsARead-onlyIdempotentInspect
Return the supported ecosystem base names for osv_query_package and osv_query_batch: every ecosystem the OSV schema names that OSV.dev accepts at query time, plus GIT, as verified on 2026-10-31. Known base names are case-insensitive. Recognized tuple suffix aliases resolve to their release or variant, such as Ubuntu:jammy to Ubuntu:22.04:LTS. Bases such as npm, PyPI, and crates.io take no suffix. Alpine needs a release branch, such as Alpine:v3.17. The list is static and may lag ecosystems added after that date.
Inputs: no named parameters. Returns: note, error, ecosystems
osv_query_batchOsv Query BatchARead-onlyIdempotentInspect
Query vulnerabilities for multiple packages in one call — the primary tool for dependency audits, SBOM scanning, and lockfile triage. Submit up to 5000 mixed {name, ecosystem, version} tuples and {purl, version?} identifiers, with exactly one embedded or separate version per PURL. The first 1000 entries are processed. Follow summary.nextInputOffset to submit the remaining slice. Pass a row's nextCursor as cursor to osv_query_package with that row's identifier. Each entry in the response corresponds positionally to the input. Each finding includes CVE aliases for chaining to nist-nvd-mcp-server for CVSS scoring. Large replies retain the complete summary. For overflow, repeat the original packages array with page: overflow.page. Continue the same path with offset: page.nextOffset and revision: page.revision until nextOffset is null. Retrieve each entries[].deferred.path separately at offset zero without a revision. Do not pass the output page object as input. /results/17 selects original input row 17, even when earlier rows failed. Pages are fresh lookups and do not recompute the initial summary; restart a changed node without a revision. Transmission overflow and upstream truncated are separate; neither confirms clean.
Inputs: packages (required), page. Returns: page, error, notice, preview, +5 more
osv_query_commitOsv Query CommitARead-onlyIdempotentInspect
Query known vulnerabilities for one full Git commit hash (40 hexadecimal SHA-1 or 64 hexadecimal SHA-256 characters, case-insensitive). Abbreviated hashes are rejected. Returns advisory summaries, record-wide severity and GIT ranges with repositories and ordered fix events; use osv_get_vulnerability for full records. No package-specific fixedVersions are inferred. For overflow, repeat the original input with page: overflow.page. Continue the same path with offset: page.nextOffset and revision: page.revision until nextOffset is null. Retrieve entries[].deferred.path separately at offset zero without a revision. Do not pass the output page object as input. Pages are fresh lookups; restart a changed node without a revision. Transmission overflow and upstream truncated are separate; neither confirms clean.
Inputs: commit (required), page, cursor. Returns: page, error, vulns, notice, +6 more
osv_query_packageOsv Query PackageARead-onlyIdempotentInspect
Query known vulnerabilities for a single package version using {name, ecosystem, version} or {purl, version?}; supply exactly one embedded or separate version. Release-qualified Ubuntu names are resolved to the source packages OSV indexes. Returns all matching OSV advisories with severity (CVSS vectors), CVE aliases, affected version ranges, and the fixed versions listed for the queried package. Find canonical ecosystem names and the Alpine release format in osv_list_ecosystems. Known base names are case-insensitive. Recognized tuple suffix aliases resolve to their release or variant, such as Ubuntu:jammy to Ubuntu:22.04:LTS. Bases such as npm, PyPI, and crates.io take no suffix. For overflow, repeat the original input with page: overflow.page. Continue the same path with offset: page.nextOffset and revision: page.revision until nextOffset is null. Retrieve each entries[].deferred.path separately at offset zero without a revision. Do not pass the output page object as input. Set page.advisoryId to an announced ID to fetch its fields with fixes and severity for the queried package; retain advisoryId on subsequent pages. Pages are fresh lookups; restart a changed node without a revision. Transmission overflow and upstream truncated are separate; neither confirms clean.
Inputs: name, page, purl, cursor, +2 more. Returns: page, error, vulns, notice, +7 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Supply-chain security & CVE audit for npm, PyPI, and Cargo packages via OSV.dev.
Audit npm/PyPI/Go/Rust packages on OSV.dev with CISA KEV active-exploitation & EPSS scores.
Scan npm, PyPI, Go, Maven, and Cargo dependencies against OSV.dev CVEs in real time.
Related MCP Servers
AlicenseNot gradedqualityFmaintenanceEnables auditing npm, pip, and other package dependencies for known CVEs via the OSV database, with tools to scan manifests, query individual packages, and integrate into CI/CD workflows.MIT- FlicenseNot gradedqualityDmaintenanceScans Python, Node.js, Java/Spring, and PHP dependency manifests for known vulnerabilities using OSV and GitHub Advisory APIs.-
- AlicenseAqualityCmaintenanceMCP server for querying CVE and package vulnerability data from NVD and OSV.dev, allowing CVE lookups and dependency scanning.416 npm1MIT
- AlicenseAqualityCmaintenanceEnables coding agents to check individual project dependencies or local CycloneDX/SPDX SBOM files against the public OSV.dev advisory database and receive ranked vulnerability findings.2MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.