# Mergetrain MCP server

> Queue parallel-agent worktree branches, test them together, and serialize and recover Git pushes on your own machine.

- Listing: https://mcp.tc/i/mergetrain
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: no API key needed
- Category: [Developer Tools](https://mcp.tc/c/developer-tools)
- Vendor: yongjip
- Homepage: <https://yongjip.github.io/mergetrain/>
- Docs: <https://github.com/yongjip/mergetrain/tree/main/docs>
- Repository: <https://github.com/yongjip/mergetrain>
- Package: pypi `mergetrain`

## About

Mergetrain is a local merge queue for coding agents that work in separate Git worktrees. Agents commit and enqueue their branches. One runner merges them in an isolated integration worktree, runs configured test gates on the combined result, and updates Git refs atomically only after explicit approval. Interrupted pushes can be recovered.

It runs locally as a Python package started with uvx over stdio. There is no account, hosted service, OAuth app or API key, and queue state stays on your machine. Only your configured Git remote and gate commands contact external services.

## What it can do

- Enqueue committed agent branches into a durable local queue
- Merge queued branches in an isolated integration worktree
- Run configured test gates on the combined result
- Land work in batch mode or ordered mode
- Require explicit approval before an atomic Git push
- Recover and reconcile interrupted pushes
- View queues and runners across several repositories

## Example prompts

- "Enqueue my current worktree branch in mergetrain."
- "Show the status of the mergetrain queue for this repository."
- "Run the gates on the queued branches and report failures."
- "Recover the interrupted push from the last mergetrain run."

## Install

### Any client

We don’t have a verified install command for this server yet. Its own instructions are the place to start.

Package: `mergetrain` on PYPI.

[Open the setup instructions](<https://github.com/yongjip/mergetrain>) (opens github.com)

## Recent changes

- 2026-11-01 05:22 UTC: Tracking started: version 3.7.1. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/mergetrain#history (Atom feed: https://mcp.tc/i/mergetrain/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 3.7.1
- Last checked: 2026-11-01
- Listed: 2026-11-01
- Updated: 2026-11-01

---
Source: https://mcp.tc/i/mergetrain (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
