
Dbtrail
- 43 repo stars
- Updated July 27, 2026
- dbtrail/bintrail
DBTrail MCP is a MCP server that surfaces MySQL change tracking, row-level recovery, and forensic attribution via a hosted HTTP MCP endpoint.
About
DBTrail MCP exposes a hosted Model Context Protocol interface to MySQL change tracking with row-level recovery and forensic attribution aimed at teams that must explain data changes for compliance or incident response. developers running serious SaaS on MySQL can register the streamable HTTP remote so Claude Code, Cursor, or Codex can help investigate bad updates, plan rollbacks, and document who touched sensitive rows—without exporting brittle binlogs into spreadsheets. The primary journey placement is Operate and monitoring, with natural overlap into Ship security when you harden audit trails before launch. Skillselion categorizes it under Databases with data and security-adjacent semantics; it is an audit/recovery MCP, not a generic ORM or migration generator.
- MySQL change tracking with instant row-level recovery
- Forensic attribution framed for compliance use cases
- Hosted streamable-http MCP at api.dbtrail.com/mcp
- Related open-source bintrail project on github.com/dbtrail/bintrail (schema version 0.1.0)
Dbtrail by the numbers
- Data as of Jul 28, 2026 (Skillselion catalog sync)
claude mcp add --transport http dbtrail https://api.dbtrail.com/mcpAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| repo stars | ★ 43 |
|---|---|
| Transport | HTTP |
| Auth | None |
| Last updated | July 27, 2026 |
| Repository | dbtrail/bintrail ↗ |
What it does
Give your agent visibility into MySQL row-level change history, recovery, and attribution when you run production data under compliance pressure.
Who is it for?
Best when you're operating MySQL-backed products and need audit-friendly change visibility and quick row recovery during incidents or reviews.
Skip if: Greenfield projects on Postgres-only stacks or teams that do not need change forensics or compliance-oriented DB trails.
What you get
After connecting api.dbtrail.com/mcp, your agent can help you trace changes, reason about recovery, and document attribution faster than manual log archaeology.
- Agent-assisted visibility into MySQL change history and attribution
- Faster row-level recovery workflows during incidents
- Compliance-oriented forensic context without building a custom audit MCP
By the numbers
- Engine focus: MySQL (per catalog description)
- 1 hosted streamable-http MCP endpoint (api.dbtrail.com/mcp)
- Server schema version 0.1.0
README.md

Point-in-time recovery for MySQL — no locks, no schema changes, no waiting for a restore.
SELECT * FROM orders WHERE id = 123 AS OF '2026-05-20 14:00:00'
— against production MySQL. That's the experience dbtrail makes possible.

What you get
dbtrail tails the MySQL binary log and keeps every row change with full before/after images in a searchable index:
- See every change — what changed and when, for every row, with before → after diffs
- Undo precisely — generate exact reversal SQL for just the damaged rows
- Undo cascade deletes — reconstruct child rows an
ON DELETE CASCADEwiped out (and restore FKs anON DELETE SET NULLcleared) that InnoDB removes below the binlog and most tools can't see — see Query & Recovery - Time-travel — query any row (or table) as it was at any moment (requires ProxySQL — see Time-Travel SQL)
- Web console — browse, recover, and add servers to monitor, all in the UI
- MCP server — Claude or any MCP client can search history and draft recoveries
Works with MySQL, Percona Server for MySQL, Amazon RDS for MySQL,
Amazon Aurora MySQL, and Google Cloud SQL for MySQL — dbtrail connects
over the replication protocol, so it never needs the binlog files on disk
(that's what makes managed cloud databases work). Requires MySQL 8.0+ with
binlog_format=ROW and binlog_row_image=FULL; bintrail doctor checks both
and prints the exact fix.
Install
curl -fsSL https://raw.githubusercontent.com/dbtrail/dbtrail/main/install.sh | sh
This downloads the Compose stack, brings it up, waits for the console, and prints what to do next. Then:
- Open http://127.0.0.1:8090 — on first run, create a username and password (that's your login from now on).
- Click + Add server and paste the MySQL you want to watch — host, user, password. dbtrail runs preflight checks, provisions an index, and starts streaming within the minute.
Just curious? One container, zero setup, time-travel SQL in 30 seconds:
docker run --rm -p 6033:6033 ghcr.io/dbtrail/bintrail-demo
See the demo image.
Documentation
License
Apache-2.0 — free for any use, including commercial and production. Contributions welcome: see CONTRIBUTING.md (CLA required, prompted automatically on your first PR).
Recommended MCP Servers
How it compares
MySQL audit-and-recovery MCP, not a plain-language query utility like a general NL-to-SQL database assistant.
FAQ
Who is DBTrail MCP for?
It is for operators and founders running MySQL in production who need change tracking, recovery, and attribution accessible from MCP-enabled agents.
When should I use DBTrail MCP?
Use it during Operate (and pre-launch security hardening) when investigating data incidents, compliance questions, or unauthorized row updates.
How do I add DBTrail MCP to my agent?
Register the remote MCP URL https://api.dbtrail.com/mcp as streamable-http in your client per DBTrail setup docs tied to your DBTrail account and MySQL integration.