MySQL change tracking with instant row-level recovery and forensic attribution for compliance.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
See every row change in MySQL and PostgreSQL, and undo the ones you didn't want. No restore, no locks, no schema changes.
That query runs against production MySQL or Postgres. dbtrail makes it work.
Point-in-time recovery restores the whole database and replays every log to reach one change. dbtrail keeps the changes themselves β it tails the MySQL binary log or the Postgres WAL and stores every row change, with full before and after images, in a searchable index:
ON DELETE CASCADE wiped out. Restore the foreign keys an ON DELETE SET NULL cleared, or an ON UPDATE CASCADE/SET NULL re-pointed when a parent's key changed. InnoDB applies all of these below the binlog, where most tools cannot see them. See Query & Recovery.reconstruct CLI. The live SQL AS OF interface also needs ProxySQL. See Time-Travel SQL.bintrail verify checks offline, without touching the source, that a recovery would reproduce it. bintrail status flags any gap in the captured stream. You find out before you need it. See Verify..mcpb bundle or a copy-paste URL (5-minute guide). Any MCP client works; see the MCP server reference.Works with MySQL, Percona Server for MySQL, Amazon RDS for MySQL,
and Amazon Aurora MySQL (verified). Google Cloud SQL for MySQL should
work too; please report issues. dbtrail connects over the replication protocol
and never needs the binlog files on disk, which is why managed cloud databases
work. It requires MySQL 8.0+ with binlog_format=ROW and
binlog_row_image=FULL; bintrail doctor checks both and prints the exact fix.
One container, zero setup, time-travel SQL:
See the demo image.
This downloads the Compose stack, brings it up, waits for the console, and prints what to do next. Then:
The same one-line install captures PostgreSQL and MariaDB sources too,
not just MySQL. In + Add server, choose the source type; PostgreSQL reveals
fields for the database, replication slot, and publication. PostgreSQL needs a
one-time setup on the source first (wal_level = logical,
REPLICA IDENTITY FULL, and a publication). dbtrail validates these and never
runs DDL on your source. The full walkthrough, including managed RDS, Aurora,
and Cloud SQL: PostgreSQL source Β·
MariaDB source (alpha).
bintrail runs entirely in your infrastructure. Your database data never leaves it: not your rows, schemas, table names, queries, hostnames, DSNs, or file paths.
Official release builds do report metadata-only usage statistics: which command ran, whether it succeeded, a coarse error class, and your version and platform. It is on by default and turns off in one line:
No identifier of any kind is stored or transmitted, so nothing ties those statistics to you or your machine. A binary you build yourself has no reporting address compiled in and cannot send anything. TELEMETRY.md documents every field, every control, and the CI tests that enforce both.
The privacy policy covers the Claude Desktop extension (.mcpb),
which reports nothing at all, and how data moves when an AI client queries
your deployment.
Apache-2.0: free for any use, including commercial and production. Contributions are welcome; see CONTRIBUTING.md (a CLA is required, prompted automatically on your first PR).
Want the index server operated for you (sized, backed up, upgraded, kept alive on-call) instead of running it yourself? That is the managed service at dbtrail.com. SUPPORT.md draws the ship-vs-operate line.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/dbtrail)<a href="https://allmcps.com/mcp/dbtrail"><img src="https://allmcps.com/api/badge/dbtrail?style=directory" alt="Dbtrail on AllMCPs" /></a>