pgbrake
io.github.lexang/pgbrake
About pgbrake
pgbrake is an MCP server published by the GitHub account lexang. Postgres brake for AI agents: risky SQL waits for approval, UPDATE/DELETE get one-command undo.
It runs on your own machine: your AI client starts it from the PyPI package pgbrake at version 0.1.1.
It asks for one secret: PGBRAKE_DSN. Give it a key with the least access that still works.
Version 0.1.1 was published on 28 October 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 9 automated checks on the registry entry and the package code: 7 pass, 0 warn, 0 fail, 2 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
PGBRAKE_DSN | Yes | Yes | Postgres connection string, e.g. postgresql://me@localhost/app |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/lexang/pgbrake |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Info | Asks for 1 secret: PGBRAKE_DSN |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account lexang |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | pgbrake 0.1.1 has no setup.py; nothing runs at install |
| Code red flags | Pass | Read 11 files in pgbrake 0.1.1: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 11 files, including comments and the README |
Popularity & health: 59 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
0 forks, 0 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.lexang/pgbrake |
|---|---|
| Publisher | GitHub account lexang |
| How the name is verified | Name verified via GitHub account lexang. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | pypi pgbrake 0.1.1 (stdio) |
| Version | 0.1.1 |
| Published | |
| Last updated | |
| Source repository | https://github.com/lexang/pgbrake |
| Website | None linked |
| Category | Databases & data (assigned by keyword rule, not by hand) |
Related servers in Databases & data
- nlqdb — analytical memory for AI agents3/3Analytical memory for AI agents: a real Postgres queried in plain…
- sqlike-mcp7/7Lints SQL and checks rewrites return the same rows. Postgres,…
- pgmoat7/7Governed, read-only Postgres access for AI agents: SQL safety, RLS,…
WoWSQL3/3Managed Postgres MCP: projects, SQL, docs search, and storage…- SQL7/7Read-only SQL querying + schema introspection over Postgres &…
- amnesic7/7Persistent semantic memory for SQL databases. Postgres, MySQL,…