Postgres DBA MCP
A bounded, read-only Model Context Protocol server for PostgreSQL that allows AI agents to run SQL queries, analyze query plans with hypothetical indexes, identify top queries, perform health checks, and inspect locks. It outputs compact CSV results with explicit row and byte limits to prevent context flooding, using a static Go binary.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Run read-only SQL queries on a PostgreSQL database
- Analyze query execution plans with hypothetical indexes
- Identify top or slowest queries for optimization
- Check database health and inspect current locks
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.4.3
{
"transport": "stdio",
"identifier": "ghcr.io/a-lafon/postgres-dba-mcp:0.4.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-0-4-3": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI=<YOUR_DATABASE_URI>",
"ghcr.io/a-lafon/postgres-dba-mcp:0.4.3"
],
"env": {
"DATABASE_URI": "<YOUR_DATABASE_URI>"
}
}
}
}Cline
{
"mcpServers": {
"postgres-dba-mcp-0-4-3": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI=<YOUR_DATABASE_URI>",
"ghcr.io/a-lafon/postgres-dba-mcp:0.4.3"
],
"env": {
"DATABASE_URI": "<YOUR_DATABASE_URI>"
}
}
}
}VS Code
{
"servers": {
"postgres-dba-mcp-0-4-3": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI=<YOUR_DATABASE_URI>",
"ghcr.io/a-lafon/postgres-dba-mcp:0.4.3"
],
"env": {
"DATABASE_URI": "<YOUR_DATABASE_URI>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"postgres-dba-mcp-0-4-3": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI=<YOUR_DATABASE_URI>",
"ghcr.io/a-lafon/postgres-dba-mcp:0.4.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.