# Gridproof [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/gridproof/gridproof  
**GitHub Stars:** 4  
**npm Downloads (last month):** 286  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gridproof

## Description
Gridproof your UI — automated spacing & grid QA in the agent loop (MCP server).

## Tools
Capabilities this server exposes over MCP:

- **gp_audit** — Render a running frontend and audit its spacing/grid geometry against the spacing-scale and arbitrary-value rules. Returns a structured AuditReport (violations with fix hints) plus a text summary.
- **gp_check_element** — Re-check a single element's subtree after a fix, without re-running the full audit. Returns the violations found under that selector.
- **gp_get_config** — Return the effective Gridproof configuration (defaults merged with gridproof.config.json if present): baseUnit, allowedValues, canonicalSizes, minTapTarget, rule severities, suppressions.
- **gp_report** — Render a URL, audit its spacing/grid geometry, and WRITE a self-contained HTML report to disk (default ./gridproof-report.html). Returns the file path plus the same AuditReport JSON as gp_audit.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gridproof": {
    "command": "npx",
    "args": ["-y","gridproof"]
  }
}
```

## Documentation

## 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:

```bash
npx playwright install chromium
```

Claude Code can register the published package with:

```bash
claude mcp add gridproof -- npx -y gridproof
```

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

```bash
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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/gridproof/readme_

