Skip to content
MCP server

Foremerge

Coordination layer that warns when parallel coding agents plan conflicting changes

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.7.0
Listing updated
3 days ago

About Foremerge

Foremerge is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

claude mcp add foremerge -- npx -y foremerge

Add to claude_desktop_config.json

{
  "mcpServers": {
    "foremerge": {
      "command": "npx",
      "args": [
        "-y",
        "foremerge"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "foremerge": {
      "command": "npx",
      "args": [
        "-y",
        "foremerge"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

What it does

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

Pricing

Open source

Open source; install via cargo, npm or binary

Prices change. Check foremerge.com before you buy.

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 to Foremerge

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools