Vulners Mcp

io.github.vulnersCom由 GitHub 帳號 vulnersCom 發布v1.15.1更新於 Oct 24, 2026

MCP server for the Vulners.com API

已驗證Streamable HTTP可網頁執行資料庫安全與監控

概覽

AI 產生的概覽

連接 Vulners 漏洞資料庫的 MCP 伺服器,讓助理查詢 CVE、檢索公告,並稽核軟體與 Linux 套件的已知漏洞。

可以做什麼
  • 依 CVE 或 Vulners ID 取得公告,預設回傳精簡的分流摘要,也可指定擴充欄位
  • 以 Lucene 全文語法檢索 Vulners 知識庫,並取得搜尋自動完成建議
  • 依廠商與產品尋找 CPE 識別碼
  • 稽核特定軟體版本的已知漏洞
  • 依發行版與版本稽核 RPM/DEB Linux 套件,並列出支援的 OS 識別碼
適用情境
適合資安研究與漏洞分流:查核某個 CVE、找出某廠商或產品中的漏洞,或稽核某個軟體版本、一組 Linux 套件。適合需要在自然語言對話中取得漏洞資料的助理。
執行需求
可使用託管的 Streamable HTTP 端點,或以 uvx 執行 PyPI 套件(需 Python 3.13+)或 Docker 映像在本機執行。需要 Vulners API 金鑰:本機 stdio 模式使用 VULNERS_API_KEY,HTTP 模式則每次請求帶 X-Api-Key 標頭。需能連線至 Vulners API 的網路。
安裝前請注意
需要提供 Vulners API 金鑰,每次呼叫都會傳送給 Vulners。在託管 HTTP 端點上,無金鑰呼叫可能走共用匿名層,結果筆數受限且有速率上限;金鑰被拒時不會默默改用其他金鑰。工具皆為唯讀查詢,但查詢內容會揭露你正在調查的軟體與版本。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Vulners Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.vulnersCom%2Fvulners-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "vulners": {
      "type": "http",
      "url": "https://mcp.vulners.com/mcp"
    }
  }
}

README

Vulners MCP Server

Vulners MCP is a Model Context Protocol (MCP) server that provides seamless access to the Vulners vulnerability database through AI assistants like Claude Desktop. It enables security researchers and developers to query comprehensive vulnerability data, search for CVEs, analyze security bulletins, and audit software packages directly through natural language conversations.

Features

  • AI Assistant Integration: Works natively with Claude Desktop and other MCP-compatible clients
  • Dual Transport Support: Automatically detects and supports both stdio (for Claude Desktop) and HTTP transports
  • Comprehensive Tools: 7 MCP tools for vulnerability research including:
    • Full-text Lucene search across 4M+ vulnerability bulletins
    • CVE and bulletin information retrieval
    • Software/package vulnerability auditing
    • CPE search and autocomplete
    • Linux package vulnerability auditing
  • Flexible Deployment: prebuilt Docker image (ghcr.io/vulnerscom/vulners-mcp), PyPI package, or local build
  • Environment-based Configuration: Simple setup via environment variables

Table of Contents


Requirements

  • Python 3.13+ (for PyPI or a local build)
  • Access to the Vulners API (valid API key and network connectivity)
  • (For Docker) Docker engine

Obtaining Vulners API Key

Please, register at Vulners website. Go to the personal menu by clicking at your name at the right top corner. Follow "API KEYS" tab. Generate API key with scope "api" and use it with the library.


Authentication

How you provide your API key depends on which transport you run:

TransportWho runs itHow the key is provided
stdioYou, locally (Claude Desktop, a local build)VULNERS_API_KEY environment variable, set once for your local server process. This is your own key, used only by your local server instance.
HTTP (mcp.vulners.com or your own hosted deployment)A shared/public server, potentially serving many callersEither your own X-Api-Key HTTP header sent on every request (full limits, forwarded verbatim), or nothing at all -- see the anonymous tier below.

Anonymous tier (HTTP only)

initialize and tools/list always work without a key, so an agent can discover what the server offers before it has one. A tools/call sent without an X-Api-Key header behaves according to whether this deployment has an anonymous tier configured:

