本项目是一个基于 SSE 的 MCP(模型上下文协议)服务器,它能让你访问 OSV(开源漏洞)数据库。LLM 驱动的应用程序可借助此服务器,查询特定软件包版本或提交的漏洞信息。
此项目实现的基于 SSE 的 MCP 服务器,具备以下实用功能:
# 克隆仓库
git clone https://github.com/StacklokLabs/osv-mcp.git
cd osv-mcp
# 构建服务器
task build
该服务器提供了以下 MCP 工具,下面以 query_vulnerability
工具为例:
此工具用于查询特定软件包版本或提交的漏洞信息。
输入 schema:
{
"type": "object",
"properties": {
"commit": {
"type": "string",
"description": "要查询的提交哈希。如果指定了 commit,则 version 不应设置。"
},
"version": {
"type": "string",
"description": "要查询的版本字符串。如果指定了 version,则 commit 不应设置。"
},
"package_name": {
"type": "string"
}
}
}