NestDaddy

Postgres DBA MCP

io.github.a-lafon/postgres-dba-mcp · v0.3.3

Bounded, read-only PostgreSQL access for AI assistants: nine DBA tools, compact CSV output

Connect Runs on your machine

Terminal
claude mcp add postgres-dba-mcp -e DATABASE_URI=<DATABASE_URI> -- docker run -i --rm ghcr.io/a-lafon/postgres-dba-mcp:0.3.3
claude_desktop_config.json
{
  "mcpServers": {
    "postgres-dba-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/a-lafon/postgres-dba-mcp:0.3.3"
      ],
      "env": {
        "DATABASE_URI": "<DATABASE_URI>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "postgres-dba-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/a-lafon/postgres-dba-mcp:0.3.3"
      ],
      "env": {
        "DATABASE_URI": "<DATABASE_URI>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "postgres-dba-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/a-lafon/postgres-dba-mcp:0.3.3"
      ],
      "env": {
        "DATABASE_URI": "<DATABASE_URI>"
      }
    }
  }
}

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
DATABASE_URI
Required, secret
PostgreSQL connection URI of the database to serve

Details

Packageghcr.io/a-lafon/postgres-dba-mcp:0.3.3 (OCI, stdio)
First published30 Oct 2026
Last updated30 Oct 2026
Registry nameio.github.a-lafon/postgres-dba-mcp

More databases servers See all

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