PostgreSQL (hardened, read-only) MCP Server

🚧 Version 0.1.10 — the rest of an outside review, and a fix that was too blunt Published: binaries for five platforms with checksums, Sigstore signatures and build provenance; .mcpb bundles for…

Local serverstdiostreamable-http

What is the PostgreSQL (hardened, read-only) MCP Server?

postgres-mcp-hardened is an MCP project maintained in the eszetael/postgres-mcp-hardened repository. The maintainer describes its purpose as “🚧 Version 0.1.10 — the rest of an outside review, and a fix that was too blunt Published: binaries for five platforms with checksums, Sigstore…”. Read the project documentation for the complete scope.

Installation

The documented npm package is postgres-mcp-hardened. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares DATABASE_URL. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the PostgreSQL (hardened, read-only) MCP Server

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "postgres-mcp-hardened",
        "--stdio"
      ],
      "env": {
        "DATABASE_URL": "postgres://readonly_user:PASSWORD@localhost:5432/mydb"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
DATABASE_URLDeclared in the maintainer’s client configuration.Check documentation