# MergeSafe

> MergeSafe is an MCP server for developer tools. MCP server letting coding agents read MergeSafe review findings, fix them and request. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API, CLI, VS Code
- **Website:** https://mergesafe.ai/docs/mcp.html
- **Repository:** https://github.com/mergesafe-ai/mergesafe-mcp
- **MCP Registry name:** ai.mergesafe/mergesafe
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

The README and docs describe MergeSafe's MCP server as a bridge between a coding agent and MergeSafe's pull request reviews. Instead of copying findings into an editor by hand, an agent such as Claude Code or Cursor can fetch the latest findings on a pull request, edit the code in the developer's own checkout, and ask MergeSafe to review the new commit.

The server is hosted remotely at mcp.mergesafe.ai and is reached over streamable HTTP. Access uses GitHub sign-in with OAuth rather than an API key, and the agent acts with the same organization roles the signed-in user has in MergeSafe. Per the docs, the default data sent to MergeSafe is the repository name and pull request number, and findings come back without the source code.

The server suits developers and teams already using MergeSafe for GitHub pull request reviews who want to work through findings inside their editor. The docs also cover a separate local server that uses an organization API key for CI or headless runs.

## Features

- **Read review findings:** Lists the latest review's findings on a pull request, each linked to its inline comment.
- **Request re-reviews:** Asks MergeSafe to review the current head of a pull request, which is charged like any other review.
- **Local change sessions:** Starts a review session for local diffs with a cost limit, without posting to GitHub.
- **Cost-limited local reviews:** Shows the price of a local review at each level before anything runs.
- **Answer findings:** Records a won't-fix or intended-behaviour answer on a finding at no charge.
- **Optional test context:** Sends test file excerpts for review only when the organization has enabled local context.

## Good for

