UI Design to Code logo

UI Design to Code

Builds traceable UI design-to-code artifacts from screenshots, Figma data, and visual review evidence.

Install UI Design to Code

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": {
    "ui-design-to-code": {
      "command": "npx",
      "args": [
        "-y",
        "ui-design-to-code-mcp@latest"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y ui-design-to-code-mcp@latest

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

UI Design to Code MCP server organizes screenshots, image sources, and Figma node data into traceable design-to-code artifacts. It creates isolated runs, records intermediate UI representations, prepares platform-specific layout data, and validates links between pipeline outputs. Use it when implementation requires source traceability, cross-platform planning, asset extraction, or visual review rather than a one-shot screenshot-to-code response.

Use cases

  • Decode UI screenshots into traceable design artifacts
  • Ingest Figma nodes and screenshots for cross-platform planning
  • Extract bitmap and icon assets from source images
  • Record code generation with visual review evidence
  • Validate artifact links before implementation delivery

Key features

  • Screenshot, image, and Figma source ingestion
  • Traceable semantic and cross-platform UI artifacts
  • Target layout planning for web, iOS, and Android
  • Source-bounding-box asset cropping
  • Pipeline validation and image-decoding audits
  • Codegen records with optional visual review

Tools14

What UI Design to Code lets your agent do. Expand a tool for its parameters.

Self-reported~428 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.

16/18 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 · ui-design-to-code-mcp@latest (npm)

Adoption & maintenance

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

npm downloads531Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed14Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How UI Design to Code works

What UI Design to Code does

The UI Design to Code MCP server structures a design-decoding workflow around an isolated run directory. It accepts screenshots, other source images, Figma node JSON, or a combination of Figma data and screenshots. Each run receives an artifact-run-manifest.json that records its files, retention rules, and cleanup boundary.

The pipeline can preserve relationships between source pixels, visual analysis, semantic nodes, cross-platform data, target layout plans, implementation records, and review evidence. It is intended for agents that need an auditable sequence of artifacts instead of generating final code directly from a single image. The host agent or model remains responsible for producing the intermediate IR content and writing or modifying application code.

How it works

A typical UI Design to Code workflow starts with get_run_modes, which reports available modes and target platforms. After a mode is selected, create_design_run creates the run directory. ingest_image_source registers image input, while ingest_figma_source handles supplied Figma node JSON or can retrieve Figma data through a URL, file key, or node ID when a token is available.

For image-based work, build_reference_analysis records image dimensions, top-level groups, text and media regions, navigation, high-risk areas, and the planned audit. Later tools register semantic UI data, cross-platform node data, and a target-platform layout IR. Supported target examples include Web React, Web Next, iOS UIKit, iOS SwiftUI, Android Compose, and Android View.

The workflow can run in decode-only, plan-only, target-IR, codegen, codegen-with-auto-review, or runtime-review modes. run_codegen records implementation and validation results, while run_codegen_with_auto_review also records visual review evidence. validate_pipeline checks required artifacts and traceability links, and cleanup_design_run supports dry-run cleanup.

Tools and capabilities

The UI Design to Code MCP server exposes tools for:

  • Discovering modes, platforms, and trigger examples.
  • Registering screenshots, source images, Figma nodes, and hybrid inputs.
  • Cropping bitmap or icon assets from source_bbox entries in a layer manifest.
  • Recording reference analysis, semantic UI IR, cross-platform node data, and target layout IR.
  • Auditing image-decoding artifacts, including source dimensions, bounds, text metrics, media coverage, and traceability.
  • Recording code-generation results and optional visual review evidence.
  • Validating the artifact chain and previewing cleanup operations.

Installers and setup commands are documented for Codex and Cursor, and the README identifies Claude Code as a supported client. Figma workflows require a configured token when the server must retrieve data from Figma directly. The material does not specify a standalone environment-variable name for that token.

Limitations and notes

This tool does not replace the coding agent or model. It registers, validates, and tracks artifacts, but the calling agent or model generates Vision IR, compression data, semantic IR, and actual implementation code. Automatic review and runtime review also depend on a host project with a runnable command, screenshot entry point, and a way to locate the target page.

It is not intended for ordinary frontend tasks without a design source, or for installation and diagnostic questions that do not include a design-to-code request. Structural validation is the documented focus of validate_pipeline; the material does not claim complete JSON Schema validation or fully automatic visual-to-code conversion.

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 UI Design to Code

UI Design to Code is an MCP server that connects UI screenshots, source images, and Figma node data to a traceable design-to-code artifact pipeline. Its main tools register sources, create runs, build semantic and target layout artifacts, record code generation, audit image decoding, validate traceability, and capture visual review evidence.

Install it with the documented npm installer, such as `npx -y ui-design-to-code-mcp@latest install --client codex` for Codex. The README also provides project-scope installation commands for Cursor, installation across Cursor, Claude Code, and Codex, and direct `serve` and `doctor` commands.

Yes, UI Design to Code supports Cursor.

Yes, it can retrieve Figma data directly when given a Figma URL, file key, or node ID and a configured token. `ingest_figma_source` can also accept externally obtained Figma node JSON, with an optional screenshot or both node data and screenshot.

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 PreviewUI Design to Code AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ui-design-to-code?style=directory)](https://allmcps.com/mcp/ui-design-to-code)
HTML Embed
<a href="https://allmcps.com/mcp/ui-design-to-code"><img src="https://allmcps.com/api/badge/ui-design-to-code?style=directory" alt="UI Design to Code on AllMCPs" /></a>