Home › Databases & Data › pgwarden

pgwarden

Give AI assistants access to Postgres with per-user permissions and human approval for writes.

Python
★ 22 stars Last pushed 2026-11-21 License: Apache-2.0

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (oci)

Package: oci ghcr.io/b0yko/pgwarden:0.1.1

  • PGWARDEN_CONFIG required — Path to pgwarden.yaml inside the container.
  • PGWARDEN_TARGET_DSN required — Target Postgres 16+ DSN: host, port and database, no user or password.
  • PGWARDEN_STATE_DSN required secret — State database DSN, connecting as the pgwarden_app role that `pgwarden db init` creates.
  • PGWARDEN_ROLE_SECRET_FILE required — File with the secret that derives each login role's SCRAM password.
  • PGWARDEN_SIGNING_KEY_FILE required — File with the Ed25519 key that signs access tokens.
  • PGWARDEN_SESSION_SECRET_FILE required — File with the browser session secret.
  • PGWARDEN_OIDC_CLIENT_SECRET_FILE required — File with the client secret your identity provider issued for pgwarden.

This server takes extra arguments — see its repository.

Related servers

Data from the Official MCP Registry