# db-branch

> Instant database branches for MySQL and PostgreSQL, on your own servers

Source: https://talira.ai/catalog/db-branch-590ypapk
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Command-line tool, Infrastructure
- Categories: [databases / branching](https://talira.ai/categories/databases/branching), [developer tools / testing](https://talira.ai/categories/developer-tools/testing)
- Platforms: linux[^2][^4]
- Licence: Apache-2.0[^3]
- Pricing: Free tier[^1]
- Pricing notes: Community core is free (Apache-2.0, any number of nodes). Lite (up to 3 nodes, adds recording a branch to go back to any transaction for MySQL) is not on sale for the moment and has no listed price. Team and Business prices not announced yet.
- Free tier: yes[^1]
- Self-hostable: yes[^2][^4]
- API: yes[^4]
- Plugins: yes[^4][^5]
- MCP server: yes[^4]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^4]

db-branch makes copy-on-write branches of a [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md) or [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) database from ZFS clones: a base is a ZFS dataset holding a loaded database, and each branch is a clone of a base snapshot running its own database server, so nothing is copied when a branch is created. Branches can be reset, checkpointed and restored, expire after a TTL, and can be upgraded to a newer engine version one at a time. One API backs the CLI, a REST API, a web console and an MCP server for AI agents, and several nodes can form a Raft cluster with optional ProxySQL routing. It needs [Ubuntu](https://talira.ai/catalog/ubuntu-3yhk0xfs.md) 24.04 or 26.04 and a ZFS pool, and is in beta.

## Links

- Website: https://db-branch.com
- GitHub: https://github.com/db-branch/db-branch
- Docs: https://db-branch.com/docs/getting-started/
- Pricing: https://db-branch.com/plans/

## Problems it solves

- give every pull request its own copy of our large MySQL database in seconds
- let an AI agent run risky queries and migrations without touching the real database
- copying a 500 GB database for each test run takes hours and the disk space
- test a MySQL 8.0 to 8.4 upgrade on a copy of production before doing it for real
- throwaway database copies on our own servers, not a cloud service
- reset a test database to how it was before the migration in one command
- save a checkpoint of a dev database and go back to it later
- copy-on-write clones of a Postgres database on a ZFS server
- give each git worktree its own writable copy of the dev database
- temporary database copies that delete themselves after a few days

## Features

- copy-on-write branches from ZFS clones
- reset, checkpoint and restore
- branch TTLs
- per-branch engine upgrades
- MySQL and PostgreSQL runtimes side by side
- CLI, REST API, web console and MCP server
- Raft cluster with optional ProxySQL routing
- free masking modules (greenmask, anon)

## Ways to run it

### Community

You run it, Apache-2.0. Price: free.[^1][^2]

Only in this edition:

- bases, snapshots and branches
- checkpoints and branch upgrades
- cluster, console, CLI, API and MCP
- scheduled refresh and free masking tools
- any number of nodes

Not included:

- recording a branch to restore any transaction (MySQL)[^1]
- user accounts and roles, SSO and audit log (planned paid modules)[^1]

You arrange:

- an Ubuntu 24.04 or 26.04 server
- a ZFS pool
- a dump or copy of the database to load as a base

Self-hosting docs: https://db-branch.com/docs/getting-started/

### Lite

You run it, under a commercial licence. Price: not published.[^1]

Only in this edition:

- record a branch and go back to any transaction (MySQL)
- history of what changed, with the checkpoints

Not included:

- more than 3 nodes[^1]

You arrange:

- the same server and ZFS pool as Community
- a licence key

Self-hosting docs: https://db-branch.com/plans/

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Has an MCP server: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 1.00, adoption 0.29, momentum 0.44, community 0.12, backing 0.00, extensibility 0.80.

- last commit 8 days ago
- 123 commits in the last 90 days
- latest release v0.2.5 9 days ago
- 28 GitHub stars
- 1 contributors
- has a plugin system
- has an MCP server for agents

Warnings:

- young project (first commit 10 days ago)
- one or two maintainers (bus factor)

## Alternatives

- [Neon](https://talira.ai/catalog/neon-62ajbpbj.md): Serverless Postgres with branching, autoscaling and scale to zero
- [DBLab Engine](https://talira.ai/catalog/dblab-engine-egf8da3j.md): Blazing-fast PostgreSQL cloning and branching for dev/test environments and CI
- [Xata](https://talira.ai/catalog/xata-gzxahrpc.md): Open source, cloud native, Postgres platform with copy-on-write branching and scale-to-zero
- [pgoverlay](https://talira.ai/catalog/pgoverlay-8z094v1s.md): Instant, writable copy-on-write branches of your real Postgres, self-hosted on plain Docker or Kubernetes. No ZFS required.
- [RiftDB](https://talira.ai/catalog/riftdb-dw0e3yr3.md): Instant, copy-on-write database branches for Postgres. Self-hosted. Every PR gets its own database.
- [dbfork](https://talira.ai/catalog/dbfork-94t857ss.md): Fast local PostgreSQL database branching for migrations, schema testing, and isolated development workflows

## Sources

[^1]: https://db-branch.com/plans/ (checked 17 Nov 2026)
[^2]: https://db-branch.com/docs/getting-started/ (checked 17 Nov 2026)
[^3]: https://github.com/db-branch/db-branch/blob/main/LICENSE (checked 17 Nov 2026)
[^4]: https://github.com/db-branch/db-branch (checked 17 Nov 2026)
[^5]: https://github.com/db-branch/db-branch/blob/main/docs/modules.md (checked 17 Nov 2026)
