pgops MCP
pgops-mcp provides safe, audited PostgreSQL operations for AI agents, offering 18 tools for inspecting schemas, running queries, diagnosing slow ones, and planning migrations. It includes safety features like lock-impact analysis, confirmation for dangerous actions, and audit logging to prevent data destruction.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Inspect database schemas
- Run and explain SQL queries
- Plan migrations with lock analysis
- Diagnose performance issues
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
ghcr.io/arzharch/pgops-mcp:0.1.9
{
"transport": "stdio",
"identifier": "ghcr.io/arzharch/pgops-mcp:0.1.9",
"registryType": "oci",
"environmentVariables": [
{
"name": "PGOPS_DSN",
"isRequired": true,
"description": "PostgreSQL connection string. From inside a container, localhost is the container itself — use host.docker.internal or the compose service name."
},
{
"name": "PGOPS_READ_ONLY",
"default": "0",
"description": "Set to 1 to withhold every mutating tool."
},
{
"name": "PGOPS_AUDIT_LOG",
"default": "/var/lib/pgops/audit.jsonl",
"description": "Path to the audit log inside the container. Mount a volume at this path or the log dies with the container."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"pgops-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PGOPS_DSN=<YOUR_PGOPS_DSN>",
"-e",
"PGOPS_READ_ONLY=<YOUR_PGOPS_READ_ONLY>",
"-e",
"PGOPS_AUDIT_LOG=<YOUR_PGOPS_AUDIT_LOG>",
"ghcr.io/arzharch/pgops-mcp:0.1.9"
],
"env": {
"PGOPS_DSN": "<YOUR_PGOPS_DSN>",
"PGOPS_READ_ONLY": "<YOUR_PGOPS_READ_ONLY>",
"PGOPS_AUDIT_LOG": "<YOUR_PGOPS_AUDIT_LOG>"
}
}
}
}Cline
{
"mcpServers": {
"pgops-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PGOPS_DSN=<YOUR_PGOPS_DSN>",
"-e",
"PGOPS_READ_ONLY=<YOUR_PGOPS_READ_ONLY>",
"-e",
"PGOPS_AUDIT_LOG=<YOUR_PGOPS_AUDIT_LOG>",
"ghcr.io/arzharch/pgops-mcp:0.1.9"
],
"env": {
"PGOPS_DSN": "<YOUR_PGOPS_DSN>",
"PGOPS_READ_ONLY": "<YOUR_PGOPS_READ_ONLY>",
"PGOPS_AUDIT_LOG": "<YOUR_PGOPS_AUDIT_LOG>"
}
}
}
}VS Code
{
"servers": {
"pgops-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PGOPS_DSN=<YOUR_PGOPS_DSN>",
"-e",
"PGOPS_READ_ONLY=<YOUR_PGOPS_READ_ONLY>",
"-e",
"PGOPS_AUDIT_LOG=<YOUR_PGOPS_AUDIT_LOG>",
"ghcr.io/arzharch/pgops-mcp:0.1.9"
],
"env": {
"PGOPS_DSN": "<YOUR_PGOPS_DSN>",
"PGOPS_READ_ONLY": "<YOUR_PGOPS_READ_ONLY>",
"PGOPS_AUDIT_LOG": "<YOUR_PGOPS_AUDIT_LOG>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"pgops-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PGOPS_DSN=<YOUR_PGOPS_DSN>",
"-e",
"PGOPS_READ_ONLY=<YOUR_PGOPS_READ_ONLY>",
"-e",
"PGOPS_AUDIT_LOG=<YOUR_PGOPS_AUDIT_LOG>",
"ghcr.io/arzharch/pgops-mcp:0.1.9"
],
"env": {
"PGOPS_DSN": "<YOUR_PGOPS_DSN>",
"PGOPS_READ_ONLY": "<YOUR_PGOPS_READ_ONLY>",
"PGOPS_AUDIT_LOG": "<YOUR_PGOPS_AUDIT_LOG>"
}
}
}
}Let your agent find its tools
Find servers like pgops MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.