sec1-mcp

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

sec1-mcp

CI Container

An MCP server that tells an AI agent which known security advisories apply to the software you run or are about to deploy.

It is a lookup tool: it holds no inventory and needs no configuration. An agent that can see your systems (for example, one listing the container images in a Kubernetes cluster) passes what it finds to this server and gets back, for each item: whether advisories apply to that version, which are being exploited or have public exploit tools, what version fixes them, whether the release line is still supported, and how sure the answer is.

{"image": "ghcr.io/berriai/litellm:main-v1.106.6-stable"}
{
  "status": "affected",
  "reason": "2 advisories apply to version 1.106.6.",
  "latestVersion": "1.110.2",
  "versionStatus": "behind"
}

It follows the MCP specification revision 2026-07-28, through the official Go SDK, over stdio or Streamable HTTP.

Quick start

With Go 1.26 or later:

go install github.com/bitop-dev/sec1-mcp@latest

Or build from a checkout:

git clone https://github.com/bitop-dev/sec1-mcp.git
cd sec1-mcp
go build -o bin/sec1-mcp .

Or use the container image:

docker run -i --rm ghcr.io/bitop-dev/sec1-mcp:latest

Then register it with your agent. For Claude Code:

claude mcp add sec1 -- /path/to/sec1-mcp/bin/sec1-mcp

For other clients, and for connecting over HTTP, see docs/agents.md.

No account needed

Every tool works with no account, API key or sign-up of any kind. The server only reads public data.

Three settings are optional. None unlocks a feature; each only changes speed or access:

Setting Needs What it changes
GITHUB_TOKEN A GitHub account Raises GitHub's limit from 60 requests an hour. Without it, heavy use slows down or fails for a while.
NVD_API_KEY A free key from NVD Lets NVD lookups run about ten times faster. Without it they are paced at one every six seconds.
SEC1_HTTP_TOKEN Nothing; you choose it Protects the HTTP transport. Not used on stdio.

This is a rule for the project, not an accident: a source that needs an account is only ever added as an option, and when it is not configured the answer's coverage says it was skipped.

Tools

All eight are read-only.

Tool Use it to
check_component Get the advisories that apply to one component at one version.
check_components Check up to 25 components at once and get a summary of each.
check_images Check up to 500 container images, given as a list or as raw kubectl output.
check_sbom Check the packages inside an image, from an SBOM or scanner report.
suggest_version Find the smallest upgrade that fixes what affects the running version.
get_advisory Get the full record for one CVE, GHSA or other advisory id.
resolve_component See how a name or image is identified, without any lookups.
find_identifiers Search for candidate identifiers for a product the catalog does not know.

The server also offers three prompts (audit_cluster_images, plan_upgrade, triage_advisory) and one resource, sec1://catalog, which lists the products it recognises.

A component can be given by name (LiteLLM), by container image reference, or by explicit identifiers: a registry package, a GitHub repository, or an NVD product. The built-in catalog recognises about twenty common products by name and image, and you can add your own with a catalog file. Anything else is checked by passing identifiers.

Every answer has a status:

Status Meaning
affected Advisories apply to this version.
possibly_affected An exploited vulnerability names the product, but the version could not be checked against it.
no_known_advisories Every applicable source answered and none lists this version.
version_needed Advisories exist for the product; without a version it cannot say which apply.
unknown It could not be determined. This never means safe.

Documentation

Page What it covers
Using it from an agent Connecting, what to tell the agent, and worked workflows such as auditing a Kubernetes cluster.
Tool reference Every tool's inputs and outputs, with real example answers.
How it works The sources, how answers are combined, the status and priority rules, caching and deadlines.
Running the server stdio and HTTP, authentication, the container image, and a Kubernetes example.
The product catalog How names and images are matched, and how to add a product.

What it covers, and what it does not

Sources: OSV, the upstream GitHub repository's security advisories, NVD, CISA's Known Exploited Vulnerabilities catalog, EPSS, the nuclei-templates and Metasploit indexes for public exploit tools, and endoflife.date for release lifecycles.

  • It is not an image scanner. The product tools report a product's own advisories. check_sbom checks the language packages inside an image from an SBOM you supply, and reports operating system packages as not checked. Use an image scanner for those.
  • It does not guess. A product outside the catalog is unrecognised until you give identifiers for it. find_identifiers suggests candidates, which someone must confirm.
  • Advisory text is untrusted. Titles, summaries and reference URLs are written by third parties. The server cleans and labels them, and the agent reading them must still treat them as data.
  • The HTTP transport has no authentication unless you set a token. See docs/deployment.md.

Development

go vet ./...
go test -race ./...

See CONTRIBUTING.md. Changes are recorded in CHANGELOG.md, and security reports go through SECURITY.md.

License

MIT

Documentation

Overview

Command sec1-mcp is an MCP server that reports known security advisories for the software you run, by product name, version or container image.

By default it speaks MCP over stdin and stdout, which is how an agent on the same machine starts it. With -http it serves Streamable HTTP instead, for agents elsewhere on the network.

Directories

Path Synopsis
internal
catalog
Package catalog turns what an agent sees, a product name or a container image reference, into the identifiers the advisory sources need.
Package catalog turns what an agent sees, a product name or a container image reference, into the identifiers the advisory sources need.
intel
Package intel looks up security advisories for one software component across OSV, GitHub repository advisories, NVD, CISA's Known Exploited Vulnerabilities catalog and EPSS, and combines the answers.
Package intel looks up security advisories for one software component across OSV, GitHub repository advisories, NVD, CISA's Known Exploited Vulnerabilities catalog and EPSS, and combines the answers.
server
Package server defines the MCP server: its tools, their inputs and outputs, and the validation between an agent's request and the lookups.
Package server defines the MCP server: its tools, their inputs and outputs, and the validation between an agent's request and the lookups.
version
Package version compares the version strings that advisories and release tags use: dotted numbers with an optional pre-release or post-release suffix (1.83.7, v4.3.0, 0.32.0rc0, 17.5.1-ee, 1.83.7-stable.patch.1).
Package version compares the version strings that advisories and release tags use: dotted numbers with an optional pre-release or post-release suffix (1.83.7, v4.3.0, 0.32.0rc0, 17.5.1-ee, 1.83.7-stable.patch.1).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL