First Epss Mcp Server

io.github.cyanheads由 GitHub 账号 cyanheads 发布v0.2.0更新于 Oct 29, 2026

Look up FIRST EPSS scores and daily history, find CVEs by threshold, and prioritize them with CVSS.

已验证Streamable HTTP可网页运行安全与监控数据与分析

概览

AI 生成的概览

查询 CVE 的 FIRST EPSS 利用概率评分与每日历史,按阈值筛选 CVE,并结合调用方提供的 CVSS 严重度划分处置优先级。

可以做什么
  • 批量获取指定 CVE 的最新或指定日期的 EPSS 概率与百分位
  • 查看每日评分历史,包括峰值、缺失日期、变化幅度与模型切换
  • 按 EPSS 或百分位区间、CVE 年份或数据集新增时间发现 CVE
  • 结合调用方提供的 CVSS 基础分,为 CVE 分配修复优先级层级
  • 读取关于评分解读、模型、覆盖范围与优先级惯例的静态说明
适用场景
适合漏洞积压梳理:判断一批 CVE 近期被利用的可能性、观察评分随时间的变化,或用 EPSS 加自有 CVSS 值排出可解释的修复顺序。
运行要求
可使用公开托管端点,或在本地通过 npx(Node.js)、Docker 运行,也可用 Bun 1.4.0+ 或 Node.js 24+ 从源码构建。需要能访问 FIRST 的公开 EPSS API,该 API 无需密钥或注册。可选框架设置涵盖传输方式、HTTP 主机/端口/路径、认证模式、日志与存储。
安装前请注意
仅对公开 API 做只读查询,不索取任何凭据。优先级层级与默认阈值是调用方自定的策略惯例,并非 FIRST 的官方建议;缺失的评分或严重度保持未知,不会当作零。响应有字节上限,大批量会返回预览,需按返回的偏移量继续调用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 First Epss Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.cyanheads%2Ffirst-epss-mcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "first-epss": {
      "type": "http",
      "url": "https://first-epss.caseyjhand.com/mcp"
    }
  }
}

README

@cyanheads/first-epss-mcp-server

Look up FIRST EPSS exploitation scores and daily history, find CVEs by score threshold, and prioritize CVEs with caller-supplied CVSS via MCP. STDIO or Streamable HTTP.

5 Tools


Overview

Daily forecasts of observed CVE exploitation within the next 30 days from FIRST EPSS, generated by Empirical Security and published by FIRST. Look up scores, inspect daily movement, discover CVEs by score or year, and combine likelihood with caller-supplied CVSS severity. The public API needs no key or registration.

Tools

ToolDescription
epss_get_scoresFetch current or historical EPSS probability and percentile for supplied CVEs
epss_get_timeseriesInspect daily history, exact-date changes, peaks, gaps, and model transitions
epss_query_thresholdDiscover CVEs by inclusive score bounds, CVE year, or recent dataset addition
epss_prioritize_cvesAssign configurable remediation tiers using EPSS and caller-supplied CVSS severity
epss_list_referenceExplain score interpretation, models, coverage, and prioritization conventions

Skills

SkillDescription
first-epss-guideGates and workflows for the calling agent: when an NVD or KEV source must answer instead, where score dates and offsets come from, when paging is done, why discovery pages are not EPSS-ranked, and how to tell a model change from real score movement

Served over MCP as skill://first-epss-guide/SKILL.md and shipped in the npm package under skills/.

Capability reference

epss_get_scores tool

  • Up to 5,000 cves as an array or a whitespace/comma/semicolon-delimited string; case and Unicode dashes are normalized. Process up to 500 unique identifiers from batchOffset (default 0). Optional date (2021-04-14 through today, UTC) selects a historical snapshot; omitted or blank means latest available
  • Each score carries epss, percentile, date, and modelVersionSource (csv_header, published_schedule, or unavailable), ordered by EPSS descending
  • unscoredCves separates invalid_format from not_returned; a missing score is unknown, never zero
  • snapshot_unavailable identifies a dated snapshot FIRST cannot supply; select another date or omit it. A CVE omitted from a published snapshot remains not_returned

epss_get_timeseries tool

  • Same cves / date / batchOffset inputs; process up to 50 unique identifiers per call
  • Each item pairs the anchor current with up to 30 preceding daily observations in series, plus missingDates, peak, and delta7d / delta30d, which need an exact calendar baseline and otherwise appear in unavailableDeltas
  • modelBoundariesCrossed and each comparison's crossesModelBoundary flag published model transitions; neither explains why a score moved
  • Derived deltas are rounded to nine decimals; original scores retain their precision. Re-anchor on previousAnchorDate for the preceding window without overlap; the pointer does not guarantee a published snapshot

