Skip to content
Cline

PostgreSQL (hardened, read-only) for Cline

io.github.eszetael/postgres-mcp-hardened

Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.

client:Cline transport:stdio runtime:npm

Install PostgreSQL (hardened, read-only) in Cline

~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json · windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "postgres-mcp-hardened": {
      "command": "npx",
      "args": [
        "-y",
        "postgres-mcp-hardened"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "MCP_STATEMENT_TIMEOUT": "<MCP_STATEMENT_TIMEOUT>",
        "MCP_ALLOW_TABLES": "<MCP_ALLOW_TABLES>",
        "MCP_AUDIT_LOG": "<MCP_AUDIT_LOG>"
      }
    }
  }
}

Cline's MCP Servers pane edits this file for you if you would rather not find it. Cline docs

PostgreSQL (hardened, read-only) in other clients