# asdesigned [Health: Active]

**Category:** 📐 Architecture & Design  
**Repository:** https://github.com/Maher-Reven/asdesigned  
**GitHub Stars:** 0  
**npm Downloads (last month):** 178  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/asdesigned

## Description
Diff a rendered UI element against its Figma source and get every drifted property with its delta.

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

```json
"mcpServers": {
  "asdesigned": {
    "command": "npx",
    "args": ["-y","asdesigned"],
    "env": {
      "FIGMA_TOKEN": "",
      "ASDESIGNED_BROWSER": ""
    }
  }
}
```

**Requires environment variables:** `FIGMA_TOKEN`, `ASDESIGNED_BROWSER` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What asdesigned MCP server does

The asdesigned MCP server connects Figma designs with a running web page so an agent can check whether an implemented element matches its source design. It compares one Figma node with one rendered DOM element at a selected viewport and reports each differing property with the design value, rendered value, and delta.

The comparison covers computed style values such as dimensions, padding, colors, font family, and font weight. It can also evaluate interaction states when the Figma component set defines matching variants. Supported requested states include default, hover, focus, active, and disabled. A state without a corresponding design variant is skipped instead of treated as a failure.

## How it works

Figma data is read through the Figma REST API, while the rendered page is opened with Playwright. Both inputs are converted into a common style representation containing optional fields, pixel values, and RGBA colors. The comparison applies tolerances including approximately ±1px for dimensions, a small color-distance threshold, and exact comparison for font weight.

The MCP interface exposes three tools:

- `compare_design` compares a Figma URL with a rendered page and selector, optionally across requested states.
- `inspect_element` reads computed styles from a page element, with an optional single state.
- `inspect_figma` reads a Figma node and can list the variants available in its component set.

The asdesigned MCP server can therefore be used by an agent during implementation, while the command-line interface can produce terminal, JSON, or self-contained HTML output. A comparison exits with code 1 when actual drift is found, allowing the CLI form to participate in CI checks.

## Setup and configuration

Install without a global package using `npx asdesigned`, or install the command globally with npm. Playwright Chromium must also be installed once with `npx playwright install chromium`.

Set `FIGMA_TOKEN` to a Figma personal access token with permission to read file content. The value can be provided in the environment or a `.env` file. `ASDESIGNED_BROWSER` may point to an existing Chrome or Chromium executable instead of using Playwright's downloaded browser.

For Claude Code or Cursor, configure an MCP server that runs `npx -y asdesigned asdesigned-mcp` and passes `FIGMA_TOKEN` in its environment. The repository also provides a skill file describing when an agent should use the tool.

## Tools and capabilities

Use a Figma URL, local page URL, and CSS selector as the core inputs. State comparisons can request named states or all supported states. For Figma components, variant matching recognizes common labels such as Default, Hover, Focused, Pressed, Rest, and Inactive, and can follow a component set from an individual variant.

The rendered side forces relevant pseudo-classes before reading computed styles, including both `:focus` and `:focus-visible`. Reports distinguish matching properties from drifted properties and identify skipped states. JSON output is available for scripts, and HTML output provides a standalone report.

## Limitations and notes

The asdesigned MCP server checks one node and one rendered element at one viewport per run. Responsive validation requires separate runs for each designed breakpoint; it does not infer design truth between frames or sweep breakpoints automatically.

It compares computed styles, not layout relationships between siblings, content, behavior, transition duration, or easing. State checking depends on Figma component variants. If a hover or focus appearance exists only as a prototype interaction, there is no design variant to compare and the state is skipped. If every requested state lacks a design, the run reports that nothing was compared and exits non-zero.

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