Callertools/call behavior
No X-Api-Key, anonymous tier configuredAllowed. Forwarded on this deployment's anonymous-tier key. Any size-style argument is clamped to a small maximum, and anonymous calls share a modest app-level rate limit. If that upstream key hits its own quota/rate limit, you get a structured error pointing you at sending your own key.
No X-Api-Key, anonymous tier NOT configuredFails immediately with a structured guidance error (see below) -- nothing is sent upstream.
X-Api-Key present, but Vulners rejects it (401/403)Sanitized error. The server never silently falls back to the anonymous-tier key on your behalf.
X-Api-Key present and validForwarded verbatim, full limits, no clamp, no app-level rate limit.

Example of the guidance error (no key, no anonymous tier configured):

json
{  "isError": true,  "content": [{    "type": "text",    "text": "This server does not hold a privileged API key, and no anonymous tier is configured on this deployment. Send your personal Vulners API key in the X-Api-Key HTTP header. Get a key: sign in at https://vulners.com/userinfo (human, in a browser). Details: https://mcp.vulners.com/auth.md (When configured, this server's anonymous tier is itself size- and rate-limited -- your own key always gets full limits.)"  }]}

Sending your own X-Api-Key always gets you full, uncapped (at this layer) access -- the anonymous tier exists so an agent can try the server out, or make a light, occasional call, without first obtaining a key.

No env change is required to enable the anonymous tier on a deployment that already sets VULNERS_API_KEY. In HTTP mode, VULNERS_MCP_ANON_API_KEY falls back to VULNERS_API_KEY when unset -- so that same key now also backs the (rate-limited, size-clamped) anonymous tier. To back the anonymous tier with a separate, dedicated key instead -- so it isn't also your own operator key -- set VULNERS_MCP_ANON_API_KEY explicitly; it always takes precedence over the VULNERS_API_KEY fallback when both are set.


Hosted server: mcp.vulners.com

Nothing to install: point any MCP client that speaks Streamable HTTP at

text
https://mcp.vulners.com/mcp

and send your Vulners API key in the X-Api-Key header (see Obtaining Vulners API Key). For example:

bash
# Claude Codeclaude mcp add --transport http vulners https://mcp.vulners.com/mcp \  --header "X-Api-Key: YOUR_API_KEY"

Cursor, in ~/.cursor/mcp.json:

json
{  "mcpServers": {    "vulners": {      "url": "https://mcp.vulners.com/mcp",      "headers": { "X-Api-Key": "YOUR_API_KEY" }    }  }}

The same snippets for other clients are on the connection guide at https://mcp.vulners.com/.


Quick Start with Claude Desktop

The easiest way to use Vulners MCP is through Claude Desktop:

1. Pull the Docker Image

bash
docker pull ghcr.io/vulnerscom/vulners-mcp:latest

Images are published for linux/amd64 and linux/arm64, tagged latest and with each release version (e.g. 1.15.0). To build it yourself instead, see Building from Source.

2. Configure Claude Desktop

Add to your Claude Desktop configuration file:

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

json
{  "mcpServers": {    "vulners": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "-e",        "VULNERS_API_KEY=YOUR_API_KEY_HERE",        "ghcr.io/vulnerscom/vulners-mcp:latest"      ]    }  }}

Replace YOUR_API_KEY_HERE with your actual Vulners API key.

3. Restart Claude Desktop

After saving the configuration, restart Claude Desktop. The Vulners MCP server will be available through the 🔌 icon.

4. Start Using

You can now ask Claude questions like:

  • "Find recent vulnerabilities in Google Chrome"
  • "Show me details for CVE-2025-53770"
  • "What are recent exploted vulnerabilities in Citrix products"
  • "Audit this software: cpe:2.3:a:google:chrome:138.0.7204.184:::::::*"
  • "Audit ubuntu 22.04 packages 'openssl 3.0.2 amd64' and 'curl 7.81.0-1ubuntu1.14 amd64'"

Installation & Deployment

PyPI

bash
# stdio (Claude Desktop and other local MCP clients)VULNERS_API_KEY="your_api_key" uvx vulners-mcp
# or install itpip install vulners-mcpVULNERS_API_KEY="your_api_key" vulners-mcp

For Claude Desktop, use "command": "uvx", "args": ["vulners-mcp"] with VULNERS_API_KEY in "env".

Docker with run script

For easy HTTP mode deployment, use the provided run script:

bash
./run-docker.sh

