postgres-mcp-hardened

Level CLocal

Secure read-only PostgreSQL MCP server in Rust — a maintained alternative to the deprecated @modelcontextprotocol/server-postgres. Blocks writes at the AST, not with regexes.

⭐ 0DatabaseJavaScriptRepo ↗Updated 2026-09-04

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "npm-postgres-mcp-hardened": {
      "command": "npx",
      "args": [
        "postgres-mcp-hardened"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://www.npmjs.com/package/postgres-mcp-hardened

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "npm-postgres-mcp-hardened": {
      "command": "npx",
      "args": [
        "postgres-mcp-hardened"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers