Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Design Comparison ServerCompare the design mockup and the implementation screenshot for the login page."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Design Comparison Server
An MCP (Model Context Protocol) server that allows LLMs to compare design screenshots with implementation screenshots using pixelmatch. Supports multiple image formats including PNG, JPEG, WebP, GIF, and TIFF. This tool helps identify visual discrepancies between design mockups and actual implementation.
Features
Multi-Format Support: Works with PNG, JPEG, WebP, GIF, and TIFF images
Screenshot Comparison: Compare two images pixel-by-pixel
Auto-Resize: Mismatched resolutions are reconciled automatically — the implementation is scaled to the design's dimensions (toggle off with
auto_resize)Visual Diff Output: Generate a highlighted diff image showing differences
Detailed Metrics: Get total pixels, different pixels, and percentage difference
Configurable Threshold: Adjust sensitivity of the comparison
Base64 Support: Return diff images as base64 or save to file
Related MCP server: UI Screenshot Comparison MCP
Installation
For End Users
Install globally via npm:
npm install -g mcp-design-comparisonOr using npx (no installation required):
npx mcp-design-comparisonFor Development
git clone https://github.com/w01fgang/mcp-design-comparison.git
cd mcp-design-comparison
npm install
npm run buildUsage
As an MCP Server
Add this server to your MCP client configuration. The server runs on stdio and provides a single tool:
Tool: compare_design
Compare a design screenshot with an implementation screenshot.
Parameters:
design_path(string, required): Path to the design screenshot (supports PNG, JPEG, WebP, GIF, TIFF)implementation_path(string, required): Path to the implementation screenshot (supports PNG, JPEG, WebP, GIF, TIFF)output_diff_path(string, optional): Path to save the diff image (always saved as PNG). If not provided, the diff image will be returned as base64threshold(number, optional): Matching threshold (0-1). Smaller values make the comparison more sensitive. Default is 0.1auto_resize(boolean, optional): When the two screenshots differ in resolution, scale the implementation to the design's dimensions instead of erroring. Default istrue. Setfalseto require identical dimensions.
Returns:
Total number of pixels
Number of different pixels
Percentage difference
Diff image (as file or base64)
Configuration Example
Add to your MCP settings file:
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"design-comparison": {
"command": "npx",
"args": ["-y", "mcp-design-comparison"]
}
}
}Cursor (~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json on macOS):
{
"mcpServers": {
"design-comparison": {
"command": "npx",
"args": ["-y", "mcp-design-comparison"]
}
}
}After adding the configuration, restart Claude Desktop or Cursor.
How It Works
Loads both images into memory (any supported format → raw RGBA)
If dimensions differ, scales the implementation to the design's dimensions (unless
auto_resizeisfalse, which errors instead)Uses pixelmatch to compare pixel-by-pixel
Generates a diff image highlighting differences in pink
Returns statistics and the diff image
Example Use Cases
Design QA: Verify that implementation matches design mockups
Regression Testing: Compare screenshots before and after changes
Cross-browser Testing: Compare renders across different browsers
Responsive Design: Compare layouts at different breakpoints
Testing
Run Automated Tests
npm testManual Testing with Your Screenshots
Use the included test script:
node test-manual.mjs design.png implementation.png [output-diff.png]Requirements
Node.js 18+
Images in a supported format (PNG, JPEG, WebP, GIF, or TIFF); differing resolutions are auto-resized unless
auto_resizeis disabled
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/w01fgang/mcp-design-comparison'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
