LocalFree

Postgres DBA MCP server

a-lafon/postgres-dba-mcp

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

0 GitHub stars

Install Postgres DBA in Claude Code

Claude Code
claude mcp add postgres-dba -e DATABASE_URI=... -- docker run -i --rm -e DATABASE_URI ghcr.io/a-lafon/postgres-dba-mcp:0.3.3
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "postgres-dba": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URI",
        "ghcr.io/a-lafon/postgres-dba-mcp:0.3.3"
      ],
      "env": {
        "DATABASE_URI": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the Postgres DBA MCP server do?

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

Is the Postgres DBA MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does Postgres DBA run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Postgres DBA to Claude Code?

Run: claude mcp add postgres-dba -e DATABASE_URI=... -- docker run -i --rm -e DATABASE_URI ghcr.io/a-lafon/postgres-dba-mcp:0.3.3

More databases MCP servers

View all