linux-advisory-mcp
Indexes the public AlmaLinux errata feed and provides tools to query AlmaLinux security advisories, CVEs, fixed package versions, host patch status, and indexed release/sync status.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
linux-advisory-mcp
An MCP server that lets Claude (or any MCP client) answer questions about AlmaLinux security advisories, CVEs and package versions, from a local index of the public AlmaLinux errata feed.
Ask things like:
"Is
openssl-3.0.7-24.el9.x86_64behind any security fixes on AlmaLinux 9?""Which advisory fixed CVE-2024-6387, and what version do I need?"
"Here is
rpm -qafrom a host. What is outstanding, most severe first?""What Critical advisories has AlmaLinux 9 shipped since October?"
Why this needs a tool
A language model cannot answer "is this host patched?" reliably on its own, for two reasons. The advisory data changes daily, so it is not in the model. And RPM versions do not sort like strings or semantic versions: 5.14.0-70.el9 is older than 5.14.0-284.el9, 1.0~rc1 is older than 1.0, and an epoch outranks everything. The server does both jobs in code: it indexes the feed, and it compares versions with rpm's own ordering rules (src/advisory_mcp/rpmver.py).
I spent several years building and patching an Enterprise Linux platform for a large fleet.
flowchart LR
C[Claude or another MCP client] -- "MCP over stdio" --> S[linux-advisory-mcp]
S --> Q[Queries + rpm version comparison]
Q --> DB[(SQLite index)]
F[errata.almalinux.org feed] -- "sync" --> DBRelated MCP server: osidb-mcp
Tools
Tool | What it does |
| One line of |
| A whole |
| The advisories that fix a CVE in each synced release, with fixed versions |
| One advisory: severity, CVEs, description, fixed packages |
| Filter by package, severity, date and text |
| Which releases are indexed and when they were synced |
All tools are read-only. Mistakes the caller can fix (unknown release, unsynced data, unparseable package line) come back as tool errors with a message that says what to do, so the model can correct itself. When the data cannot answer a question, the tools say so: a CVE with no advisory returns a note that absence does not prove a release is unaffected.
Install and run
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
linux-advisory-mcp sync --release 9 # downloads about 35 MB, indexes in under a second
linux-advisory-mcp statusAdd it to Claude Code:
claude mcp add linux-advisory -- linux-advisory-mcp serveOr to any client that takes a JSON server entry:
{
"mcpServers": {
"linux-advisory": { "command": "linux-advisory-mcp", "args": ["serve"] }
}
}The index lives in ~/.cache/linux-advisory-mcp/ (override with ADVISORY_MCP_DIR). Releases 8, 9 and 10 are supported; sync the ones you need and re-run sync to refresh.
Tests
pytest -q # 55 teststests/test_rpmver.py: the version ordering, including tilde, caret, epochs, leading zeros andrpm -qaline parsing.tests/test_store.py: indexing and every query, against a fixture of five real advisories trimmed from the feed.tests/test_server.py: the tools called through the MCP server object.tests/test_stdio_end_to_end.py: starts the real server as a subprocess and drives it with an MCP client over stdio, including an error case.
Limits
It reports advisories that have shipped. It does not know about CVEs with no fix yet, and it is not a vulnerability scanner.
Module streams (for example
php:8.1againstphp:8.2) are recorded on each result but not resolved: a package from one stream can be flagged by an advisory for another. Check themodulefield.Default
rpm -qaoutput omits the epoch. When it is missing, the comparison assumes the same epoch as the fixed package.The whole feed is re-downloaded on each sync; there is no incremental update.
AlmaLinux only. The feed format is specific to it.
Advisory data comes from errata.almalinux.org and belongs to the AlmaLinux OS Foundation. This project is not affiliated with AlmaLinux.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
ZEN SecDB MCP server for CVE intelligence, CVSS/EPSS scoring, advisories, SSVC, and package audits.
Live Red Hat Security Data CVE severity, CVSS v3 scores, RHEL packages, and CSAF RHSA errata.
1CVEs, affected versions and fix versions for your dependencies, from an affected-version ledger.
Live Alpine Linux SecDB container CVE feeds, fixed apk versions, and branch security posture.
51
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceFastMCP server that enables AI assistants to integrate with Red Hat Errata Tool, allowing access to product information and advisory details through authenticated API calls.-
- AlicenseNot gradedqualityBmaintenanceMCP server for OSIDB (Red Hat Product Security's vulnerability management system). Enables read-only querying of flaws, affects, trackers, and status via natural language from MCP clients like Cursor or Claude Desktop.2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for querying live CISA KEV, EPSS, and enriched vulnerability feeds with full provenance. Enables natural-language access to auditable security-intelligence data from Claude Desktop and other MCP clients.MIT
- AlicenseAqualityNot gradedmaintenanceEnables querying Red Hat security data including CSAF advisories, CVEs, and OVAL streams through natural language.6Apache 2.0