Koskamo

postgres-mcp-safe MCP

A drop-in replacement for the deprecated @modelcontextprotocol/server-postgres that enforces read-only access by starting a READ ONLY transaction for every call. It allows AI tools to query a Postgres database, read its schema, and explain queries safely, preventing destructive operations like DROP TABLE even if the user is a superuser.

Package and access

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

postgres-mcp-safe MCP logo, by Poudel0Community listingLocal stdioSource reviewed; not executedPublished by Poudel0
Vendor documentation

What you can do with it

  • Query a Postgres database with read-only statements
  • List tables and views with schema and type information
  • Describe table columns, constraints, and indexes
  • Explain query plans for SQL statements

Source and maintenance

Community listingRegistry 0.1.3
Maintenance checked

Packages and installation

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

ghcr.io/poudel0/postgres-mcp-safe:0.1.3

oci
ghcr.io/poudel0/postgres-mcp-safe:0.1.3 package definition
{
  "transport": "stdio",
  "identifier": "ghcr.io/poudel0/postgres-mcp-safe:0.1.3",
  "registryType": "oci",
  "packageArguments": [
    {
      "type": "positional",
      "valueHint": "postgresql_url",
      "isRequired": true,
      "description": "Postgres connection URL. Use a read-only role."
    }
  ]
}

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-mcp-safe-mcp-0-1-3": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/poudel0/postgres-mcp-safe:0.1.3"
      ]
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "postgres-mcp-safe-mcp-0-1-3": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/poudel0/postgres-mcp-safe:0.1.3"
      ]
    }
  }
}

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-mcp-safe-mcp-0-1-3": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/poudel0/postgres-mcp-safe:0.1.3"
      ]
    }
  }
}

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-mcp-safe-mcp-0-1-3": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/poudel0/postgres-mcp-safe:0.1.3"
      ]
    }
  }
}

Let your agent find its tools

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