pgops
Safe, audited PostgreSQL operations for AI agents: queries, migrations, EXPLAIN, containers
The current version, v0.1.9, was published to the official MCP registry on 2026-09-01. It is distributed as pgops-mcp on PyPI and as the Docker image ghcr.io/arzharch/pgops-mcp:0.1.9, filed under Databases by this index, and declares 8 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.
Using pgops 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).
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-wireSemantic screen found no manipulation pattern in the description. Conformance probe not yet run.
mcpindex.integrity.descriptionpassINFOevidence“Tool performs PostgreSQL operations for AI agents.”via static_description
- - Semantic screen only - the deterministic conformance probe has not run on this server
- - Confidence is reported but not yet calibrated (v1)
- - Screen reads the tool description, not the live behavior
- - advisory
- - registry description only no input schema
- - screen model 8b
- - Still current: the description we screened is unchanged, re-checked against the registry
- - Past its freshness window - we could not re-confirm this listing
Semantic screen: an LLM judge reads the tool description for hidden instructions (status PARTIAL). A pass means the description is not lying, not that the tool is safe: a high-capability tool with an honest description still warrants caution. The deterministic conformance probe has not been run on this server yet, so the screen here is semantic-only. Posture: advisory. Confidences are reported but not yet calibrated (calibrated=false at v1). Full verdict history is not shown on this page.
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 pgops’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
People vet a server before wiring it in. One line on your project site or docs answers that with an independent record: screening verdict, registry provenance, contract drift history. It stays current as new screens and drift events land.
[Independent trust record for pgops](https://mcpindex.ai/server/io-github-arzharch-pgops-mcp) - screening verdict, registry provenance, and contract drift monitoring.<a href="https://mcpindex.ai/server/io-github-arzharch-pgops-mcp">Independent trust record for pgops</a> - screening verdict, registry provenance, and contract drift monitoring.A live verdict badge for your README or listing. It reflects the current screen, links back here, and updates when the verdict does.
[](https://mcpindex.ai/server/io-github-arzharch-pgops-mcp)<a href="https://mcpindex.ai/server/io-github-arzharch-pgops-mcp"><img src="https://mcpindex.ai/api/v1/badge/io-github-arzharch-pgops-mcp" alt="mcpindex verdict" height="20" /></a>PGOPS_DSNPostgreSQL connection string for the database to operate on.
PGOPS_READONLY_DSNOptional 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.
PGOPS_DSNPostgreSQL 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.
Browse, query, and administer your managed WaveHouse + ClickHouse projects (schema, pipes, policy).
Paste an error from a Supabase, Lovable or Bolt app and get the matching step-by-step fix guide.
Persistent memory for AI coding agents: one Rust binary, one local SQLite database.