Pixelpact logo

Pixelpact

Measures a rendered implementation against a reference page and reports property-level visual differences.

Install Pixelpact

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pixelpact": {
      "command": "npx",
      "args": [
        "-y",
        "pixelpact"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y pixelpact

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The pixelpact MCP server extracts a visual contract from a reference page and checks an implementation against it. It uses Playwright to inspect DOM geometry, styles, responsive viewports, interaction states, animations, and design tokens, then returns expected values, actual values, and deltas. Use it when an agent or developer is building toward an existing design and needs measurable feedback rather than an image comparison. The MCP interface exposes contract extraction, implementation checks, pixel diffs, and contract summaries over stdio.

Use cases

  • Extract a contract from a design reference
  • Check a local implementation against a reference page
  • Measure responsive desktop and mobile layouts
  • Give coding agents property-level UI feedback
  • Run visual checks in CI

Key features

  • Reference-page contract extraction
  • Property-level implementation checks
  • DOM geometry and computed-style measurement
  • Hover, focus, and animation-state capture
  • Pixel diff and contract summary tools
  • StdIO MCP integration

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8h ago via OSV.dev · pixelpact (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars11Stargazers on the source repository.
npm downloads51Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.

How Pixelpact works

What pixelpact does

The pixelpact MCP server turns a rendered reference page into a JSON contract, then measures another page against that contract. The contract records details such as element bounds, computed styles, colors, spacing, typography, design tokens, animation keyframes, and hover or focus states. This makes the reference the baseline from the beginning of a UI project rather than waiting for an approved screenshot.

Results identify the affected selector and property, along with the expected value, measured value, and difference. A check can therefore tell an agent whether a heading is too small, a button has the wrong padding, or a focus outline does not match. The output is intended to support repeated edit-and-check cycles and can also be reviewed as committed JSON in a pull request.

How it works

The command-line workflow has two stages. First, extract a contract from a URL, optionally narrowing measurement to a selector, selecting named viewports, and saving screenshots. Next, pass the contract and the implementation URL to a check operation. The implementation is rendered and compared at the requested viewport dimensions.

Playwright drives the browser used for extraction and measurement. Because the tool reads the DOM and rendered styles, it is not tied to a particular frontend framework. It can also use a Figma frame as the reference according to the project documentation. A check exits with status 0 when all measurements are within tolerance and status 1 when deviations remain, allowing the command to run in scripts or CI jobs.

The pixelpact MCP server exposes four tools: extract_contract, check_implementation, diff_pixels, and read_contract_summary. MCP clients can call these tools so a coding agent can obtain measurements, inspect deviations, and repeat the process without a person manually opening the page.

Setup and configuration

Install the package and Playwright as development dependencies, then install Chromium through Playwright:

bash
pnpm add -D pixelpact playwright
pnpm exec playwright install chromium

Node.js 22.12 or newer is required. Playwright is a peer dependency, so browser installation remains under the project's control. The MCP configuration can launch the server through npx:

config.json
{
  "mcpServers": {
    "pixelpact": { "command": "npx", "args": ["-y", "pixelpact-mcp"] }
  }
}

A typical extraction command supplies a reference URL, an optional root selector, viewport names, a screenshot directory, and an output path. A later check supplies the contract file, implementation URL, and viewport. Contracts are plain JSON with a version, source, viewport data, tokens, keyframes, and per-viewport element measurements.

Tools and capabilities

The pixelpact MCP server supports these documented operations:

  • Extract a contract from a rendered reference page.
  • Check an implementation against a saved contract.
  • Compare pixels through the diff_pixels tool.
  • Read a compact summary of a contract.
  • Measure desktop and mobile viewport configurations.
  • Include hover, focus, animation, and design-token values in the reference data.
  • Report missing elements and property-level deviations.
  • Produce a file that can be committed, diffed, or passed to another agent.

Limitations and notes

The server requires a browser environment through Playwright and Chromium, plus Node.js 22.12 or newer. It measures what the browser renders and does not depend on the application's framework, but the material does not describe support for non-browser assets or application-specific authentication flows.

This workflow is aimed at building toward a reference design, not replacing visual regression testing for an already-approved page. The documentation presents those as complementary approaches: pixelpact measures against the design itself, while regression tools compare later renders with an accepted snapshot.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pixelpact

pixelpact is an MCP server that connects coding agents to rendered web pages through Playwright. Its main tools extract a visual contract, check an implementation against that contract, compare pixels, and read contract summaries. It reports selectors, properties, expected values, actual values, and differences so agents can iterate on UI code.

Install `pixelpact` and `playwright` as development dependencies, then install Chromium with Playwright. Use `pnpm add -D pixelpact playwright` followed by `pnpm exec playwright install chromium`. Node.js 22.12 or newer is required.

Configure the client to launch `npx -y pixelpact-mcp` over stdio. The documented JSON configuration names the server `pixelpact` and sets `npx` as the command with `-y` and `pixelpact-mcp` as arguments.

Yes, pixelpact works with Cursor because the project documents Cursor as an MCP client and provides a stdio MCP launch configuration. The same setup uses `npx -y pixelpact-mcp`.

Yes, pixelpact can check a local implementation URL against an extracted contract. Run a check with the contract file and a local address such as `http://localhost:3000`; the command exits 0 within tolerance and 1 when deviations remain.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPixelpact AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pixelpact?style=directory)](https://allmcps.com/mcp/pixelpact)
HTML Embed
<a href="https://allmcps.com/mcp/pixelpact"><img src="https://allmcps.com/api/badge/pixelpact?style=directory" alt="Pixelpact on AllMCPs" /></a>