Osv
v0.2.1OSV.dev (Open Source Vulnerabilities) MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
query_package_vulns
Find all known vulnerabilities for an open-source package, optionally at a specific version, via the OSV.dev database. Omit version to get every vuln known for the package. Returns a compact summary array (id, summary, aliases, severity, references). Keyless.
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | Package ecosystem. Examples: "npm", "PyPI", "Go", "Maven", "crates.io", "RubyGems", "NuGet". |
name * | string | Package name, e.g. "lodash", "django", "log4j-core", "serde". |
version | string | Optional package version, e.g. "4.17.20". If given, only vulns affecting that version are returned; if omitted, all vulns for the package are returned. |
get_vulnerability
Get full detail for a single vulnerability by its OSV ID — e.g. "GHSA-jf85-cpcp-j695", "CVE-2021-23337", "PYSEC-2021-XXX". Returns summary, details, aliases, severity, affected packages/ranges, and references. Keyless.
| Parameter | Type | Description |
|---|---|---|
id * | string | A vulnerability ID, e.g. "GHSA-jf85-cpcp-j695", "CVE-2021-23337", "PYSEC-2021-1". |
query_by_commit
Find vulnerabilities affecting a specific source-repository git commit via OSV.dev. Useful when you have a pinned commit hash rather than a released version. Returns the same compact vuln summary array. Keyless.
| Parameter | Type | Description |
|---|---|---|
commit * | string | A git commit hash, e.g. "6879efc2c1596d11a6a6ad296f80063b558d5e0f". |
query_batch
Batch vulnerability query against OSV.dev (up to 1000 entries per call) — for SBOM-style "scan every dependency in this lockfile" workflows. Pass an array of {package:{name,ecosystem}, version?} or {commit} entries. Returns the vuln IDs matched per query (use get_vulnerability for full detail per ID). Keyless.
| Parameter | Type | Description |
|---|---|---|
queries * | array | Up to 1000 query objects. Each: {package:{name,ecosystem}, version?} or {commit}. |