Postgres MCP tool skips the newest PostgreSQL release on purpose
This Postgres MCP server recommends an older supported major. We checked its upgrade logic, offline data and a zero-CVE result that needs context.

A Postgres MCP tool can give your AI assistant structured security answers and still make a judgment call you should inspect. In pg-cve-mcp 2.0.1, major-upgrade advice deliberately favors the previous supported PostgreSQL major over the newest one. With its bundled dataset, an upgrade from PostgreSQL 14 points to 18.7, even though PostgreSQL 19 is available. The maintainer's release announcement describes this as a cautious database administrator's policy.
That is a useful starting point for a migration discussion. It is also a policy choice, not a compatibility assessment of your application. Before letting an assistant turn the answer into a ticket, separate three questions: which vulnerabilities the dataset lists, whether your branch still receives support, and why the tool selected that destination.
The PyPI release record dates the package to December 1, 2026. The announcement page carries a December 4 date. This reporting checks the already available package rather than treating the announcement's date as the release time. It is a third-party project, listed under related open source on PostgreSQL's website.
What this Postgres MCP server actually supplies
The project documentation describes five tools: a version security report, a comparison between versions, upgrade advice, an exploit list and a dataset summary. They expose the maintainer's curated PG_CVE dataset as structured answers. The package supports local standard-input/output connections and a self-hosted HTTP option.
This distinction matters when choosing an integration. Its tool definitions accept version strings and query a dataset. They do not accept a database connection string or execute SQL against your server. You supply the version. A successful answer therefore establishes what this dataset says about that version, not that your deployment has been inspected.
The scope is attractive for a narrow workflow: collect the installed version through your existing inventory process, ask for the matching report, and attach the source links to an upgrade proposal. Keep configuration reviews, extension checks and application testing in their own evidence. PostgreSQL's security information page explicitly describes security as a shared responsibility across the database and its deployment environment, including client libraries and the application layer.
The upgrade target contains an opinion
We downloaded the 2.0.1 wheel from PyPI, extracted its bundled data, and called its version and upgrade functions locally. These checks exercised the package's decision logic without a live database or an AI model. They did not test a migration or the MCP transport.
Here is the resulting decision matrix. All destinations below reflect the bundled snapshot dated November 30, 2026, rather than a promise about future releases.
| Input version | Observed result | Decision for the developer |
|---|---|---|
| 14.10 | End-of-life; minor destination 14.25 and major destination 18.7 | A patch within 14 does not settle the support problem |
| 14.25 | Already at the branch's latest minor; major destination 18.7 | Plan a supported-major migration |
| 15.20 | Latest minor; next branch to reach end-of-life; major destination 18.7 | Separate current patch status from migration planning |
| 16.4 | Minor destination 16.16; no major destination | Test and apply the branch update |
| 19.0 | Already at the latest tracked minor; no major destination | The policy does not tell existing 19 users to downgrade |
The last row prevents a tempting misreading of the hook. This release does not universally reject the newest database. Its selection logic picks the second-newest active major when a major recommendation is needed, with a fallback when only one active major exists. That rule cannot tell whether your extensions, hosting provider or application favor the selected target.
For a team leaving an unsupported branch, an older supported destination may fit its testing experience. A team already validating the newest major may choose differently. Ask the assistant to state that reason explicitly instead of presenting a mechanically selected version as a measured verdict on reliability.
PostgreSQL's own versioning policy recommends the current minor within your chosen major. It also distinguishes the operational work: minor updates generally replace binaries and restart the server, while major upgrades require a dump/reload or pg_upgrade. Release notes can require additional steps. Treat the tool's two destinations as different work items with different validation plans.
A zero-CVE count can coexist with no support
Our packaged-data check of PostgreSQL 14.25 returned cve_count: 0 and max_cvss: 0.0, alongside eol: true. Its report also included a synthetic end-of-life warning scored at 10.0. That warning is explicitly marked synthetic, and it is excluded from the real vulnerability count. The upstream tests also check that unsupported reports prepend this warning.
The tool gives a consumer enough information to avoid a false all-clear. A dashboard that keeps only the numeric count throws that information away. An assistant that summarizes the result as “no vulnerabilities, safe to use” makes the same mistake in prose.
For your own acceptance test, use this copyable audit prompt:
Call get_summary(), get_cves("14.25"), and get_upgrade_path("14.25").
Show the dataset's last_updated value beside the version report.
Preserve eol and yanked flags even if cve_count is zero.
Distinguish synthetic warnings from actual CVE identifiers.
Explain why the major target was selected.
Link the PostgreSQL support policy before recommending an action.
Do not describe an unsupported branch as safe based on a zero count.Score the result on whether those conditions survive the final answer. The test is particularly useful for a ticket-writing agent: a terse subject line should not erase the reason a major migration is necessary.
The cache timer is not the age of the evidence
The data loader defaults to a cache lifetime of 86,400 seconds, or 24 hours. If fetching fails, it can return an existing cache even after that lifetime, then try a bundled dataset. This keeps the tool usable during a network failure, but a successful response does not prove a fresh upstream fetch occurred.
The local package snapshot we inspected reports November 30 as last_updated. Installing the package on a later day does not change that field. Lowering the cache lifetime cannot create new upstream research either. Preserve the dataset date in the report and choose a maximum acceptable age for your workflow. If that limit is exceeded, route the result to review instead of silently approving an upgrade proposal.
What to do
Try this release first as a read-only research step in an existing upgrade process. Give it an exact installed version, keep the raw result with the assistant's explanation, and cross-check the recommended target against PostgreSQL's current support table. Verify any vulnerability driving an urgent change at its linked advisory.
Use the matrix above as a small acceptance suite. Require the unsupported case to trigger migration planning, the ordinary supported case to retain a minor update, and the newest-major case to avoid an invented downgrade. Add a network-failure exercise before relying on it in automation, and inspect which dataset date reaches the final ticket.
The release's useful contribution is making a version discussion repeatable. Keep the support status, evidence date and target-selection reason attached to every answer. Those fields are what let a developer review the recommendation before it becomes a production change.


