Koskamo

pgops MCP

pgops-mcp provides safe, audited PostgreSQL operations for AI agents, offering 18 tools for inspecting schemas, running queries, diagnosing slow ones, and planning migrations. It includes safety features like lock-impact analysis, confirmation for dangerous actions, and audit logging to prevent data destruction.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

pgops MCP logo, by arzharchCommunity listingLocal stdioSource reviewed; not executedPublished by arzharch
Vendor documentation

What you can do with it

  • Inspect database schemas
  • Run and explain SQL queries
  • Plan migrations with lock analysis
  • Diagnose performance issues

Source and maintenance

Community listingRegistry 0.1.9
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

ghcr.io/arzharch/pgops-mcp:0.1.9

oci
ghcr.io/arzharch/pgops-mcp:0.1.9 package definition
{
  "transport": "stdio",
  "identifier": "ghcr.io/arzharch/pgops-mcp:0.1.9",
  "registryType": "oci",
  "environmentVariables": [
    {
      "name": "PGOPS_DSN",
      "isRequired": true,
      "description": "PostgreSQL connection string. From inside a container, localhost is the container itself — use host.docker.internal or the compose service name."
    },
    {
      "name": "PGOPS_READ_ONLY",
      "default": "0",
      "description": "Set to 1 to withhold every mutating tool."
    },
    {
      "name": "PGOPS_AUDIT_LOG",
      "default": "/var/lib/pgops/audit.jsonl",
      "description": "Path to the audit log inside the container. Mount a volume at this path or the log dies with the container."
    }
  ]
}

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": {
    "pgops-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PGOPS_DSN=<YOUR_PGOPS_DSN>",
        "-e",
        "PGOPS_READ_ONLY=<YOUR_PGOPS_READ_ONLY>",
        "-e",
        "PGOPS_AUDIT_LOG=<YOUR_PGOPS_AUDIT_LOG>",
        "ghcr.io/arzharch/pgops-mcp:0.1.9"
      ],
      "env": {
        "PGOPS_DSN": "<YOUR_PGOPS_DSN>",
        "PGOPS_READ_ONLY": "<YOUR_PGOPS_READ_ONLY>",
        "PGOPS_AUDIT_LOG": "<YOUR_PGOPS_AUDIT_LOG>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "pgops-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PGOPS_DSN=<YOUR_PGOPS_DSN>",
        "-e",
        "PGOPS_READ_ONLY=<YOUR_PGOPS_READ_ONLY>",
        "-e",
        "PGOPS_AUDIT_LOG=<YOUR_PGOPS_AUDIT_LOG>",
        "ghcr.io/arzharch/pgops-mcp:0.1.9"
      ],
      "env": {
        "PGOPS_DSN": "<YOUR_PGOPS_DSN>",
        "PGOPS_READ_ONLY": "<YOUR_PGOPS_READ_ONLY>",
        "PGOPS_AUDIT_LOG": "<YOUR_PGOPS_AUDIT_LOG>"
      }
    }
  }
}

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": {
    "pgops-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PGOPS_DSN=<YOUR_PGOPS_DSN>",
        "-e",
        "PGOPS_READ_ONLY=<YOUR_PGOPS_READ_ONLY>",
        "-e",
        "PGOPS_AUDIT_LOG=<YOUR_PGOPS_AUDIT_LOG>",
        "ghcr.io/arzharch/pgops-mcp:0.1.9"
      ],
      "env": {
        "PGOPS_DSN": "<YOUR_PGOPS_DSN>",
        "PGOPS_READ_ONLY": "<YOUR_PGOPS_READ_ONLY>",
        "PGOPS_AUDIT_LOG": "<YOUR_PGOPS_AUDIT_LOG>"
      }
    }
  }
}

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": {
    "pgops-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PGOPS_DSN=<YOUR_PGOPS_DSN>",
        "-e",
        "PGOPS_READ_ONLY=<YOUR_PGOPS_READ_ONLY>",
        "-e",
        "PGOPS_AUDIT_LOG=<YOUR_PGOPS_AUDIT_LOG>",
        "ghcr.io/arzharch/pgops-mcp:0.1.9"
      ],
      "env": {
        "PGOPS_DSN": "<YOUR_PGOPS_DSN>",
        "PGOPS_READ_ONLY": "<YOUR_PGOPS_READ_ONLY>",
        "PGOPS_AUDIT_LOG": "<YOUR_PGOPS_AUDIT_LOG>"
      }
    }
  }
}

Let your agent find its tools

Find servers like pgops MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.