Koskamo

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.

Postgres DBA MCP logo, by a-lafonCommunity listingLocal stdioSource reviewed; not executedPublished by a-lafon
Vendor documentation

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

Community listingRegistry 0.3.3
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

oci
ghcr.io/a-lafon/postgres-dba-mcp:0.3.3 package definition
{
  "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.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "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.