# image-diff MCP server

> Compares two images pixel-by-pixel, clusters visual differences, and generates heatmap overlays to spot UI changes.

- Repository: https://github.com/pulsemcp/mcp-servers
- Page: https://hostedmcp.org/servers/pulsemcp/image-diff
- Official: yes
- Transport: stdio
- Stars: 81
- License: MIT
- Latest version: 0.1.3

## Install

### Claude Code

```sh
claude mcp add image-diff -- npx -y @pulsemcp/image-diff-mcp-server
```

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

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

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

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

### VS Code CLI

```sh
code --add-mcp '{"name":"image-diff","type":"stdio","command":"npx","args":["-y","@pulsemcp/image-diff-mcp-server"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex

```sh
codex mcp add image-diff -- npx -y @pulsemcp/image-diff-mcp-server
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.image-diff]
command = "npx"
args = ["-y", "@pulsemcp/image-diff-mcp-server"]
```

### Gemini CLI

```sh
gemini mcp add -s user image-diff npx -- -y @pulsemcp/image-diff-mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## Tools (14)

- `source_image`
- `target_image`
- `threshold`
- `include_aa`
- `min_cluster_size`
- `cluster_gap`
- `identical`
- `summary`
- `clusters`
- `clustering`
- `alignment`
- `dimensions`
- `heatmapPath`
- `compositePath`

## FAQ

### What does image-diff compare?

It compares two images pixel-by-pixel using perceptual color distance, groups differing pixels into clusters, and produces heatmap visualizations.

### Can image-diff compare images of different sizes?

Yes, when images differ in size the smaller image is automatically aligned within the larger one using template matching.

### Which image formats does image-diff support?

It supports PNG, JPEG, WebP, and TIFF files provided as local file paths.

### What tools does image-diff provide?

It exposes a single tool, get_diff_of_images, which takes reference and comparison image paths and optional tuning parameters.

### Can image-diff ignore anti-aliasing differences?

Yes, anti-aliasing detection is on by default to filter false positives, and the include_aa parameter lets you count them instead.
