osv-advisory-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@osv-advisory-mcp-serverCheck if express 4.18.2 in npm has vulnerabilities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Public Hosted Server: https://osv-advisory.caseyjhand.com/mcp
Tools
4 tools for querying the OSV.dev vulnerability database — single package lookups, batch dependency audits, and full advisory fetch:
Tool | Description |
| Query known vulnerabilities for a single package version by name, ecosystem, and version |
| Batch vulnerability query for an array of package tuples — one call for a full dependency list or SBOM audit |
| Fetch the full advisory record for a single OSV vulnerability ID |
| Return the list of supported ecosystem identifier strings |
osv_query_package
The primary "is this package version vulnerable?" tool.
Accepts
name,ecosystem(case-sensitive exact match — useosv_list_ecosystemsto validate), andversionReturns all matching advisories: OSV IDs, CVE aliases, CVSS severity vectors, derived severity label, first safe versions, affected version ranges (SEMVER/ECOSYSTEM/GIT), and CWE IDs
aliasesfield surfaces CVE IDs for chaining tonist-nvd-mcp-serverfor CVSS base scores, EPSS exploitation probability, and CISA KEV statusNo API key required — OSV.dev is fully public and keyless
osv_query_batch
The primary tool for dependency audits, SBOM scanning, and lockfile triage.
Accepts an array of
{name, ecosystem, version}tuples (1–1000 packages per call)Ecosystem strings are validated by OSV.dev itself, not a static allowlist — an unrecognized ecosystem surfaces as that entry's per-package
errorrather than failing the whole batchReturns per-package results positionally matching the input, with
vulnerable,vulnCount,vulns(includingaliasesandseverityLabel), andfixedVersionsIncludes aggregate summary:
totalPackages,vulnerableCount,cleanCount,errorCount,totalVulns,worstSeverity
osv_get_vulnerability
Fetch the complete advisory record by OSV ID.
Accepts any OSV ID prefix:
GHSA-(GitHub),PYSEC-(Python),RUSTSEC-(Rust),GO-(Go),DSA-/DLA-(Debian),CVE-(direct CVE fallbacks)Returns: summary, full advisory details text, all CVE aliases, all affected packages and their version ranges, fix versions, CVSS severity vectors, CWE weakness IDs, and references (ADVISORY, FIX, REPORT, etc.)
Use after
osv_query_packageorosv_query_batchreturns a vuln ID and you need the full advisory context — remediation guidance, scope of affected packages, or eligibility criteria
osv_list_ecosystems
Return the list of valid ecosystem identifier strings. Ecosystem strings are case-sensitive exact matches — "pypi" is not "PyPI". Call this tool before querying to validate ecosystem strings from lockfiles or user input. The list is static (sourced from the OSV schema spec) and may occasionally lag newly added ecosystems.
Related MCP server: dep-guard-mcp
Features
Built on @cyanheads/mcp-ts-core:
Declarative tool definitions — single file per tool, framework handles registration and validation
Unified error handling — handlers throw, framework catches, classifies, and formats
Pluggable auth:
none,jwt,oauthSwappable storage backends:
in-memory,filesystem,Supabase,Cloudflare KV/R2/D1Structured logging with optional OpenTelemetry tracing
STDIO and Streamable HTTP transports
OSV-specific:
No API key required — OSV.dev is fully public, keyless, and has no published rate limit
Parallel single-package queries in
osv_query_batchreturn full records includingaliases(CVE IDs) that the upstream batch endpoint omitsPer-package queries isolate failures — one invalid ecosystem or upstream error surfaces as that row's
error, leaving the rest of the batch intact
Agent-friendly output:
aliases(CVE IDs) prominently surfaced on every vuln entry — the primary composition point for chaining tonist-nvd-mcp-serverfor CVSS base scores, EPSS, and CISA KEV statusseverityLabelderived fromdatabase_specific.severity(GHSA records) or the highest CVSS base score;nullrather than fabricated when neither source is availableEcho of query parameters (
queryMeta) onosv_query_packageoutput so agents can verify the request was applied correctlyBatch aggregate summary (
worstSeverity,vulnerableCount,cleanCount) for quick triage without reading per-package rows
Getting started
Public Hosted Instance
A public instance is available at https://osv-advisory.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"osv-advisory-mcp-server": {
"type": "streamable-http",
"url": "https://osv-advisory.caseyjhand.com/mcp"
}
}
}Self-Hosted / Local
Add the following to your MCP client configuration file. No API key is required — OSV.dev is fully public.
{
"mcpServers": {
"osv-advisory-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/osv-advisory-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"osv-advisory-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/osv-advisory-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with Docker:
{
"mcpServers": {
"osv-advisory-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"ghcr.io/cyanheads/osv-advisory-mcp-server:latest"
]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcpPrerequisites
Bun v1.3.0 or higher (or Node.js v24+).
No API key required — OSV.dev is fully public.
Installation
Clone the repository:
git clone https://github.com/cyanheads/osv-advisory-mcp-server.gitNavigate into the directory:
cd osv-advisory-mcp-serverInstall dependencies:
bun installConfigure environment:
cp .env.example .env
# edit .env if needed (no required vars)Configuration
All configuration is validated at startup. No server-specific env vars are required — OSV.dev is keyless and fully public.
Variable | Description | Default |
| HTTP request timeout in milliseconds for OSV.dev API calls. |
|
| Transport: |
|
| Port for HTTP server. |
|
| HTTP endpoint path. |
|
| Public origin override for TLS-terminating reverse-proxy deployments. | none |
| Auth mode: |
|
| Log level (RFC 5424). |
|
| Directory for log files (Node.js only). |
|
| Storage backend. |
|
| Enable OpenTelemetry instrumentation (spans, metrics, completion logs). |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker build -t osv-advisory-mcp-server .
docker run --rm -p 3010:3010 osv-advisory-mcp-serverThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/osv-advisory-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Directory | Purpose |
|
|
| Tool definitions ( |
| OSV.dev REST API service — fetch, retry, response normalization. |
| Unit and integration tests mirroring |
Development guide
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools via the barrel in
src/mcp-server/tools/definitions/index.tsWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues and pull requests are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceAudits package lockfiles for vulnerabilities, supporting npm, yarn, and pnpm. Runs via CLI or as an MCP server over stdio.Last updated13086MIT
- Flicense-qualityCmaintenanceScans Python, Node.js, Java/Spring, and PHP dependency manifests for known vulnerabilities using OSV and GitHub Advisory APIs.Last updated
- Alicense-qualityBmaintenancedeptrust is a CLI that checks package versions for known vulnerabilities across npm, PyPI, crates.io, Go modules, RubyGems, NuGet, Maven, Packagist, pub.dev, CocoaPods, Hex.pm, Hackage, GitHub Actions, and more. It runs locally as a CLI and as an MCP server. It calls public package registry and OSV APIs directly; there is no hosted deptrust service to trust or configure.Last updated64159MIT
- Alicense-qualityCmaintenanceMCP server for checking packages against an AI-aware vulnerability database, including CVEs, slopsquatting, CISA KEV, and MCP-server trust profiles.Last updatedElastic 2.0
Related MCP Connectors
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
OSV.dev — Google's open-source vulnerability database
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyanheads/osv-advisory-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server