One Shot UI logo

One Shot UI

Deterministic screenshot analysis, UI comparison, CSS fixes, and design-token extraction for coding agents.

Install One Shot UI

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

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 one-shot-ui

No response to 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 one-shot-ui MCP server gives AI coding agents local tools for extracting, comparing, and validating web UI screenshots. It connects reference images with local HTML files or URLs, using pixel and structural analysis to report layout, color, typography, spacing, and text differences. Its tools can generate ranked CSS fixes, reusable design tokens, implementation plans, and style-conformance results. Reach for it when visual fidelity, screenshot regression checks, or copying a design language needs deterministic, machine-readable feedback.

Use cases

  • Compare a web implementation with a reference screenshot
  • Generate ranked CSS fixes for visual differences
  • Extract design tokens from an existing interface
  • Check a new screen against a reference design language
  • Run multi-pass visual convergence for local HTML

Key features

  • Pixel and structural screenshot comparison
  • Ranked CSS and Tailwind fix suggestions
  • Design-token extraction with Shadcn, Tailwind, and JSON output
  • Browser capture for URLs and local HTML
  • Closed-loop convergence with fidelity scoring
  • Local stdio MCP operation without API keys

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.

20/23 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · one-shot-ui (npm)

Adoption & maintenance

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

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

How One Shot UI works

What one-shot-ui MCP server does

The one-shot-ui MCP server exposes deterministic UI inspection and comparison tools through MCP. It analyzes a reference screenshot, captures an implementation when needed, and reports differences in pixels and structure. Results can identify changes to position, dimensions, colors, shadows, spacing, typography, missing elements, and text visibility.

The server is intended for AI coding agents working on web interfaces. Instead of asking an agent to judge whether two screens look similar, it provides measured differences and concrete CSS-oriented corrections. It can also extract a reusable design language from a screenshot, including a palette, spacing scale, type ratio, radii, and elevation information. A separate style check can compare a different screen against that language.

How it works

The analysis flow begins with extract, which segments a reference image into layout regions, samples colors and design tokens, and uses OCR to identify text. Browser-dependent operations use Playwright to capture a URL or local HTML file at a matching viewport. compare then aligns the images and produces both a pixel heatmap and a structural diff, classifying issues such as layout, color, typography, and spacing.

suggest_fixes converts detected issues into ranked CSS or Tailwind changes. converge tests candidate changes in a live browser and keeps changes that reduce pixel mismatch, while also calculating structural fidelity and reporting hidden or clipped reference text. The run command chains extraction, capture, comparison, and fixing across multiple passes until a configured threshold is reached. All commands support JSON output for agent use.

Setup and configuration

Install the package globally with npm:

Terminal
npm install -g one-shot-ui

Browser-based tools such as capture, converge, and run require Chromium from Playwright:

Terminal
npx playwright install chromium

Start the one-shot-ui MCP server with stdio using:

Terminal
claude mcp add one-shot-ui -- npx -y one-shot-ui mcp

Alternatively, add an MCP server entry with npx as the command and -y one-shot-ui mcp as its arguments. The one-shot-ui MCP server runs locally over stdio, makes no network calls, and does not require API keys. It also includes an AGENTS.md file for agent discovery and a Claude Code skill.

Tools and capabilities

Available MCP tools include:

  • extract for layout, color, and text data from screenshots.
  • compare for pixel and structural differences.
  • suggest_fixes for ranked CSS or Tailwind corrections.
  • converge for verified CSS patches and structural fidelity checks.
  • tokens for reusable style systems emitted as Shadcn, Tailwind, or JSON.
  • style_check for checking a URL, HTML file, or screenshot against a reference style.
  • plan for generating an implementation strategy.

The command-line package also provides capture, run, and benchmark. JSON output is available across commands, making results suitable for agent workflows and CI checks.

Limitations and notes

Screenshot analysis cannot reliably determine every semantic design judgment. The tool reports measured facts rather than naming a color's role or classifying a design's mood. Roundedness and elevation are treated as advisories because raster images cannot always establish them precisely. Anti-aliasing and photographic content may be marked as irreducible differences, helping agents avoid chasing changes that cannot be fixed through CSS.

The server is local-only and requires a browser installation for commands that capture or iterate on live implementations. Its MCP interface is provided over stdio rather than a remote service.

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 One Shot UI

one-shot-ui is an MCP server that connects AI coding agents to local UI screenshots, HTML files, and browser captures. Its main tools include compare, converge, suggest_fixes, extract, tokens, plan, and style_check, providing structured visual diffs, CSS corrections, design tokens, and conformance checks without network calls.

Install it with npm using `npm install -g one-shot-ui`, then register it with `claude mcp add one-shot-ui -- npx -y one-shot-ui mcp`. Browser-based commands also require `npx playwright install chromium`.

Yes, one-shot-ui works with Cursor through its MCP configuration. Add a server entry that runs `npx` with `-y one-shot-ui mcp` as the arguments; the package also provides an AGENTS.md file for agent discovery.

The tools compare a reference screenshot with a captured implementation using pixel and structural analysis. They can report layout, size, position, color, shadow, spacing, typography, missing elements, and hidden or clipped text.

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