Skip to main content
Glama
NVD MCP Server

NVD MCP Server

by afukaya

NVD MCP Server

用于查询 NVD Vulnerability API 2.0(NIST)的 Python MCP 服务器。

功能

  • 按 CVE 标识符进行详细查询。

  • 支持按关键字、CPE、CWE、CVSS v3 严重性和 CISA KEV 目录搜索。

  • 按发布日期区间查询漏洞。

  • 通过 SSE 进行 MCP 传输,用于远程使用;或通过 STDIO 进行本地执行。

  • 在 Docker 容器中以非 root 用户运行。

Related MCP server: nvd-cve-mcp-server

要求

  • Python 3.10 或更高版本,或带有 Docker Compose 的 Docker。

  • 可选:在 NVD_API_KEY 变量中提供 NVD API 密钥。

使用 Docker Compose 运行

docker compose up --build

默认情况下,服务器可通过 http://localhost:8000/sse 访问。

要使用 NVD API 密钥,请在启动 Compose 之前在环境中设置 NVD_API_KEY:

NVD_API_KEY=sua-chave docker compose up --build

在 PowerShell 中:

$env:NVD_API_KEY = "sua-chave"
docker compose up --build

本地运行

安装依赖项并启动 SSE 服务器:

python -m pip install -r requirements.txt
python nvd_mcp_server.py

要使用 STDIO:

MCP_TRANSPORT=stdio python nvd_mcp_server.py

在 PowerShell 中:

$env:MCP_TRANSPORT = "stdio"
python nvd_mcp_server.py

变量 MCP_HOST、MCP_PORT 和 MCP_TRANSPORT 可用于调整传输方式和监听地址。

MCP 工具

  • get_cve_details:返回某个 CVE 的详细信息。

  • search_vulnerabilities:使用筛选条件搜索漏洞。

  • get_recent_vulnerabilities_by_date:查询某个日期区间内的发布内容。

客户端配置

文件 agent_config.json 包含一个远程 MCP 客户端的配置示例。使用前,请将 URL 改为服务器的实际地址。

许可证

本项目未定义许可证。在其他项目中重用代码前,请咨询所有者。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server for querying the NIST National Vulnerability Database (NVD) API, enabling search and retrieval of CVE details, temporal context, and KEV catalog entries.
      14
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server that provides tools to search, filter, and retrieve CVE data from the NVD API, including by ID, keyword, severity, and recency.
      4
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables CVE vulnerability lookup and search using the National Vulnerability Database (NVD), allowing users to retrieve detailed information about specific CVEs and search for vulnerabilities by keyword.
      -