NestDaddy

pgbrake

io.github.lexang/pgbrake · v0.3.0

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

Connect Runs on your machine

Terminal
claude mcp add pgbrake -e PGBRAKE_DSN=<PGBRAKE_DSN> -- uvx pgbrake==0.3.0
claude_desktop_config.json
{
  "mcpServers": {
    "pgbrake": {
      "command": "uvx",
      "args": [
        "pgbrake==0.3.0"
      ],
      "env": {
        "PGBRAKE_DSN": "<PGBRAKE_DSN>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "pgbrake": {
      "command": "uvx",
      "args": [
        "pgbrake==0.3.0"
      ],
      "env": {
        "PGBRAKE_DSN": "<PGBRAKE_DSN>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "pgbrake": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "pgbrake==0.3.0"
      ],
      "env": {
        "PGBRAKE_DSN": "<PGBRAKE_DSN>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
PGBRAKE_DSN
Required, secret
Postgres connection string, e.g. postgresql://me@localhost/app

Details

Package[email protected] (PYPI, stdio)
First published6 Nov 2026
Last updated6 Nov 2026
Registry nameio.github.lexang/pgbrake

More databases servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.