pgops
by github.com/arzharch · v0.1.9 · updated Sep 1, 2026
Safe, audited PostgreSQL operations for AI agents: queries, migrations, EXPLAIN, containers
Run it locally
Install the package and point your AI client at it.
PyPI
uvx pgops-mcp==0.1.9Environment variables
PGOPS_DSNrequiredsecretPostgreSQL connection string for the database to operate on.
PGOPS_READONLY_DSNsecretOptional separate DSN for the read-only pool. Use a role with no write grants to enforce read-only at the database rather than only in the server.
PGOPS_READ_ONLYSet to 1 to withhold every mutating tool. Write tools are not registered at all, so an agent cannot call them.
PGOPS_APPROVAL_MODESet to 1 to register container.restart and container.exec. Off by default: Docker socket access is root-equivalent on the host.
PGOPS_AUDIT_LOGPath to the append-only JSONL audit log.
PGOPS_DEFAULT_TIMEOUT_MSStatement timeout applied to every query unless a tool call overrides it.
PGOPS_MAX_TIMEOUT_MSCeiling a caller-supplied timeout is clamped to.
PGOPS_DEFAULT_ROW_LIMITRows returned by query.read when the caller does not specify a limit.
Docker
docker run -i --rm ghcr.io/arzharch/pgops-mcp:0.1.9Environment variables
PGOPS_DSNrequiredsecretPostgreSQL connection string. From inside a container, localhost is the container itself — use host.docker.internal or the compose service name.
PGOPS_READ_ONLYSet to 1 to withhold every mutating tool.
PGOPS_AUDIT_LOGPath to the audit log inside the container. Mount a volume at this path or the log dies with the container.
More MCP servers
designfit
github.com/as9978
Validate AI-built front-ends against Figma by tokens and geometry, not pixels.
Lectio API
github.com/asachs01
Lectionary readings (RCL, BCP Daily Office, Catholic) and liturgical calendar tools.
Teztun
github.com/asadullokhn
Manage TezTun tunnels, subdomains, and service tokens from any MCP-compatible AI client.
RapidTradeView
github.com/asafb2k
US stock and ETF research: Congress and insider trades, earnings, picks vs SPY. Sign-in required.
Renology Renovation Cost Data
github.com/asafichaki
Read-only 2026 city renovation cost ranges with sources, limitations, and citation guidance.
Scoreproof
github.com/asampat3090
Convert MusicXML, MIDI, ABC, MEI and Humdrum, print sheet music, and verify every note survived.