Skip to main content
Glama
meob

pg-cve-mcp

by meob

pg-cve-mcp — PostgreSQL CVE & Release Intelligence MCP Server

Query CVEs, yanked releases, known exploits, and upgrade paths for any PostgreSQL version directly from your AI assistant.


Quick Start

pip install pg-cve-mcp
pg-cve-mcp

Or with npx (no install):

npx -y pg-cve-mcp

Related MCP server: MCP PostgreSQL Operations

MCP Tools

Tool

Description

get_cves(version)

List all CVEs affecting a specific PostgreSQL version

get_version_status(version)

EOL, yanked, CVE count, max CVSS, exploit count

compare_versions(v1, v2)

Side-by-side CVE comparison between two versions

get_upgrade_path(from_version)

Recommended upgrade target with fixed CVEs

get_yanked_versions()

All releases flagged as bad/regression

get_exploits()

All CVEs with known public exploits

get_latest_minor(major)

Latest minor in a given major branch

get_summary()

Overview of the tracked CVE database

Remote (Hosted) Server

A remote deployment is available at:

https://pgcve-mcp-production.up.railway.app/mcp

This uses the Streamable HTTP transport. Configure any MCP client with this URL, for example in opencode.json:

{
  "mcp": {
    "pg-cve-mcp": {
      "type": "remote",
      "url": "https://pgcve-mcp-production.up.railway.app/mcp"
    }
  }
}

Local stdio fallback

To run the server locally in stdio mode (for clients that only support stdio):

pip install -e .
pg-cve-mcp

Configuration

Env Var

Default

Description

PG_CVE_MCP_TTL

3600

Cache TTL in seconds for CVE data

PG_CVE_MCP_DATA_URL

https://meob.github.io/PG_CVE/postgresql_cves.json

CVE data source URL

PORT

8000

HTTP port for the Streamable HTTP server

Development

Run the Streamable HTTP server locally:

python run_server.py
# Server listens on http://127.0.0.1:8000/mcp

Run tests:

python -m pytest

Data Source

Data is fetched from the PG_CVE project's GitHub Pages with local caching. Falls back to a bundled copy if the network is unavailable.

Example Prompts

"What CVEs affect PostgreSQL 16.4?"

"Is PostgreSQL 15.8 safe to use?"

"Compare CVEs in 16.3 vs 16.4"

"What's the upgrade path from PostgreSQL 14.10?"

License

Apache 2.0

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to interact with PostgreSQL databases using natural language queries, providing secure read-only access to database schemas and SQL translation capabilities.
    Last updated
    6
    27
  • A
    license
    A
    quality
    B
    maintenance
    Enables comprehensive PostgreSQL database monitoring, analysis, and management through natural language queries. Provides performance insights, bloat analysis, vacuum monitoring, and intelligent maintenance recommendations across PostgreSQL versions 12-17.
    Last updated
    34
    155
    MIT
  • A
    license
    -
    quality
    F
    maintenance
    Enables AI assistants to safely explore, analyze, and maintain PostgreSQL databases with read-only mode by default, SQL injection prevention, query performance analysis, and optional write operations.
    Last updated
    98
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.

  • CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.

  • CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/meob/PG_CVE-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server