MCP directory
P

pgwarden

by github.com/B0yko · v0.1.1 · updated Nov 21, 2026

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

Docker

Run it locally

Install the package and point your AI client at it.

Docker

docker run -i --rm ghcr.io/b0yko/pgwarden:0.1.1

Environment variables

  • PGWARDEN_CONFIGrequired

    Path to pgwarden.yaml inside the container.

  • PGWARDEN_TARGET_DSNrequired

    Target Postgres 16+ DSN: host, port and database, no user or password.

  • PGWARDEN_STATE_DSNrequiredsecret

    State database DSN, connecting as the pgwarden_app role that `pgwarden db init` creates.

  • PGWARDEN_ROLE_SECRET_FILErequired

    File with the secret that derives each login role's SCRAM password.

  • PGWARDEN_SIGNING_KEY_FILErequired

    File with the Ed25519 key that signs access tokens.

  • PGWARDEN_SESSION_SECRET_FILErequired

    File with the browser session secret.

  • PGWARDEN_OIDC_CLIENT_SECRET_FILErequired

    File with the client secret your identity provider issued for pgwarden.

More MCP servers