# Foremerge

> Foremerge is an open-source MCP server for developer tools. Coordination layer that warns when parallel coding agents plan conflicting changes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows
- **Website:** https://foremerge.com
- **Repository:** https://github.com/naw103/foremerge
- **MCP Registry name:** io.github.naw103/foremerge
- **Categories:** developer tools, AI models and LLM tooling
- **Listing updated:** 2026-11-14

## About

Git only notices conflicts after code exists, and only when text overlaps. Foremerge works before that: each agent publishes the target of its plan, such as a symbol and whether it will replace or extend it, into a small SQLite database inside the project's .git folder, which every agent on the machine can read. If one agent replaces PaymentService while another adds PayPal support to it, Foremerge raises a HIGH advisory naming both and suggesting a stable abstraction.

Detection is deterministic and uses no language model, so the same inputs give the same answer. It never locks files or blocks agents, because one crashed agent would then stall the rest; warnings are advisory. It also tracks dependencies, provisional ChangeSets, decisions and verification-gated lifecycle steps.

The README labels version 0.7.0 as a pre-1.0, local-first MVP with schemas that may change, no published benchmarks and no coordination between machines. It ships as one binary through cargo, npm or a checksum-verified download.

## Features

- **Intent publishing:** Agents declare scopes like symbols before editing.
- **Deterministic conflict detection:** Explainable findings without a model in the loop.
- **Shared local store:** A SQLite database inside .git visible to every agent.
- **Advisory only:** No file locks and no blocking.
- **Verification-gated lifecycle:** ChangeSets move forward only after checks pass.
- **Cross-provider:** Works with Claude Code, Codex and Cursor.

## Good for

- Run Claude Code and Codex in separate worktrees without collisions
- Catch a replace-versus-extend plan clash early
- Record decisions and verification for agent changes
- Review what other agents are about to change

## Install

### Claude Code (Terminal)

```sh
claude mcp add foremerge -- npx -y foremerge
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "foremerge": {
      "command": "npx",
      "args": [
        "-y",
        "foremerge"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "foremerge": {
      "command": "npx",
      "args": [
        "-y",
        "foremerge"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "foremerge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "foremerge"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "foremerge": {
      "command": "npx",
      "args": [
        "-y",
        "foremerge"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "foremerge": {
      "command": "npx",
      "args": [
        "-y",
        "foremerge"
      ]
    }
  }
}
```

## FAQ

### Does it lock files?

No. It never locks or blocks; warnings are advisory.

### Does an LLM judge conflicts?

No. Detection is deterministic and explainable.

### Does it work across machines?

No. The README says coordination between machines is out of scope.

### How mature is it?

Version 0.7.0 is a pre-1.0, local-first MVP and schemas may change.

### Is Foremerge free?

Yes. Foremerge is open source, so you can use and self-host it for free.

### How do I add Foremerge to Claude Code?

Run this command in your terminal: claude mcp add foremerge -- npx -y foremerge

### What are the best alternatives to Foremerge?

The closest alternatives to Foremerge are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/foremerge
