Skip to content
MCP server

snapdiff.ai

Visual diff and screenshot tools that let coding agents verify UI changes

Runs locally

snapdiff.ai is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API
Runs
Locally
Access
Needs a secret key or token
Version
0.5.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@corralimited/snapdiff-mcp"
      ],
      "env": {
        "SNAPDIFF_API_KEY": "<SNAPDIFF_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • SNAPDIFF_API_KEYSnapDiff API key. Get one at https://snapdiff.ai/dashboard.Required
  • SNAPDIFF_API_URLOverride the API base URL. Defaults to https://api.snapdiff.ai/v1.

About snapdiff.ai

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.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

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.

What it does

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

Pricing

Open source

MIT-licensed server; requires a SnapDiff API key

snapdiff.ai 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.

How AIPoweredBot checks servers