MCP server · Developer tools
mergelock MCP server
by sadayamuthu
Your AI can check two branches for hidden code conflicts before you merge them.
mergelock is a small checker that looks at two branches in your git project and points out problems git itself stays quiet about. It is handy if you work with other people on the same code and want to catch trouble before a merge, even if you are not the one writing the code.
What is an MCP server? The 30-second version
On its own, your AI can only chat with you. An MCP server is a small helper program that gives your AI a new skill or a connection to a tool, and here that tool is mergelock. Once it is connected, your AI can run mergelock checks for you when you ask. You do not have to type any commands yourself.
What this MCP server does
You ask your AI something like whether your branch is safe to merge. The AI passes that request to the mergelock helper. The helper looks at the commits of both branches, without touching your files, and compares them. It then reports things like a function that changed on one side while the other side still calls the old version, or a function that was deleted but is still used. You get a short list of findings, each with a suggested fix.
What you can do with it
- Check if your branch is safe to merge into main
- Compare two branches that are both still in progress
- Spot a function whose signature changed while the other branch added calls to the old one
- Find a symbol that was deleted on one side but is still used on the other
- Catch the same function written twice on two branches
- Get a suggested fix for each problem found
Try asking your AI
- “Is my branch my-feature safe to merge into main?”
- “Compare feat-a and feat-b and tell me if they will collide.”
- “Run a mergelock check on my current branch against main and explain the findings.”
- “Are there any hidden conflicts between my branch and main before I push?”
What it gives back to you
You get a short report in the chat. It lists each finding with a severity, like error or warning, and a suggested fix. If everything is fine, it simply tells you the result is clean. Nothing in your files is changed.
Before you start
What you need
- A git project on your computer (git 2.38 or newer)
- mergelock installed, for example with Homebrew, a package, or Docker
- An AI app that can connect to MCP servers, like the Claude desktop app
Good to know
mergelock only reads commits and never changes your files, so it is safe to run, but the findings are suggestions and you should still review them before merging.
Install it with your AI
Add mergelock MCP server to your AI, no technical skills needed
You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.
Sign in to get the install prompt
Members get a ready-made prompt that lets the Claude desktop app check mergelock MCP server, install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 4,361 MCP servers here for you.
Who it's for
Developers and teams who work on shared code and want a quick safety check before merging branches, especially when several people or AI agents edit the same project.





