Gridproof logo

Gridproof

Audits rendered UI geometry against spacing, sizing, and tap-target rules through MCP and Playwright.

Install Gridproof

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": {
    "gridproof": {
      "command": "npx",
      "args": [
        "-y",
        "gridproof"
      ]
    }
  }
}

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

Automated check passed— started and listed 4 tools correctly ().

Overview

The Gridproof MCP server renders a running frontend with Playwright, measures computed geometry, and checks the results against configurable spacing and sizing rules. Its `gp_audit` tool returns structured violations with selectors, expected values, and fix hints, while `gp_report` also writes a self-contained HTML report. Use it in an agent loop when a coding agent needs to audit, edit, and re-audit a UI without changing source files automatically. A standalone CLI is available for manual checks and scripts.

Use cases

  • Audit a running Tailwind page for off-scale spacing
  • Find inconsistent gaps between sibling cards
  • Check interactive elements against tap-target requirements
  • Generate an HTML UI QA report for a viewport
  • Re-audit a frontend after an agent edits its source

Key features

  • Computed DOM geometry analysis with Playwright
  • Structured violations with selectors and fix hints
  • Tailwind spacing and arbitrary-value checks
  • Gap consistency and canonical-size checks
  • Configurable rules, suppressions, and viewport reports
  • Standalone report CLI

Tools4

What Gridproof lets your agent do. Expand a tool for its parameters.

Verified live~943 tokens of context

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.

13/13 checks healthy over the last 59d

What it can do

From the 4 tools this server returned when we ran it; 4 declare their own safety hints.

Makes network requests · 1Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age74 days
Maintainers1

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · gridproof (npm)

Adoption & maintenance

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

GitHub stars4Stargazers on the source repository.
npm downloads286Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Gridproof works

What Gridproof does

The Gridproof MCP server evaluates a rendered webpage rather than inspecting source files or analyzing screenshots. It measures computed margins, padding, gaps, element rectangles, icon sizes, and interactive-element dimensions, then compares those values with configured rules. Findings include the affected selector, the observed and expected values, and a suggested fix.

The checks are intended for frontend quality work, especially Tailwind projects. The default rules cover spacing values, arbitrary Tailwind values, inconsistent sibling gaps, canonical icon and interactive-element sizes, and minimum tap targets. Spacing, arbitrary-value, and gap-consistency findings are warnings by default. Tap-target violations are errors because they represent an accessibility minimum; nothing blocks a build or supplies exit-code semantics.

How it works

A running development server supplies the target URL. Playwright opens that page in a headless Chromium instance, and an in-page script walks the DOM to collect computed geometry. The rule engine evaluates those measurements against the project configuration and returns structured results to the MCP client.

The Gridproof MCP server does not edit application code. The agent receives the report, makes changes in the codebase, and calls the audit again. On pages that are not detected as Tailwind, the tool keeps canonical-size and tap-target checks active while skipping the three Tailwind-specific rules. The report identifies that fallback instead of silently presenting incomplete coverage.

Setup and configuration

Install the Chromium build used by Playwright before running checks:

Terminal
npx playwright install chromium

Claude Code can register the published package with:

Terminal
claude mcp add gridproof -- npx -y gridproof

For a local checkout, install dependencies, build the project, and point the client to dist/index.js:

Terminal
npm install && npm run build
claude mcp add gridproof -- node /absolute/path/to/gridproof/dist/index.js

An optional gridproof.config.json file can set the base spacing unit, allowed values, canonical sizes, minimum tap-target size, breakpoint, icon tolerance, Tailwind detection behavior, rule severities, and suppressions. Elements can also use data-gp-ignore to skip all rules, or name selected rules. Suppressed findings are counted but not listed.

Tools and capabilities

The Gridproof MCP server exposes two MCP tools:

  • gp_audit checks a URL and returns JSON containing violations and fix hints.
  • gp_report performs the same audit and writes a shareable HTML report to disk, including a screenshot as an attachment rather than as an analysis source.

The package also provides a CLI command for one-off checks:

Terminal
npx gridproof --report http://localhost:5173
npx gridproof --report http://localhost:5173 --out ./qa/report.html --viewport 375x812

The four rule areas are spacing scale, arbitrary values, gap consistency, and canonical sizing. The configuration can change their severities and define suppressions for intentional exceptions.

Limitations and notes

Gridproof reads computed geometry and does not perform computer-vision or pixel-based screenshot analysis. It is a local MCP server and CLI, with no authentication, hosted service, or billing component. It is designed for agent-loop checks rather than CI merge gates, so it does not fail builds through exit codes. It also does not modify source files.

Column-grid clustering, cross-breakpoint alignment drift, and Figma token import are not implemented. Non-Tailwind pages receive accessibility-oriented size checks only unless configuration changes the detection behavior.

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 Gridproof

Gridproof is an MCP server that connects an AI coding agent to a running frontend through Playwright. Its main tools, `gp_audit` and `gp_report`, measure computed element geometry, check spacing, gaps, sizes, and tap targets against configured rules, and return violations with fix hints or write an HTML report.

Install Chromium for Playwright, then register Gridproof with `claude mcp add gridproof -- npx -y gridproof`. A local checkout can be built with `npm install && npm run build`, after which Claude Code can run its `dist/index.js` file.

Run the frontend locally and call `gp_audit` with its URL from an MCP client. Gridproof renders the page headlessly, returns JSON violations and fix hints, and leaves source edits to the agent. For a manual check, use `npx gridproof --report http://localhost:5173`.

Yes, but non-Tailwind pages receive accessibility-focused canonical-size and tap-target checks only. The spacing-scale, arbitrary-value, and gap-consistency rules are skipped when Tailwind is not detected, and the report states that fallback.

No, Gridproof is intended for an agent loop rather than a CI merge gate. It does not edit source files, block builds, or provide failure exit-code semantics; the agent uses its findings to make changes and re-run the audit.

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 PreviewGridproof AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gridproof?style=directory)](https://allmcps.com/mcp/gridproof)
HTML Embed
<a href="https://allmcps.com/mcp/gridproof"><img src="https://allmcps.com/api/badge/gridproof?style=directory" alt="Gridproof on AllMCPs" /></a>