Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
dbtrail avatar

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)
terminal
claude mcp add --transport http dbtrail https://api.dbtrail.com/mcp

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars43
TransportHTTP
AuthNone
Last updatedJuly 27, 2026
Repositorydbtrail/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
dbtrail — the open-source time-travel flashback for MySQL. Every change leaves a trail: follow it back.

Point-in-time recovery for MySQL — no locks, no schema changes, no waiting for a restore.

Release License CI

SELECT * FROM orders WHERE id = 123 AS OF '2026-05-20 14:00:00'

— against production MySQL. That's the experience dbtrail makes possible.

dbtrail console: what changed recently and where — every row change indexed, deletes surfaced first

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 CASCADE wiped out (and restore FKs an ON DELETE SET NULL cleared) 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:

  1. Open http://127.0.0.1:8090 — on first run, create a username and password (that's your login from now on).
  2. 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

Start here Reference Operations
Install Query & Recovery Deployment · Capacity
Quickstart Web console Rotation & Status
DBA guide Time-Travel SQL Docker
30-second demo Streaming · Indexing Upload to S3
MariaDB source (alpha) · PostgreSQL source (beta) Server identity
MCP server Parquet debugging
Dump & Baseline · DDL tracking

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.

Databasesdatabases

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.