Purpose
SnapDiff MCP is a standalone MCP (Model Context Protocol) server used to bring SnapDiff's visual verification capabilities into local AI agents. Its core idea is "intent-aware visual verification": first declare once which scope a UI change should affect, then compare the page with the baseline and flag changes outside that scope.
Main Capabilities
The server exposes four tools to local agents:
- Visually compare two web pages—output a difference percentage and a highlighted difference image.
- Take a screenshot of any URL.
- Check whether a page has changed relative to the last capture.
- Render HTML/CSS as an image, which can be used for scenarios such as OG cards, social images, and email header images.
Usage
This package supports only stdio communication and is started by the editor as a subprocess; it does not open a port. It calls the SnapDiff public REST API and requires users to provide their own API key; the key can be obtained at https://snapdiff.ai/dashboard . The repository provides configuration snippets for different agents/editors, including Claude (edit ~/.claude/settings.json), Cursor (~/.cursor/mcp.json or project-level .cursor/mcp.json), Cline (VS Code, Cline > MCP Servers > Edit Config), Zed (~/.config/zed/settings.json), Continue (~/.continue/config.yaml), and any tool that supports a generic stdio MCP slot.
The tool schemas are located in src/tools/ and exported from @corralimited/snapdiff-mcp/tools. The hosted SnapDiff backend imports the same schemas, so its in-process /mcp endpoint exposes exactly the same interface as this standalone stdio server—whether the agent connects to https://api.snapdiff.ai/mcp or runs this server locally, it sees the same tool names, descriptions, and parameters.
Remote HTTP Access
This package supports only stdio and does not provide an HTTP endpoint. If an HTTP endpoint is needed, you can use the hosted version https://mcp.snapdiff.ai/mcp,它使用 The API key authenticates each request and exposes the same tool interface.
Limitations
There are no other CLI flags except --help. The project uses the MIT license.