# Diff MCP

> Diff MCP is an open-source MCP server. Character-precise unified diff + patch application + patch parsing. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/mukundakatta/mcp-stack/tree/HEAD/packages/diff-mcp
- **MCP Registry name:** io.github.MukundaKatta/diff-mcp
- **Listing updated:** 2026-11-13

## About

Character-precise unified diff + patch application + patch parsing.

## Install

### Claude Code (Terminal)

```sh
claude mcp add diff-mcp -- npx -y @mukundakatta/diff-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "diff-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mukundakatta/diff-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "diff-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mukundakatta/diff-mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "diff-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mukundakatta/diff-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "diff-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mukundakatta/diff-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "diff-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mukundakatta/diff-mcp"
      ]
    }
  }
}
```

## FAQ

### Is Diff MCP free?

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

### How do I add Diff MCP to Claude Code?

Run this command in your terminal: claude mcp add diff-mcp -- npx -y @mukundakatta/diff-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

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