Bounded, read-only PostgreSQL access for AI assistants: nine DBA tools, compact CSV output
Connect Runs on your machine
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
{
"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>"
}
}
}
}
{
"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>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
DATABASE_URIRequired, secret | PostgreSQL connection URI of the database to serve |
Details
| Package | ghcr.io/a-lafon/postgres-dba-mcp:0.3.3 (OCI, stdio) |
| First published | 30 Oct 2026 |
| Last updated | 30 Oct 2026 |
| Registry name | io.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.
