# pg-cve-mcp 2.0.1 ships curated PostgreSQL CVE data to AI assistants via MCP

> **Key takeaway:** pg-cve-mcp 2.0.1 bundles 122 curated PostgreSQL CVEs and 14 confirmed exploits into five MCP tools, letting AI assistants answer version-safety and upgrade-path questions from structured data instead of web scraping.

**Published:** 2026-12-04T04:02:56.457879+00:00 
**Source:** PostgreSQL Official News 
**Category:** databases-storage 
**Canonical URL:** https://fosswire.org/news/pg-cve-mcp-201-ships-curated-postgresql-cve-data-to-ai-assis 

## Summary
The PG_CVE project has published pg-cve-mcp 2.0.1, an MCP server that exposes its manually curated PostgreSQL security dataset to AI assistants such as opencode, Claude Desktop and Cursor. The package is installable with pip and is published both to PyPI and the official MCP registry. It targets DBAs and engineers who want assistant-driven answers to questions like whether a specific minor release is safe or what the upgrade path from an older major looks like.

The server exposes five agent-callable tools returning structured JSON: get_cves, compare_versions, get_upgrade_path, get_exploits and get_summary, with CVE lists sorted by CVSS. The bundled dataset was refreshed from PG_CVE v1.1.3 with a last_updated date of 2026-11-30 and now contains 122 unique CVEs and 14 known exploits, including CVE-2026-19385 newly flagged as exploitable. The release also changes upgrade-path logic to recommend the previous, already-hardened major (N-1) rather than the newest one, and moves packaging metadata to the SPDX Apache-2.0 expression.

## How pg-cve-mcp 2.0.1 structures PostgreSQL security data for agents
- **Agent tool surface:** Five MCP tools (get_cves, compare_versions, get_upgrade_path, get_exploits, get_summary) return structured JSON, and CVE lists are sorted by CVSS so assistants can rank severity without post-processing.
- **Dataset provenance:** The bundled PG_CVE v1.1.3 snapshot (last_updated 2026-11-30) carries 122 unique CVEs and 14 known exploits, with manually curated yanked-release reasons and confirmed exploits rather than automated scraping results.
- **Upgrade-path logic:** get_upgrade_path now recommends the previous, already-hardened major (N-1, for example 18.7) instead of the brand-new major, falling back to the newest active major when only one is supported; PostgreSQL 19 is the newest active major and 14 is end-of-life.
- **Transport and SDK:** The server is built on the MCP Python SDK v2 and supports both stdio and self-hosted Streamable HTTP transports, covering local desktop assistants and shared deployments.
- **Packaging:** Version 2.0.1 is bumped across pyproject.toml, server.json, glama.yaml and mcphosting.json, and license metadata moved to the SPDX expression Apache-2.0, dropping deprecated setuptools license fields.

## Why it matters
PostgreSQL operators routinely need to judge whether a running minor release is affected by a CVE or which major to migrate to, and this server turns that into a structured query an assistant can execute instead of a manual dashboard crawl. Because the data is manually curated, it avoids the false positives that automated CVE scrapers introduce into upgrade planning. Publishing to the official MCP registry also makes the tool discoverable to the growing set of MCP-capable editors and agents, giving the PostgreSQL ecosystem a reference example of exposing operational intelligence through the protocol.