- Have an agent fix a pull request's blocking MergeSafe findings in a local checkout
- Ask for a re-review after pushing fixes so open findings are rechecked
- Review uncommitted local changes before opening a pull request
- Check a repository's review settings and level from the editor

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http mergesafe https://mcp.mergesafe.ai
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.mergesafe.ai
```

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

```json
{
  "mcpServers": {
    "mergesafe": {
      "url": "https://mcp.mergesafe.ai"
    }
  }
}
```

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

```json
{
  "servers": {
    "mergesafe": {
      "type": "http",
      "url": "https://mcp.mergesafe.ai"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mergesafe": {
      "serverUrl": "https://mcp.mergesafe.ai"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.mergesafe.ai
```

Enter a Name (for example "MergeSafe"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "mergesafe": {
      "type": "http",
      "url": "https://mcp.mergesafe.ai"
    }
  }
}
```

## Tools

6 of 16 tools say they're read-only. 10 of 16 tools say they can delete or change data. From the server's own tool annotations; not verified by us.

- `get_findings` (says read-only): List MergeSafe's findings on the latest review of a pull request. Each has severity (P0 most severe .. P3), title, problem, file, line, status, blocking and comment_url, the inline comment on GitHub that holds the full explanation and a prompt for fixing it. Loop: for each blocking finding, check the claim against the file as it stands now; if it holds, fix it and add a regression test; run the te
- `request_review` (says it can change data): Ask MergeSafe to review the current head of a pull request; MergeSafe posts the review on the pull request. A head that was already reviewed is refused, not charged twice. Call it after pushing fixes.
- `get_settings` (says read-only): Read how this organization's MergeSafe is set up: for each setting its effective value, where the value comes from (repo_override, org, mixed with field_sources, mergesafe_default, or unchecked when it could not be read) and the values it may take, plus the settings version. Give the org (its GitHub login); add repo for that repository's effective settings. Read-only. A Member sees no billing fiel
- `list_repositories` (says read-only): List the repositories MergeSafe reviews for an organization, each with its effective level, plus the org's trigger mode and the GitHub link where the repository selection is changed (GitHub decides which repos are reviewed). Read-only. A Member sees only the repos their GitHub account can see.
- `local_context_status` (says read-only): Whether the repository's organization accepts local context (request_review_with_context). Ask before reading anything to send: when it is off, send nothing and use request_review.
- `request_review_with_context` (says it can change data): Like request_review, but also sends excerpts of the tests of the files the pull request changes, read from your local checkout, so the review sees them. Only when local_context_status says enabled. Push first: head_sha is the commit you read at, and if the pull request's head is another commit nothing is queued (head_moved). For each changed source file, up to 3 test files named after it (test_foo
- `start_session` (says it can change data): Start a MergeSafe review session for local changes, before or without a pull request; nothing is posted to GitHub. FIRST ask the user for a cost limit for the session in US dollars and pass it as limit_usd: reviews stop when it is reached until the user approves more. Returns the session_id and how reviews are priced (level rate x review size).
- `review_local` (says it can change data): Send the local diff for review and get its quote. Nothing runs yet: the answer says 'This review will cost you up to $X (Strong)' with the other levels' prices. Always show the user the price and ask them to confirm before you call confirm_review; never confirm on your own. Send each changed file with its patch and full text (none for a removed file). Also send context_files: the files that call, 
- `review_branch` (says it can change data): Review a branch already pushed to GitHub, with no upload: MergeSafe reads the branch's changes from GitHub itself. Returns review_id with status 'fetching' (queued). Poll get_session_findings until this review is 'quoted', then show the user its price as for review_local and ask them to confirm before confirm_review. A branch MergeSafe cannot read is refused with a note, and nothing is charged for
- `confirm_review` (says it can change data): Run a quoted review at the level the user chose, ONLY after the user confirmed its price. The price is held; what is charged afterwards is never more. If the session's limit would be passed, nothing runs: ask the user, and use approve_more only if they agree. Then poll get_session_findings.
- `approve_more` (says it can change data): Raise the session's cost limit by amount_usd. Only after the user explicitly agreed to that amount; never on your own.
- `get_session_findings` (says read-only): The session's findings (severity P0 most severe .. P3, file, lines, problem, suggestion, status: open, withdrawn or kept_at_p3, and any answer's verdict; a finding whose answer could not be judged is open again and may be answered) and the state of its latest review: running, done with the price charged, or failed (never charged). Fix what holds, then review_local again; or answer a finding with a
- `answer_finding` (says it can change data): Answer a finding once per review (free): 'won't fix here' or why it is intended. MergeSafe judges the reply and withdraws the finding, keeps it at P3, or notes it; get_session_findings shows the verdict. For a fix, just review_local again: the next review re-checks the file.
- `session_cost` (says read-only): The session's total so far, its limit and what is left.
- `prepare_upload` (says it can change data): Get a short-lived upload token for this open session (10 minutes, one upload). The local process POSTs the review's files to upload_path with it, so the file contents never pass through you. Then call review_local with the upload_id it returns. Spends nothing.
- `end_session` (says it can change data): Close the session; the uploaded code is deleted. Findings are kept.

## FAQ

### Do I need an API key to connect?

No. The hosted server signs in with GitHub. The docs say an API key is only needed for the advanced local setup used in CI or headless environments.

### Does my source code leave my machine?

By default only the repository name and pull request number are sent. Test file excerpts are sent only with request_review_with_context, and only if the organization has enabled local context.

### Can MergeSafe apply patches to my code?

No. The docs state MergeSafe returns findings and never writes or applies a patch. The agent makes the fixes locally.

### How do I disconnect an agent?

Open your profile in the MergeSafe app and choose Disconnect next to the agent. It is cut off on its next request.

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

Run this command in your terminal: claude mcp add --transport http mergesafe https://mcp.mergesafe.ai

### What are the best alternatives to MergeSafe?

The closest alternatives to MergeSafe are Myopic, Moltline Code Review, ThinkReview, MCPProxy and Merge Scheduler.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 22 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Myopic](https://ai-powered.com/mcp/myopic): Myopic is an open-source MCP server for developer tools.
- [Moltline Code Review](https://ai-powered.com/mcp/moltline-code-review): Moltline Code Review is a freemium MCP server for developer tools.
- [ThinkReview](https://ai-powered.com/mcp/thinkreview): ThinkReview is an MCP server for developer tools.
- [MCPProxy](https://ai-powered.com/mcp/mcpproxy): MCPProxy is an open-source MCP server for developer tools.
- [Merge Scheduler](https://ai-powered.com/mcp/merge-scheduler): Merge Scheduler is an MCP server for developer tools.
- [CueApril](https://ai-powered.com/mcp/cueapril): CueApril is an MCP server for developer tools.
- [Gerrit Code Review](https://ai-powered.com/mcp/gerrit-code-review): Gerrit Code Review is an open-source MCP server for developer tools.
- [cubic](https://ai-powered.com/mcp/cubic): cubic is an MCP server for developer tools.

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