MCP directory
PP

PostgreSQL Performance (read-only)

by github.com/gouranshul · v0.1.0 · updated Oct 10, 2026

Read-only PostgreSQL performance diagnostics: slow queries, EXPLAIN, index advice, locks, functions

Docker

Run it locally

Install the package and point your AI client at it.

Docker

docker run -i --rm ghcr.io/gouranshul/pg-perf-mcp:0.1.0

Environment variables

  • PGPERF_DB_URLrequired

    JDBC URL of the database to diagnose. From inside the container, use host.docker.internal for a database on your machine, e.g. jdbc:postgresql://host.docker.internal:5432/mydb

  • PGPERF_DB_USERrequired

    A read-only role with pg_read_all_stats and pg_monitor (see docker/init.sql)

  • PGPERF_DB_PASSWORDrequiredsecret

    Password of that role

  • MCP_API_KEYrequiredsecret

    Bearer token clients must send, at least 16 characters (32+ random recommended)

More MCP servers