It runs a locally built vulners-mcp:latest image (see Building from Source). The server will start in HTTP mode at http://0.0.0.0:8000/mcp. No API key is needed to start it — see Authentication: each caller sends their own key as an X-Api-Key header per request.

Docker (manual)

Run the MCP server in HTTP mode (no API key needed to start it):

bash
docker run -d \  --name vulners-mcp-http \  -e MCP_TRANSPORT_MODE="http" \  -e VULNERS_BASE_URL="https://vulners.com" \  -p 8000:8000 \  ghcr.io/vulnerscom/vulners-mcp:latest

Callers then send their own key per request, e.g.:

bash
curl -X POST http://localhost:8000/mcp \  -H "Content-Type: application/json" \  -H "Accept: application/json, text/event-stream" \  -H "X-Api-Key: your_api_key" \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_supported_os","arguments":{}}}'

For Claude Desktop (stdio mode), the -i flag is used instead, and the key is set as an environment variable (see Authentication — stdio has no per-request header to carry one):

bash
docker run -i --rm \  -e VULNERS_API_KEY="your_api_key" \  ghcr.io/vulnerscom/vulners-mcp:latest

Build & run locally

bash
git clone https://github.com/vulnersCom/vulners-mcp.gitcd vulners-mcppoetry install# Default transport is stdio, which is why a key belongs in the environment# here -- see Authentication above. Not needed/used if you instead run with# MCP_TRANSPORT_MODE=http.export VULNERS_API_KEY="your_api_key"poetry run python -m vulners_mcp

Configuration / Environment Variables

VariableTypeDefaultDescription
VULNERS_API_KEYstringunsetstdio transport: the local operator's own Vulners API key (see Authentication). HTTP transport: also backs the anonymous tier when VULNERS_MCP_ANON_API_KEY is unset -- no env change required to enable the anonymous tier on a deployment that already sets this.
VULNERS_MCP_ANON_API_KEYstringunsetHTTP transport only. A Vulners API key backing the anonymous tier -- callers who send no X-Api-Key get forwarded on this key instead of being rejected (see Anonymous tier). Takes precedence over the VULNERS_API_KEY fallback when set. If neither is set, there is no anonymous tier: a keyless tools/call gets the guidance error.
ANON_MAX_SIZEinteger10HTTP mode, anonymous tier only. Any top-level integer size tool argument is clamped to this value for anonymous-tier calls. Keyed calls are never clamped.
VULNERS_BASE_URLstringhttps://vulners.comBase URL for the Vulners API (without /api suffix)
MCP_TRANSPORT_MODEstringstdioForce transport mode: http or streamable-http
MCP_STATELESS_HTTPbooleantrueHTTP mode only. Each request gets its own transport with no server-side mcp-session-id continuity, so the server can scale horizontally behind a load balancer with no sticky routing.
MCP_RATE_LIMIT_RPSnumber30HTTP mode, anonymous tier only. Generous global (not per-caller) requests-per-second ceiling protecting the shared anonymous-tier key's quota -- an abuse-of-last-resort belt. Keyed calls are never capped here; real per-IP throttling belongs at the edge (e.g. Cloudflare) in front of a hosted deployment.
FASTMCP_HOSTstring0.0.0.0Host/interface on which MCP server binds (HTTP mode only)
FASTMCP_PORTinteger8000Port for MCP server (HTTP mode only)
FASTMCP_STREAMABLE_HTTP_PATHstring/mcpPath for the streamable MCP endpoint (HTTP mode only)

Metrics (off by default). The Docker image ships both backends; for a PyPI install add the extra: pip install "vulners-mcp[metrics]" (or [prometheus] / [statsd]).

VariableTypeDefaultDescription
MCP_METRICS_ENABLEDbooleanfalseGlobal switch. Metrics are collected only when this is true and MCP_METRICS_MODE is not none.
MCP_METRICS_MODEstringnoneprometheus, statsd, both or none.
MCP_METRICS_PREFIXstringmcpPrefix for every metric name (mcp_tool_calls_total, ...).
MCP_METRICS_PROM_HOSTstring127.0.0.1Bind address of the Prometheus /metrics endpoint. Set 0.0.0.0 in a container.
MCP_METRICS_PROM_PORTinteger9100Port of the Prometheus /metrics endpoint.
MCP_METRICS_STATSD_HOSTstring127.0.0.1StatsD host.
MCP_METRICS_STATSD_PORTinteger8125StatsD UDP port.
MCP_METRICS_STATSD_SAMPLE_RATEnumber1.0StatsD sampling rate, 0.0-1.0.

Transport Mode:

  • The server automatically detects the transport mode based on how it's run
  • Use MCP_TRANSPORT_MODE=http to explicitly force HTTP mode (for standalone HTTP server)
  • Claude Desktop uses stdio mode automatically when run with docker run -i

Usage & Endpoints

With Claude Desktop

Simply ask questions in natural language:

  • "Search for Apache vulnerabilities"
  • "Get information about CVE-2024-1234"
  • "Audit software cpe:/a:vendor:product:version"

HTTP Mode

When running in HTTP mode, clients connect to:

text
http://<FASTMCP_HOST>:<FASTMCP_PORT>/mcp

Default: http://0.0.0.0:8000/mcp

Send your Vulners API key as an X-Api-Key header on every request for full, uncapped limits (see Authentication). initialize and tools/list always work without one; a keyless tools/call either runs on this deployment's anonymous tier (if configured -- reduced limits) or is rejected immediately with a structured guidance error instead of being forwarded upstream (if not).

The server is stateless (MCP_STATELESS_HTTP=true by default): every request is handled independently, with no server-side session continuity required between calls, so it can be deployed behind a load balancer with no sticky routing.


Testing

bash
poetry install --with devpoetry run ruff check .poetry run pytest

The suite mocks the Vulners API, so no key or network access is needed.


Available Tools

The server provides 7 MCP tools for vulnerability research:

Search & Discovery

  • search_lucene - 🔍 DISCOVERY TOOL FOR UNKNOWN VULNERABILITIES 🔍 Full-text search in Vulners Knowledge Base using Lucene syntax. Use ONLY when you don't have specific IDs or version information. NEVER use for known CVE/bulletin IDs - use bulletin_by_id instead. NEVER use for specific software versions (e.g., 'Chrome 138.0.7204.184') - use audit_software instead. 🚨 CRITICAL: For vendor/product searches, ALWAYS use cnaAffected.vendor and cnaAffected.product fields - the affectedSoftware field does NOT exist.

  • bulletin_by_id - 🚨 PRIMARY TOOL FOR KNOWN IDs 🚨 Fetch a bulletin by CVE or Vulners ID. Returns a COMPACT triage-card summary by default -- id, title, CVSS3, EPSS, CVE list, and a compact exploitation/AI signal -- NOT the full record. Pass fields=[...] to widen (e.g. add 'description', 'cvss', 'cvss2', 'affectedSoftware') or references=True for the linked-bulletin graph; requesting everything can be very large. Supports single ID or list of IDs. When list is provided, references are automatically set to False. NEVER use search_lucene for known IDs.

  • query_autocomplete - Autocomplete helper for search inputs (vendors, products, CVEs, etc.). Get search suggestions from the Vulners database.

  • search_cpe - Find CPE strings by vendor+product (latest schema). Search for Common Platform Enumeration identifiers in the Vulners database.

Vulnerability Auditing

  • audit_software - 🔍 VERSION-SPECIFIC SOFTWARE AUDIT 🔍 Audit specific software versions for known vulnerabilities. Use this when you have exact software version information (e.g., Chrome 138.0.7204.184). NEVER use search_lucene for version-specific software audits.

  • audit_linux_packages - Linux package audit (RPM/DEB) for a given distro + version. Analyze Linux package vulnerabilities against the Vulners database.

Information & System Support

  • get_supported_os - List supported OS identifiers/versions for Linux package audit. Get available operating systems for vulnerability analysis.

Tool Selection Guidelines

🚨 CRITICAL TOOL SELECTION RULES 🚨

WHEN TO USE EACH TOOL
  • bulletin_by_id: Use when you have SPECIFIC IDs

    • ✅ "Analyze CVE-2025-7775" → bulletin_by_id
    • ✅ "Look up CTX694938" → bulletin_by_id
    • ✅ "Tell me about CVE-2021-44228" → bulletin_by_id
    • ✅ Any specific CVE, RHSA, MS, CTX, NCSC, THN, etc. ID
  • search_lucene: Use ONLY for DISCOVERY when you don't have specific IDs

    • ✅ "Find vulnerabilities in Apache" → search_lucene
    • ✅ "Show me recent CVEs" → search_lucene
    • ✅ "What vulnerabilities exist in Chrome?" → search_lucene
    • ❌ NEVER use for known IDs - use bulletin_by_id instead
  • audit_software: Use for VERSION-SPECIFIC software audits

    • ✅ "Audit Chrome 138.0.7204.184" → audit_software
    • ✅ "Check vulnerabilities in Firefox 120.0" → audit_software
    • ✅ Use when you have vendor + product + version information
    • ❌ Don't use for vendor + product only (use search_lucene instead)

