← Index

pgwarden

io.github.B0yko/pgwardenv0.1.1Databases

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

The current version, v0.1.1, was published to the official MCP registry on 2026-11-21. It is distributed as the Docker image ghcr.io/b0yko/pgwarden:0.1.1, filed under Databases by this index, and declares 7 environment variables. Removals and unreachable sources are measured across every server this index tracks, contract drift across the servers that answer in consecutive snapshots; the index's current counts put this record in context.

In-path gate · all MCP tools

Using pgwarden in Claude, Cursor, Gemini CLI, Cline, or Zed?

MCP tool contracts can change remotely with no version bump. The mcpindex gate pins each contract and HOLDs the call when it drifts-before your agent acts. Zero credentials. This is not the package install for this server itself (use Install this server for that).

Install the mcpindex gate (one command)

Rewrites your MCP host config so each server launches behind the gate. Inspect first: curl -fsSL https://mcpindex.ai/install.sh | less

uv tool install mcpindex-gate && mcpindex-config-wire
Trust verdict · v1 advisory · method
NOT YET SCREENEDno verdict on file

Verdict not yet evaluated for this tool. The semantic screen takes adversarial cases first; coverage rolls out as the corpus expands. The deterministic conformance probe is built but has not yet run on the public corpus, so a recorded verdict here is REVIEW or UNVERIFIED, never a clearing ALLOW. Until a verdict is recorded, an agent should treat this tool as not-yet-cleared and fall back to its own checks. Method: the eval, four-state verdict, honest limits.

Own this server? Test a description on the public screen → It is a separate check from the verdict above, so the two can differ.

That verdict was true at screening time (snapshot 2026-11-26).

Contracts can change after screening, with no version bump. The gate pins pgwarden’s tool contracts on first sight and holds any silent change before your agent acts - the check that keeps being true on Tuesday.

See your first HOLD in 2 minutes →

Related: how to trust an MCP server · screen before install · silent contract drift

Environment variables
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
requiredsecret

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.

MCP quality score · maturity, not trust · methodology
freshness
25
completeness
15
installability
25
documentation
15
stability
5
Alternatives in Databases