epss_query_threshold tool

  • Inclusive minEpss / maxEpss / minPercentile / maxPercentile bounds, year, and addedWithinDays intersect, with optional historical date; at least one filter and ordered bounds are required, otherwise invalid_filter_combination. addedWithinDays is dataset-addition recency and ignores date
  • One candidate page per call in FIRST's upstream order, which is not ranked by EPSS: to rank, narrow the bounds, page through every match, and sort locally. Positive safe-integer limit (default 100) plus offset. Limits above 10,000 are clamped to 10,000; the notice reports requested/applied values and both filters.limit and pagination.limit echo the applied limit. With year, candidateTotal counts broad candidates and total is null (totalRelation: "unknown"), so a filtered page can be empty with hasMore: true
  • Complete score rows fit within the 65,536-byte limit on each serialized response surface. When rows are withheld, pagination.budgetLimited is true and withheldCount counts inspected matches omitted; examinedCount still counts every inspected candidate. nextOffset resumes at the first withheld match's original candidate position, including with year filtering
  • Continue with the same filters and limit, provenance.scoreDates[0] as date, and nextOffset as offset

epss_prioritize_cves tool

  • Up to 5,000 { cve, cvssBaseScore? } entries (CVSS 0–10, caller-supplied) against latest or optional dated EPSS; process up to 500 unique CVEs from batchOffset. A duplicate CVE with differing CVSS, including missing versus supplied, fails as conflicting_cvss. Unavailable dated snapshots fail as snapshot_unavailable
  • Defaults severityThreshold: 7 and likelihood: { metric: "epss", threshold: 0.10 }, both inclusive; metric: "percentile" is an explicit alternative, and neither is FIRST guidance
  • Tiers are act_now (high severity, high likelihood), scheduled (high, low), monitor (low, high), and defer (low, low); missing CVSS lands in epssOnly, missing EPSS in unscoredCves with its CVSS kept

epss_list_reference tool

  • topic: interpretation, models, coverage, prioritization, or all (default)
  • Static, source-linked guidance with a verifiedAt date; makes no upstream request

Batch continuation

All four dynamic tools bound each JSON-serialized content array and structuredContent object to 65,536 UTF-8 bytes, including notices, provenance, filters and pagination. Threshold discovery uses candidate continuation as described above; supplied-CVE tools use the batch continuation below.

Scores, timeseries and prioritization retain whole score rows, history items and unscored entries. processedCount still counts the workload processed, including invalid identifiers; returnedCount counts complete entries retained and withheldCount counts processed entries omitted by the byte limit. deferredCount counts entries never queried. withheldCves and deferredCves retain their array types; their *Complete flags explicitly identify previews when the full lists cannot fit. budgetLimited discloses any response shortening.

Malformed identifiers in unscored, withheld and deferred text are JSON string literals, escaped for Markdown. JSON decoding recovers the normalized identifier, including embedded CR, LF, tabs and backslashes; canonical CVEs remain plain identifiers. Structured identifiers are unchanged. Exhausted batch offsets report completion without upstream lookups or missing-score claims. Threshold notices distinguish a globally empty search, exhausted candidate offsets, and an exact-year page without matches, including the final page.

When nextBatchOffset is present, call the same tool with the original cves, nextBatchOffset as batchOffset, and provenance.scoreDates[0] as date (retain the requested date if no score date was returned). Prioritization also keeps every original cvssBaseScore, severityThreshold and likelihood. The offset counts normalized unique identifiers in first-occurrence input order, including invalid entries; score sorting does not change it. Continue until nextBatchOffset is absent. An offset past the end returns explicit empty accounting. Lists are for inspection; continuation through the original batch preserves entries even when lists are previews.

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

FIRST EPSS-specific:

  • Keyless lookup against FIRST's public API, with bounded batches rather than corpus synchronization
  • Shared API request pacing, transient-failure retries, cancellation, and a 45-second whole-call deadline
  • Model attribution from a matching daily CSV header or the verified published schedule for explicitly dated requests and preceding history; current-anchor verification failures remain visible

Agent-friendly output:

  • Provenance: API source, retrieval time, score dates, and model metadata marked verified, inferred, or unavailable
  • Explicit coverage: missing EPSS and CVSS remain unknown; unscoredCves and deferredCves distinguish omissions from work not queried. Transport failures fail the call
  • Structured results and formatted text carry the same accounting, history gaps, pagination, thresholds, and recovery guidance

Getting started

Connect to the hosted instance, no install:

sh
claude mcp add --transport http first-epss-mcp-server https://first-epss.caseyjhand.com/mcp

Or run it locally:

sh
claude mcp add first-epss-mcp-server -- npx -y @cyanheads/first-epss-mcp-server

For other clients, add this to the MCP config file:

json
{  "mcpServers": {    "first-epss-mcp-server": {      "command": "npx",      "args": ["-y", "@cyanheads/first-epss-mcp-server"]    }  }}

FIRST's EPSS API is keyless; the server needs only internet access to it. For Docker or a source build, see Running the server.

Configuration

No server-specific settings are required.