EFFICIENCY RULE: One bulletin_by_id call is sufficient for known IDs. Do NOT follow up with search_lucene unless explicitly asked to broaden scope.

Follow-up Workflow for Audit Tools

When using audit tools (audit_software, audit_linux_packages)
  • ✅ Run the audit tool to identify vulnerable software and get CVE IDs
  • ✅ Extract CVE IDs from the response vulnerabilities array
  • ✅ Use bulletin_by_id with the list of CVE IDs for detailed analysis
  • ✅ This provides comprehensive vulnerability information including patches, references, and exploitation data
  • ✅ Batch processing with bulletin_by_id is more efficient than multiple individual calls

For detailed tool documentation and parameters, use Claude's tool inspection or check the server's tool list.


Development & Contributing

  • Open issues or feature requests on GitHub
  • Submit pull requests with improvements
  • Ensure compatibility with the Vulners API
  • Test both stdio (Claude Desktop) and HTTP modes

Building from Source

bash
git clone https://github.com/vulnersCom/vulners-mcp.gitcd vulners-mcpdocker build -t vulners-mcp:latest .

Releases

Every push to main builds and publishes the Docker image to GHCR (latest and <version> tags). When version in pyproject.toml is new, the same workflow also publishes the package to PyPI and server.json to the MCP Registry. Bump the version in pyproject.toml and both places in server.json with every change (tests/test_server_json.py checks they match).


License

MIT


MCP Name: io.github.vulnersCom/vulners-mcp

來源:README.md,提交 ce1a428

工具

7

bulletin_by_id

🚨 PRIMARY TOOL FOR KNOWN IDs 🚨 Fetch a bulletin by CVE or Vulners ID. Returns a COMPACT triage-card summary by default -- id, title, CVSS3, EPSS, CVE list, and a compact exploitation/AI signal -- NOT the full record. Pass fields=[...] to widen (e.g. add 'description', 'cvss', 'cvss2', 'affectedSoftware') or references=True for the linked-bulletin graph; requesting everything can be very large. Supports single ID or list of IDs. When list is provided, references are automatically set to False. NEVER use search_lucene for known IDs.

輸入參數id必填fieldsreferences

search_lucene

🔍 DISCOVERY TOOL FOR UNKNOWN VULNERABILITIES 🔍 Full-text search in Vulners Knowledge Base using Lucene syntax. Use ONLY when you don't have specific IDs or version information. NEVER use for known CVE/bulletin IDs - use bulletin_by_id instead. NEVER use for specific software versions (e.g., 'Chrome 138.0.7204.184') - use audit_software instead. 🚨 CRITICAL: For vendor/product searches, ALWAYS use cnaAffected.vendor and cnaAffected.product fields - the affectedSoftware field does NOT exist.

輸入參數sizeskipquery必填fields

audit_software

🔍 VERSION-SPECIFIC SOFTWARE AUDIT 🔍 Audit specific software versions for known vulnerabilities. Use this when you have exact software version information (e.g., Chrome 138.0.7204.184). NEVER use search_lucene for version-specific software audits.

輸入參數body必填

get_supported_os

List supported OS identifiers/versions for Linux package audit. Get available operating systems for vulnerability analysis.

無需輸入參數。

audit_linux_packages

Linux package audit (RPM/DEB) for a given distro + version. Analyze Linux package vulnerabilities against the Vulners database.

輸入參數os必填package必填version必填include_candidates

query_autocomplete

Autocomplete helper for search inputs (vendors, products, CVEs, etc.). Get search suggestions from the Vulners database.

輸入參數body必填

search_cpe

Find CPE strings by vendor+product (latest schema). Search for Common Platform Enumeration identifiers in the Vulners database.

輸入參數sizevendor必填product必填

版本歷史

3
  1. v1.15.1最新Oct 22, 2026
  2. v1.15.0Oct 14, 2026
  3. v1.0.4Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。