Skip to content
bitop-devPublic

About

MCP server that tells an AI agent which known security advisories apply to the software you run: by product, version or container image.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

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, SEC1_HTTP_TOKEN_FILE Nothing; you choose them Protect the HTTP transport, with one shared token or one per team. 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.
Running it for several teams A token per team, rate limits, the audit log, metrics, and capacity.
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

About

MCP server that tells an AI agent which known security advisories apply to the software you run: by product, version or container image.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages