Postgres DBA MCP
A Model Context Protocol server providing bounded, read-only PostgreSQL access for AI assistants. It offers nine DBA tools including schema inspection, SQL execution, query plan analysis with hypothetical indexes, slow query identification, and health checks. The server outputs compact CSV results with explicit size caps to prevent context flooding and includes a restricted mode that parses statements to prevent bypassing read-only constraints.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Explore PostgreSQL database schema and structure
- Execute SQL queries with bounded result sizes
- Analyze query plans and test hypothetical indexes
- Identify slowest queries and check database health
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
ghcr.io/a-lafon/postgres-dba-mcp:0.3.3
{
"transport": "stdio",
"identifier": "ghcr.io/a-lafon/postgres-dba-mcp:0.3.3",
"registryType": "oci",
"environmentVariables": [
{
"name": "DATABASE_URI",
"format": "string",
"isRequired": true,
"description": "PostgreSQL connection URI of the database to serve"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"postgres-dba-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI=<YOUR_DATABASE_URI>",
"ghcr.io/a-lafon/postgres-dba-mcp:0.3.3"
],
"env": {
"DATABASE_URI": "<YOUR_DATABASE_URI>"
}
}
}
}Cline
{
"mcpServers": {
"postgres-dba-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI=<YOUR_DATABASE_URI>",
"ghcr.io/a-lafon/postgres-dba-mcp:0.3.3"
],
"env": {
"DATABASE_URI": "<YOUR_DATABASE_URI>"
}
}
}
}VS Code
{
"servers": {
"postgres-dba-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI=<YOUR_DATABASE_URI>",
"ghcr.io/a-lafon/postgres-dba-mcp:0.3.3"
],
"env": {
"DATABASE_URI": "<YOUR_DATABASE_URI>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"postgres-dba-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI=<YOUR_DATABASE_URI>",
"ghcr.io/a-lafon/postgres-dba-mcp:0.3.3"
],
"env": {
"DATABASE_URI": "<YOUR_DATABASE_URI>"
}
}
}
}Let your agent find its tools
Find servers like Postgres DBA MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.