LocalFree

pgops MCP server

arzharch/pgops-mcp

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

0 GitHub stars

Install pgops in Claude Code

PyPI (uv)

Claude Code
claude mcp add pgops -e PGOPS_DSN=... -- uvx pgops-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "pgops": {
      "command": "uvx",
      "args": [
        "pgops-mcp"
      ],
      "env": {
        "PGOPS_DSN": "..."
      }
    }
  }
}

Docker

Claude Code
claude mcp add pgops -e PGOPS_DSN=... -- docker run -i --rm -e PGOPS_DSN ghcr.io/arzharch/pgops-mcp:0.1.9
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "pgops": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PGOPS_DSN",
        "ghcr.io/arzharch/pgops-mcp:0.1.9"
      ],
      "env": {
        "PGOPS_DSN": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the pgops MCP server do?

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

Is the pgops MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does pgops run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add pgops to Claude Code?

Run: claude mcp add pgops -e PGOPS_DSN=... -- uvx pgops-mcp

More databases MCP servers

View all