VariableDescriptionDefault
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_HOSTHTTP bind address.127.0.0.1
MCP_HTTP_PORTHTTP server port.3010
MCP_HTTP_ENDPOINT_PATHHTTP MCP endpoint path./mcp
MCP_SESSION_MODEHTTP session mode: stateless, stateful, or auto. The server declares stateless in code; an explicit value overrides it.stateless
MCP_AUTH_MODEAuthentication: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (debug, info, warning, error, etc.).debug; Docker selects info
LOGS_DIRDirectory for log files (Node.js only).<app-root>/logs
STORAGE_PROVIDER_TYPEStorage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1.in-memory
OTEL_ENABLEDEnable OpenTelemetry.false

See .env.example for every server setting and the common framework overrides.

Running the server

Local development

Requires Bun v1.4.0 or higher (or Node.js v24+).

  • Clone and install:

    sh
    git clone https://github.com/cyanheads/first-epss-mcp-server.gitcd first-epss-mcp-server && bun installcp .env.example .env   # optional: framework transport, auth, logging, telemetry
  • Build and run:

    sh
    # One-time buildbun run rebuild
    # Run the built serverbun run start:stdio# orbun run start:http   # http://localhost:3010/mcp
  • Run checks and tests:

    sh
    bun run devcheck   # Lint, format, typecheck, securitybun run test       # Vitest test suitebun run lint:mcp   # Validate MCP definitions against spec

Docker

sh
docker run --rm -p 3010:3010 ghcr.io/cyanheads/first-epss-mcp-server:latest

The image defaults to HTTP transport, stateless session mode, and logs to /var/log/first-epss-mcp-server. To run it over stdio from an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/first-epss-mcp-server:latest"]. To build locally, docker build -t first-epss-mcp-server .; OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

DirectoryPurpose
src/mcp-server/toolsFive tool definitions, shared schemas, formatting, and history policy.
src/services/epssFIRST API requests, normalization, pacing, retries, and model metadata.
tests/Unit and integration tests mirroring src/, plus bundle-script tests under tests/scripts/.

Development guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for logging, ctx.state for storage
  • Export new tools from the src/mcp-server/tools/definitions/index.ts barrel, which src/index.ts passes to createApp()
  • Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields

Contributing

Issues are welcome. Run checks and tests before submitting:

sh
bun run devcheckbun run test

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

来源:README.md,提交 1604e09

工具

5

epss_get_scores

Epss Get Scores

Retrieve latest available or historically dated FIRST EPSS probability and percentile for supplied CVEs. Process up to 500 unique entries from batchOffset; response byte limits can return fewer whole entries. Resume with nextBatchOffset as batchOffset, the original cves and returned score date as date. deferredCves were not queried; withheldCves were processed but omitted, and either list can be a declared preview. Missing scores remain unknown; use epss_list_reference for coverage and interpretation.

输入参数cves必填datebatchOffset

epss_get_timeseries

Epss Get Timeseries

Retrieve an EPSS anchor and up to 30 preceding daily observations for up to 50 unique CVEs from batchOffset. Response byte limits retain whole history items. Resume CVE batches with nextBatchOffset as batchOffset, the original cves and returned score date as date; withheldCves were processed, deferredCves were not queried, and lists can be declared previews. Exact 7-day and 30-day deltas require their calendar baselines; gaps remain unknown. Model boundaries do not explain score movement. Re-anchor using previousAnchorDate for the preceding history window; that snapshot may be unavailable.

输入参数cves必填datebatchOffset

epss_query_threshold

Epss Query Threshold

Discover CVEs using inclusive EPSS or percentile bounds, CVE year or dataset-addition recency; filters intersect and at least one is required. Examine one candidate page in the upstream FIRST order, which is not ranked by EPSS, so the first page does not hold the highest scores. Each serialized response surface fits 65536 UTF-8 bytes; budgetLimited and withheldCount disclose whole matches withheld, with nextOffset at the first withheld match. Year filtering can return an empty page with nextOffset; candidateTotal is a broad-query total, not an exact-year total. Continue with the same filters, limit, returned score date and nextOffset.

输入参数dateyearlimitoffsetmaxEpssminEpssmaxPercentileminPercentileaddedWithinDays

epss_prioritize_cves

Epss Prioritize Cves

Assign remediation tiers using latest or dated EPSS and caller-supplied CVSS base severity. Defaults are severity >= 7 and EPSS probability >= 0.10; select percentile explicitly for population rank. Missing severity stays in epssOnly and missing EPSS stays unscored. Thresholds are policy conventions, not FIRST guidance. Process up to 500 unique entries from batchOffset, returning whole entries within the byte budget. Resume using nextBatchOffset as batchOffset, the original cves with original cvssBaseScore values, returned score date as date, and the same severityThreshold and likelihood. Deferred lists may be declared previews; withheldCves were already processed.

输入参数cves必填datelikelihoodbatchOffsetseverityThreshold

epss_list_reference

Epss List Reference

Explain FIRST EPSS interpretation, model publishing dates, lookup coverage and transparent prioritization policy. Use this static reference before interpreting missing scores, score movement or probability versus percentile thresholds.

输入参数topic

版本历史

3
  1. v0.2.0最新Oct 29, 2026
  2. v0.1.3Oct 25, 2026
  3. v0.1.2Oct 19, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分