Install Postgres DBA in 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{
"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 allPostgreSQL
itunified-io/mcp-postgres
PostgreSQL MCP Server — 27 tools for queries, schema, CRUD, DBA, HA & server management
Postgres
sparta2025/postgres-mcp
PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.
PostgreSQL
neverinfamous/postgresql-mcp
PostgreSQL MCP server with 203 tools, connection pooling, HTTP/SSE, OAuth 2.1, and tool filtering
Pombase
pipeworx-io/mcp-pombase
PomBase MCP — the fission yeast (Schizosaccharomyces pombe) model-organism database.
PostgreSQL CVE & Release Intelligence
meob/PG_CVE-MCP
PostgreSQL security for AI agents: CVEs, yanked releases, exploits, and upgrade paths
Polyglot Database
hyperpolymath/poly-db-mcp
Unified MCP for 20 databases: SurrealDB, ArangoDB, Virtuoso, CouchDB, Cassandra, and more