EUVD-MCP

EUVD-MCP

MCP server for the European Union Vulnerability Database (EUVD) maintained by ENISA. Enables searching for vulnerabilities with flexible filters, fetching latest, critical, and exploited vulnerabilities, and looking up specific vulnerabilities and advisories by ID.

Category
访问服务器

README

EUVD-MCP

MCP server for the European Union Vulnerability Database (EUVD) maintained by ENISA.

Features

  • Search vulnerabilities with flexible filters (CVSS, EPSS, dates, product, vendor, exploited status, etc.)
  • Get latest, critical, and exploited vulnerabilities
  • Lookup specific vulnerabilities and advisories by ID
  • Automatic retries with exponential backoff
  • Bounded TTL cache (cachetools.TTLCache) for list endpoints
  • Structured logging (always to stderr — safe for stdio transport)
  • /health liveness endpoint and /metrics observability endpoint (HTTP mode)
  • Startup connectivity check to the EUVD API
  • Two transport modes: HTTP (standalone/Docker) and stdio (subprocess/Claude Desktop)

Requirements

Installation

git clone <repository-url>
cd euvdmcp
poetry install

Copy the example environment file and adjust as needed:

cp .env.template .env

Configuration

All settings are read from environment variables (or a .env file at the project root).

Variable Default Description
TRANSPORT http Transport mode: http or stdio
HOST 127.0.0.1 Server bind address (HTTP mode only)
PORT 8000 Server port (HTTP mode only)
EUVD_BASE_URL https://euvdservices.enisa.europa.eu EUVD API base URL
EUVD_TIMEOUT 30 HTTP request timeout (seconds)
EUVD_MAX_RETRIES 3 Max retries on transient failures
CACHE_TTL 30 TTL for cached list responses (seconds)
CACHE_MAX_SIZE 128 Maximum entries in the response cache
LOG_LEVEL INFO Logging level (DEBUG, INFO, WARNING, ERROR)
USER_AGENT euvd-mcp-tool User-Agent header sent to the EUVD API

Running

uvicorn (recommended)

uvicorn euvd_mcp.main:app --host 127.0.0.1 --port 8000

With live reload during development:

uvicorn euvd_mcp.main:app --host 127.0.0.1 --port 8000 --reload

Poetry

poetry run python -m euvd_mcp.main

Server runs on http://127.0.0.1:8000/mcp by default.

Docker

Build the image:

make docker-build

Run with a .env file (configuration is not baked into the image):

make docker-run        # uses .env automatically

Or docker-compose:

make compose-up        # start
make compose-logs      # tail logs
make compose-down      # stop

stdio (Claude Desktop / subprocess)

TRANSPORT=stdio poetry run python -m euvd_mcp.main

Note: In stdio mode the /health and /metrics endpoints are not available. Logs go to stderr so they do not interfere with the MCP protocol on stdout.

Integrating with LLM Clients

Claude Desktop — HTTP (server running separately)

Add to your Claude Desktop configuration file:

macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "euvd": {
      "url": "http://127.0.0.1:8000/mcp"
    }
  }
}

Claude Desktop — stdio (subprocess)

{
  "mcpServers": {
    "euvd": {
      "command": "poetry",
      "args": ["run", "python", "-m", "euvd_mcp.main"],
      "env": { "TRANSPORT": "stdio" }
    }
  }
}

Claude Desktop — Docker

{
  "mcpServers": {
    "euvd": {
      "command": "docker",
      "args": [
        "run", "--rm", "-p", "8000:8000",
        "--env-file", "/absolute/path/to/.env",
        "euvd-mcp:local"
      ]
    }
  }
}

Example queries

  • "What are the latest critical vulnerabilities?"
  • "Search for exploited vulnerabilities with CVSS score above 8.0"
  • "Get details for vulnerability EUVD-2024-45012"
  • "Find vulnerabilities from Microsoft published in the last 30 days"

Available Tools

Tool Description
get_last_vulnerabilities Latest vulnerabilities (up to 8)
get_exploited_vulnerabilities Latest exploited vulnerabilities
get_critical_vulnerabilities Latest critical vulnerabilities (CVSS ≥ 9.0)
search_vulnerabilities Search with CVSS, EPSS, date, vendor, product, and exploited filters
get_vulnerability_by_id Fetch a single vulnerability by EUVD ID (e.g. EUVD-2024-45012)
get_advisory_by_id Fetch an advisory by its vendor-assigned ID

Observability

Two endpoints are available in HTTP mode:

Endpoint Description
GET /health Liveness probe — returns {"status": "ok", "version": "...", "uptime_seconds": N}
GET /metrics Request counts, per-tool latencies, cache hit/miss ratio, error breakdown

Project Structure

euvdmcp/
├── euvd_mcp/
│   ├── main.py                    # MCP server, tool definitions, health/metrics routes
│   ├── controllers/
│   │   └── euvd_api.py            # Async API client with retry and TTL cache
│   ├── models/
│   │   ├── input_models.py        # Pydantic input validation models
│   │   └── vulnerability.py       # Response data models
│   ├── utils/
│   │   ├── settings.py            # Configuration (pydantic-settings)
│   │   ├── logging_config.py      # Structured logging setup
│   │   └── metrics.py             # In-process metrics collector
│   └── tests/                     # pytest test suite
├── Dockerfile                     # Multi-stage build, non-root user, HEALTHCHECK
├── docker-compose.yml
├── Makefile
└── pyproject.toml

Development

poetry install                 # install all dependencies (incl. dev)
make pre-commit-setup          # install git hooks
make test                      # run tests
make test-cov                  # run tests with coverage report
make lint                      # ruff + mypy
make format                    # auto-format with ruff
make security                  # bandit + pip-audit

CI

Three GitHub Actions workflows run on every PR to main:

  • CI — tests, security scan (bandit + pip-audit), lock-file check, Docker build
  • Code Quality — ruff lint/format, mypy type check, markdown validation
  • Security Scan — Trivy container scan, results uploaded to GitHub Security tab

License

See LICENSE

Author

Duarte Dias

Acknowledgments

  • ENISA — European Union Agency for Cybersecurity
  • FastMCP — MCP framework

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选