LocalFree

pgbrake MCP server

lexang/pgbrake

Postgres brake for AI agents: risky SQL waits for approval, UPDATE/DELETE get one-command undo.

0 GitHub stars

Install pgbrake in Claude Code

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

Replace each ... with your own value.

Frequently asked questions

What does the pgbrake MCP server do?

Postgres brake for AI agents: risky SQL waits for approval, UPDATE/DELETE get one-command undo.

Is the pgbrake 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 pgbrake run locally or remotely?

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

How do I add pgbrake to Claude Code?

Run: claude mcp add pgbrake -e PGBRAKE_DSN=... -- uvx pgbrake

More databases MCP servers

View all