# snapdiff.ai

> snapdiff.ai is an open-source MCP server for developer tools. Visual diff and screenshot tools that let coding agents verify UI changes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/corralimited/snapdiff-mcp
- **MCP Registry name:** ai.snapdiff/mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [qa testing](https://ai-powered.com/categories/qa-testing)
- **Listing updated:** 2026-11-23

## About

SnapDiff MCP gives a coding agent eyes on the interface it just edited. The agent can capture a page, compare two URLs or a URL against a stored baseline, and ask whether a visual change matches what it intended.

The verification tool returns one of five verdicts, from pass to unexpected_regression, along with a suggested next action, so an agent can loop until the page looks right. A separate tool renders HTML and CSS to an image for OG cards, social images or email headers.

This package runs over stdio and calls the SnapDiff REST API with your key. The localhost screenshot tools use Playwright on your machine, where your dev server runs. A hosted HTTP endpoint with the same tools also exists.

## Features

- **Intent verification:** snapdiff_verify_ui_change returns a verdict and next action and needs a project and baseline.
- **Page comparison:** snapdiff_compare_pages diffs two URLs or a URL against a stored baseline.
- **Screenshot capture:** snapdiff_capture_screenshot takes a single screenshot of a URL.
- **HTML to image:** snapdiff_html_to_image renders HTML and CSS into an image.
- **Many editors supported:** Setup snippets cover Claude Code, Cursor, Cline, Zed and Continue.
- **MIT licensed:** The server is open source under the MIT licence.

## Good for

- Catch unintended layout regressions after an agent edits a component
- Compare staging against production pages
- Generate OG or social images from HTML
- Check that a change shows up where the agent said it would

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp --env SNAPDIFF_API_KEY='<SNAPDIFF_API_KEY>' -- npx -y @corralimited/snapdiff-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --env SNAPDIFF_API_KEY='<SNAPDIFF_API_KEY>' -- npx -y @corralimited/snapdiff-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@corralimited/snapdiff-mcp"]
env = { SNAPDIFF_API_KEY = "<SNAPDIFF_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e SNAPDIFF_API_KEY='<SNAPDIFF_API_KEY>' mcp npx -- -y @corralimited/snapdiff-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `snapdiff_verify_ui_change`: Checks whether a visual change matches the agent's stated intent and returns a verdict.
- `snapdiff_compare_pages`: Raw visual diff between two URLs or a URL and a baseline.
- `snapdiff_capture_screenshot`: Single screenshot of a URL.
- `snapdiff_html_to_image`: Renders HTML and CSS to an image.

## FAQ

### What do I need to run snapdiff.ai?

Node.js to run the npm package and a SnapDiff API key in SNAPDIFF_API_KEY.

### Does snapdiff.ai work over HTTP?

This package is stdio only; a hosted HTTP endpoint at mcp.snapdiff.ai exposes the same tools.

### What verdicts can verification return?

pass, expected_change_detected, unexpected_regression, no_change_detected or needs_human_review.

### Which licence applies?

MIT.

### Is snapdiff.ai free?

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

### How do I add snapdiff.ai to Claude Code?

Run this command in your terminal: claude mcp add mcp --env SNAPDIFF_API_KEY='<SNAPDIFF_API_KEY>' -- npx -y @corralimited/snapdiff-mcp

### What are the best alternatives to snapdiff.ai?

The closest alternatives to snapdiff.ai are lintlab Screenshot Diff, SnapVisor, One Shot Ui, Getsnap and TestivAI.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [lintlab Screenshot Diff](https://ai-powered.com/mcp/lintlab-screenshot-diff): lintlab Screenshot Diff is a paid MCP server for developer tools.
- [SnapVisor](https://ai-powered.com/mcp/snapvisor): SnapVisor is a freemium MCP server for developer tools.
- [One Shot Ui](https://ai-powered.com/mcp/one-shot-ui): One Shot Ui is an open-source MCP server for developer tools.
- [Getsnap](https://ai-powered.com/mcp/getsnap): Getsnap is a freemium MCP server for browser automation.
- [TestivAI](https://ai-powered.com/mcp/testivai): TestivAI is a free MCP server for developer tools.
- [Visual Regression & Screenshot Diff for AI Agents](https://ai-powered.com/mcp/visual-regression-and-screenshot-diff-for-ai-agents): Visual Regression & Screenshot Diff for AI Agents is a paid MCP server for developer tools.
- [Snap Screenshots](https://ai-powered.com/mcp/snap-screenshots): Snap Screenshots is a freemium MCP server for developer tools.
- [UI Verify](https://ai-powered.com/mcp/ui-verify): UI Verify is a freemium MCP server for developer tools.

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