Semamerge logo

Semamerge

Detects semantic conflicts between Git branches through AST-based comparison before a merge.

Install Semamerge

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "semamerge": {
      "command": "npx",
      "args": [
        "-y",
        "semamerge"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 4 tools correctly ().

Overview

Before merging branches, use the semamerge MCP server to identify code changes that Git may merge cleanly but that can break interfaces or callers. It reads branch contents from a repository, parses supported source files into ASTs, extracts semantic elements, and compares changes against a common ancestor. Reach for it during pre-merge checks, branch reviews, or focused investigation of a file pair. TypeScript and JavaScript are supported; Python support is planned.

Use cases

  • Check a feature branch before merging it into main
  • Compare two branches for incompatible API changes
  • List semantic changes introduced by a branch
  • Inspect one file's semantic differences across branches

Key features

  • AST-based semantic merge analysis
  • Pre-merge risk classification
  • Per-file branch conflict reports
  • Semantic change listing
  • Focused file-pair comparisons
  • TypeScript and JavaScript support

Tools4

What Semamerge lets your agent do. Expand a tool for its parameters.

Verified live~619 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 78d

What it can do

From the 4 tools this server returned when we ran it.

Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age213 days
Maintainers1

Observed 2026-11-24 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · semamerge (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads204Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Semamerge works

What the semamerge MCP server does

The semamerge MCP server analyzes Git branches for semantic incompatibilities that are not necessarily reported as textual merge conflicts. It can identify changes to function signatures, parameters, exports, imports, types, interfaces, enums, constants, and related code contracts. Examples include one branch removing an export while another still imports it, changing a return type used by another branch, or adding a required interface field that another implementation does not provide.

The server works with local repositories supplied through a repoPath argument. It supports TypeScript and JavaScript files, including .ts, .tsx, .js, .jsx, .mjs, and .cjs extensions. Python support is planned but is not described as available.

How it works

SemaMerge reads file contents directly from Git branches with git show, so its analysis does not require checking each branch out. It parses source files with tree-sitter and WASM, then walks the resulting syntax trees to extract semantic information such as functions, signatures, exports, imports, types, and enums.

For branch comparisons, the analysis uses a three-way model: it evaluates changes from a common ancestor to each branch, then cross-references those changes to find incompatible assumptions. This approach is intended to surface cases where textual merging succeeds but the resulting code may contain broken references or contract mismatches.

Tools and capabilities

The semamerge MCP server exposes four MCP tools:

  • check_merge_safety performs a quick comparison between a source and target branch and returns a safe, warning, or danger risk result.
  • analyze_branches performs a deeper comparison of two branches, with a per-file breakdown of semantic conflicts. It accepts two branches and a base branch.
  • list_semantic_changes lists semantic changes made on one branch relative to a base branch, including changes involving functions, exports, and types.
  • analyze_file_pair narrows the investigation to one file path across two branches and returns a detailed semantic comparison.

Use the quick check when deciding whether to proceed with a merge. Choose the branch analysis when you need conflict details, and use the file-pair tool when a particular source file needs closer inspection.

Setup and configuration

You can start the published package with npx semamerge, install it globally with npm install -g semamerge, or build it from a cloned repository. A source build uses npm install followed by npm run build; the resulting server entry point is dist/index.js.

The documented client configurations launch that file with Node. In VS Code, add an MCP server entry under the mcp.servers settings object. In Claude Desktop, add a corresponding entry under mcpServers. Both configurations use a command of node and pass the built file path in args.

No environment variables are documented. Each analysis request supplies the repository path and the relevant branch names; file-pair analysis also supplies a file path.

Limitations and notes

The semamerge MCP server is limited to the language extensions listed in the README. Python analysis is not currently presented as available. Results depend on the Git repository, branch names, base branch where required, and source files being accessible through the supplied local path. The server identifies semantic conflicts through extracted syntax and code relationships; it does not replace tests or a full application-level validation pass.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Semamerge

semamerge is an MCP server that connects an AI client to Git repositories and compares branches for semantic merge conflicts. It provides check_merge_safety for a quick risk result, analyze_branches for per-file conflict details, list_semantic_changes for branch changes, and analyze_file_pair for focused file comparisons.

Install it with npx semamerge, install it globally with npm install -g semamerge, or clone the repository and build it with npm install, then npm run build. Client configurations launch the resulting dist/index.js file with Node.

Configure semamerge in VS Code settings.json under mcp.servers, using node as the command and the built dist/index.js path as its argument.

No, Python support is listed as planned rather than available. The documented supported extensions are TypeScript and JavaScript files, including .ts, .tsx, .js, .jsx, .mjs, and .cjs.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSemamerge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/semamerge?style=directory)](https://allmcps.com/mcp/semamerge)
HTML Embed
<a href="https://allmcps.com/mcp/semamerge"><img src="https://allmcps.com/api/badge/semamerge?style=directory" alt="Semamerge on AllMCPs" /></a>