MCP.so
登录

OSV MCP Server

@StacklokLabs

基本信息

分类

其他

许可证

Apache-2.0

传输方式

stdio

作者

StacklokLabs

关于 OSV MCP Server

An MCP server for OSV

OSV MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

OSV MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is OSV MCP Server?

The OSV MCP Server is an MCP (Model Context Protocol) server that provides access to the OSV (Open Source Vulnerabilities) database. It allows LLM-powered applications to query vulnerability information for packages, commits, and specific vulnerability IDs. The server uses SSE or Streamable HTTP transport and is intended for developers integrating vulnerability checks into MCP-compatible clients.

How to use OSV MCP Server?

Install with Go 1.21+ or use the recommended ToolHive containerized deployment. Configure with environment variables MCP_PORT (default 8080) and MCP_TRANSPORT (default sse, also supports streamable-http). The server exposes three MCP tools: query_vulnerability (single package/commit), query_vulnerabilities_batch (multiple queries), and get_vulnerability (by OSV ID). Invoke via any MCP client after running the server.

Key features of OSV MCP Server

  • Query vulnerabilities by package name, ecosystem, and version or commit hash
  • Batch query multiple packages or commits in a single call
  • Get detailed information about a specific vulnerability by OSV ID
  • Supports SSE and Streamable HTTP transport modes
  • Configurable port and transport via environment variables
  • Runs natively or via secure ToolHive container deployment

Use cases of OSV MCP Server

  • Check if a specific package version (e.g., lodash 4.17.15) has known vulnerabilities
  • Query vulnerabilities affecting a codebase by commit hash
  • Batch scan your project’s dependencies for security issues
  • Retrieve full details of a known vulnerability ID (e.g., GHSA-vqj2-4v8m-8vrq)

常见问题

1

What runtime is required to run the OSV MCP Server from source?

Go 1.21 or later is required. Optional tools are Task and ko for building and container images.

2

How do I configure the server’s port and transport?

Set the `MCP_PORT` environment variable (valid integer 0–65535, default 8080) and `MCP_TRANSPORT` environment variable (supported values: `sse`, `streamable-http`, default `sse`).

3

What MCP tools does the server provide?

Three tools: `query_vulnerability` (single package/commit), `query_vulnerabilities_batch` (multiple queries), and `get_vulnerability` (by OSV ID). They allow querying the OSV database for vulnerability data.

4

How can I run the server with ToolHive?

Install ToolHive, run `thv client setup` to register a client, then `thv run osv`. The server is packaged as `osv` in ToolHive and will be available to MCP-compatible clients.

5

Where does the vulnerability data come from?

The server queries the public OSV (Open Source Vulnerabilities) database maintained at osv.dev.

评论

其他 分类下的更多 MCP 服务器