pgbrake MCP
A local MCP server for Postgres that acts as a safety brake for AI agents. It intercepts risky SQL writes like DELETE or UPDATE without WHERE clauses, requiring human approval before execution. It also provides one-command undo functionality for affected rows and maintains an audit log of all statements.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Require human approval for risky SQL writes like DELETE or UPDATE without WHERE clauses
- Undo database changes with a single command using change IDs
- Audit all SQL statements and decisions made by AI agents
Source and maintenance
- Last repository push
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
pgbrake 0.1.1
{
"version": "0.1.1",
"transport": "stdio",
"identifier": "pgbrake",
"registryType": "pypi",
"packageArguments": [
{
"type": "positional",
"value": "serve"
}
],
"environmentVariables": [
{
"name": "PGBRAKE_DSN",
"format": "string",
"isRequired": true,
"description": "Postgres connection string, e.g. postgresql://me@localhost/app"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"pgbrake-mcp": {
"command": "uvx",
"args": [
"pgbrake==0.1.1",
"serve"
],
"env": {
"PGBRAKE_DSN": "<YOUR_PGBRAKE_DSN>"
}
}
}
}Cline
{
"mcpServers": {
"pgbrake-mcp": {
"command": "uvx",
"args": [
"pgbrake==0.1.1",
"serve"
],
"env": {
"PGBRAKE_DSN": "<YOUR_PGBRAKE_DSN>"
}
}
}
}VS Code
{
"servers": {
"pgbrake-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"pgbrake==0.1.1",
"serve"
],
"env": {
"PGBRAKE_DSN": "<YOUR_PGBRAKE_DSN>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"pgbrake-mcp": {
"command": "uvx",
"args": [
"pgbrake==0.1.1",
"serve"
],
"env": {
"PGBRAKE_DSN": "<YOUR_PGBRAKE_DSN>"
}
}
}
}Let your agent find its tools
Find servers like pgbrake MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.