Postgres DBA MCP
Bounded, read-only PostgreSQL access for AI assistants: nine DBA tools, compact CSV output
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
ghcr.io/a-lafon/postgres-dba-mcp:0.3.2claude mcp add postgres-dba-mcp -e 'DATABASE_URI=<your database_uri>' -- docker run -i --rm ghcr.io/a-lafon/postgres-dba-mcp:0.3.2
{
"mcpServers": {
"postgres-dba-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/a-lafon/postgres-dba-mcp:0.3.2"
],
"env": {
"DATABASE_URI": "<your database_uri>"
}
}
}
}
Environment variables
DATABASE_URIrequired secret PostgreSQL connection URI of the database to serve
Frequently asked questions
What is Postgres DBA MCP?
Bounded, read-only PostgreSQL access for AI assistants: nine DBA tools, compact CSV output
How do I install Postgres DBA MCP?
It runs on your machine. In Claude Code: claude mcp add postgres-dba-mcp -e 'DATABASE_URI=<your database_uri>' -- docker run -i --rm ghcr.io/a-lafon/postgres-dba-mcp:0.3.2. For other clients, paste the JSON configuration from this page into their MCP settings.
Does Postgres DBA MCP need an API key?
Yes. It expects DATABASE_URI, which you set in its configuration.
Is Postgres DBA MCP open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains Postgres DBA MCP?
It is published by a-lafon. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.