Osv Scanner MCP
MCP server by tedorigawa001 Verified · npm:osv-scanner-mcp
Scans project dependencies for known vulnerabilities by wrapping Google's OSV-Scanner. Built for developers who want severity-sorted CVE and GHSA reports and upgrade suggestions from an MCP client such as Claude.
Install Osv Scanner MCP
Built from the published package, never by AI.
claude mcp add osv-scanner-mcp -- npx -y osv-scanner-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"osv-scanner-mcp": {
"args": [
"-y",
"osv-scanner-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"osv-scanner-mcp": {
"args": [
"-y",
"osv-scanner-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"osv-scanner-mcp": {
"args": [
"-y",
"osv-scanner-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add osv-scanner-mcp -- npx -y osv-scanner-mcp{
"mcpServers": {
"osv-scanner-mcp": {
"args": [
"-y",
"osv-scanner-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add osv-scanner-mcp npx -y osv-scanner-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the osv-scanner-mcp block.
About
OSV-Scanner-MCP is an MCP server that wraps Google's OSV-Scanner. When a user asks an MCP client such as Claude to check a project for vulnerabilities, it returns the known CVE and GHSA entries for the project's dependencies. The report is sorted by severity and includes recommended upgrades. It reads lockfiles and manifests for Java, JavaScript, Python, Go, Rust, .NET and PHP.
Scans send package names and versions to the OSV database at api.osv.dev, and scanning pom.xml or requirements.txt also connects to api.deps.dev to resolve transitive dependencies. If no OSV-Scanner binary is found, the server downloads a pinned version and checks it against a SHA256 checksum. The package is aimed at developers who want dependency vulnerability checks inside their AI assistant, and it is published on npm.
Written from the project's README and checked against it.
Tools it gives your assistant
scan_projectScans the supported lockfiles in a project directory together in one pass.suggest_fixRecommends upgrade versions for vulnerable packages and checks them against OSV.scan_java_projectScans only the Maven and Gradle manifests and returns a formatted report.scan_java_artifactDetects known vulnerabilities from metadata inside JAR and WAR archives.scan_sbomChecks the dependencies recorded in a CycloneDX or SPDX JSON SBOM.scan_historyLists past runs and shows changes since the previous run when history is enabled.
What you need
- Node.js 22.13 or later
- Network access to api.osv.dev and api.deps.dev
- OSV-Scanner binary, downloaded automatically if not found
Try asking
- Check this project for vulnerabilities and list the most severe first.
- Suggest safe upgrade versions for the vulnerable packages in this repo.
- Scan the Java artifacts in this folder for known CVEs.
Good to know
- Scans need network access to api.osv.dev, and some scans also contact api.deps.dev.
- Scan history is off unless OSV_MCP_HISTORY=1 is set.
- Rust scans cover only crates from crates.io.
- Composer branch and dev versions are not evaluated.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Osv Scanner MCP
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Osv Scanner MCP: common questions
Does it send my dependency names to a third party?
Package names and versions are sent to the OSV database at api.osv.dev, and some scans also connect to api.deps.dev. For PHP, other private Composer package names and versions are sent there too.
Do I need to install OSV-Scanner myself?
No. If the binary is not found, a pinned OSV-Scanner version is downloaded from GitHub Releases and verified against a SHA256 checksum. Setting OSV_MCP_AUTO_DOWNLOAD=0 disables the download.
Which languages and package managers are supported?
The source lists Java (Maven and Gradle), JavaScript (npm, yarn, pnpm and bun), Python, Go, Rust, .NET and PHP Composer lockfiles.
How do I install Osv Scanner MCP?
In Claude Code run claude mcp add osv-scanner-mcp -- npx -y osv-scanner-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Osv Scanner MCP the official server?
Osv Scanner MCP is published by npm:osv-scanner-mcp from its verified domain in the official MCP Registry.
Is Osv Scanner MCP free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Osv Scanner MCP safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Osv Scanner MCP?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Osv Scanner MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
