Postgres brake for AI agents: risky SQL waits for approval, UPDATE/DELETE get one-command undo.
Connect Runs on your machine
claude mcp add pgbrake -e PGBRAKE_DSN=<PGBRAKE_DSN> -- uvx pgbrake==0.3.0
{
"mcpServers": {
"pgbrake": {
"command": "uvx",
"args": [
"pgbrake==0.3.0"
],
"env": {
"PGBRAKE_DSN": "<PGBRAKE_DSN>"
}
}
}
}
{
"mcpServers": {
"pgbrake": {
"command": "uvx",
"args": [
"pgbrake==0.3.0"
],
"env": {
"PGBRAKE_DSN": "<PGBRAKE_DSN>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
PGBRAKE_DSNRequired, secret | Postgres connection string, e.g. postgresql://me@localhost/app |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 6 Nov 2026 |
| Last updated | 6 Nov 2026 |
| Registry name | io.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.
