Home / Market / pgops

pgops

Safe, audited PostgreSQL operations for AI agents: queries, migrations, EXPLAIN, containers

mcp★ 033 dlmcp-registryMIT configuration; upstream service license appliesInstall in CosmosUpstream Source

Documentation & Preview

{ "mcpServers": { "mcp-pgops-mcp-69b1cfbaa8fdcc4081e6": { "command": "uvx", "args": [ "--from", "pgops-mcp==0.1.9", "pgops-mcp" ], "env": { "PGOPS_DSN": "${ENV_PGOPS_DSN}", "PGOPS_READONLY_DSN": "${ENV_PGOPS_READONLY_DSN}", "PGOPS_READ_ONLY": "${ENV_PGOPS_READ_ONLY}", "PGOPS_APPROVAL_MODE": "${ENV_PGOPS_APPROVAL_MODE}", "PGOPS_AUDIT_LOG": "${ENV_PGOPS_AUDIT_LOG}", "PGOPS_DEFAULT_TIMEOUT_MS": "${ENV_PGOPS_DEFAULT_TIMEOUT_MS}", "PGOPS_MAX_TIMEOUT_MS": "${ENV_PGOPS_MAX_TIMEOUT_MS}", "PGOPS_DEFAULT_ROW_LIMIT": "${ENV_PGOPS_DEFAULT_ROW_LIMIT}" } } }, "setup": { "fields": [ { "id": "ENV_PGOPS_DSN", "label": "PGOPS_DSN", "description": "PostgreSQL connection string for the database to operate on.", "required": true, "secret": true, "default": "" }, { "id": "ENV_PGOPS_READONLY_DSN", "label": "PGOPS_READONLY_DSN", "description": "Optional 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.", "required": false, "secret": true, "default": "" }, { "id": "ENV_PGOPS_READ_ONLY", "label": "PGOPS_READ_ONLY", "description": "Set to 1 to withhold every mutating tool. Write tools are not registered at all, so an agent cannot call them.", "required": false, "secret": false, "default": "0" }, { "id": "ENV_PGOPS_APPROVAL_MODE", "label": "PGOPS_APPROVAL_MODE", "description": "Set to 1 to register container.restart and container.exec. Off by default: Docker socket access is root-equivalent on the host.", "required": false, "secret": false, "default": "0" }, { "id": "ENV_PGOPS_AUDIT_LOG", "label": "PGOPS_AUDIT_LOG", "description": "Path to the append-only JSONL audit log.", "required": false, "secret": false, "default": "~/.pgops/audit.jsonl" }, { "id": "ENV_PGOPS_DEFAULT_TIMEOUT_MS", "label": "PGOPS_DEFAULT_TIMEOUT_MS", "description": "Statement timeout applied to every query unless a tool call overrides it.", "required": false, "secret": false, "default": "5000" }, { "id": "ENV_PGOPS_MAX_TIMEOUT_MS", "label": "PGOPS_MAX_TIMEOUT_MS", "description": "Ceiling a caller-supplied timeout is clamped to.", "required": false, "secret": false, "default": "30000" }, { "id": "ENV_PGOPS_DEFAULT_ROW_LIMIT", "label": "PGOPS_DEFAULT_ROW_LIMIT", "description": "Rows returned by query.read when the caller does not specify a limit.", "required": false, "secret": false, "default": "100" } ], "requirements": [ "安装 Python 与 uv / uvx" ] }, "provenance": { "registryServer": "io.github.arzharch/pgops-mcp", "registryVersion": "0.1.9", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.arzharch%2Fpgops-mcp/versions/0.1.9", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "pypi", "identifier": "pgops-mcp", "version": "0.1.9", "wheelSha256": "76e42343cae7dc9b2c74853c7c00ec3b9668887ebf473fd395a64c3a5ef6f6ec", "registryNameMatched": "io.github.arzharch/pgops-mcp", "checkedAt": "2026-11-04T17:11:33.148Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }