NestDaddy

pgmcp

io.github.pascalallen/pgmcp · v1.1.0

Read-only Postgres ops/DBA diagnostics: slow queries, EXPLAIN, locks, index and table health.

Connect Runs on your machine

Terminal
claude mcp add pgmcp -e PGMCP_DATABASE_URL=<PGMCP_DATABASE_URL> -- docker run -i --rm ghcr.io/pascalallen/pgmcp:1.1.0
claude_desktop_config.json
{
  "mcpServers": {
    "pgmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pascalallen/pgmcp:1.1.0"
      ],
      "env": {
        "PGMCP_DATABASE_URL": "<PGMCP_DATABASE_URL>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "pgmcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pascalallen/pgmcp:1.1.0"
      ],
      "env": {
        "PGMCP_DATABASE_URL": "<PGMCP_DATABASE_URL>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "pgmcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pascalallen/pgmcp:1.1.0"
      ],
      "env": {
        "PGMCP_DATABASE_URL": "<PGMCP_DATABASE_URL>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
PGMCP_DATABASE_URL
Required, secret
Postgres connection string (read-only role recommended)

Details

Packageghcr.io/pascalallen/pgmcp:1.1.0 (OCI, stdio)
Packagehttps://github.com/pascalallen/pgmcp/releases/download/v1.1.0/pgmcp_1.1.0.mcpb (MCPB, stdio)
First published20 Aug 2026
Last updated20 Aug 2026
Registry nameio.github.pascalallen/pgmcp

More databases servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.