Skip to content
pgwarden
Install guide · Claude Desktop

Install pgwarden for Claude Desktop

Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.

  1. Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "b0yko-pgwarden": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/b0yko/pgwarden:0.1.1"      ],      "env": {        "PGWARDEN_CONFIG": "/etc/pgwarden/pgwarden.yaml",        "PGWARDEN_TARGET_DSN": "",        "PGWARDEN_STATE_DSN": "YOUR_PGWARDEN_STATE_DSN",        "PGWARDEN_ROLE_SECRET_FILE": "/etc/pgwarden/secrets/role_secret",        "PGWARDEN_SIGNING_KEY_FILE": "/etc/pgwarden/secrets/signing_key.pem",        "PGWARDEN_SESSION_SECRET_FILE": "/etc/pgwarden/secrets/session_secret",        "PGWARDEN_OIDC_CLIENT_SECRET_FILE": "/etc/pgwarden/secrets/oidc_client_secret"      }    }  }}

Where the config lives

SystemPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json