Skip to main content
Glama
README.md
<p align="center"><img src="icon.png" width="120" alt="FigCraft Bridge icon"></p>

<h1 align="center">FigCraft MCP Server</h1>

<p align="center">
  <b>English</b> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <a href="README.fr.md">Français</a> · <a href="README.de.md">Deutsch</a> · <a href="README.ru.md">Русский</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.ko.md">한국어</a>
</p>

<p align="center">
  Let Claude design interfaces with the <b>FigCraft</b> installed on your computer — <b>Windows, macOS and Linux</b>:<br>
  screens, web pages and components with auto layout, a design review with fixes, and PNG, JPG, SVG, PDF and WEBP of every frame.
</p>

---

## Why

[FigCraft](https://github.com/storytold/figcraft) is an open-source, Figma-class interface design tool with a headless CLI (`figcraft-cli`), every menu action as a command and an MCP mode. This [Model Context Protocol](https://modelcontextprotocol.io) server turns it into **file-in / file-out tools** for Claude, so you can ask things like:

> *"Design a mobile sign-in screen with a button component and export it as PNG and SVG."*
> *"Change the title of this design to 'Hola' and make the background cream."*
> *"Review this design and fix the spacing, radii and contrast issues."*
> *"Export every frame of this .fig file as PNG at 2x."*

Sibling of [designcraft-mcp-server](https://github.com/jhonsu01/designcraft-mcp-server), [effectcraft-mcp-server](https://github.com/jhonsu01/effectcraft-mcp-server), [lightcraft-mcp-server](https://github.com/jhonsu01/lightcraft-mcp-server), [photocraft-mcp-server](https://github.com/jhonsu01/photocraft-mcp-server), [vectorcraft-mcp-server](https://github.com/jhonsu01/vectorcraft-mcp-server), [filmcraft-mcp-server](https://github.com/jhonsu01/filmcraft-mcp-server), [pdfcraft-mcp-server](https://github.com/jhonsu01/pdfcraft-mcp-server), [wordcraft-mcp-server](https://github.com/jhonsu01/wordcraft-mcp-server), [soundcraft-mcp-server](https://github.com/jhonsu01/soundcraft-mcp-server), [deckcraft-mcp-server](https://github.com/jhonsu01/deckcraft-mcp-server), [gridcraft-mcp-server](https://github.com/jhonsu01/gridcraft-mcp-server), [anicraft-mcp-server](https://github.com/jhonsu01/anicraft-mcp-server), [texturecraft-mcp-server](https://github.com/jhonsu01/texturecraft-mcp-server), [materialcraft-mcp-server](https://github.com/jhonsu01/materialcraft-mcp-server), [solidcraft-mcp-server](https://github.com/jhonsu01/solidcraft-mcp-server), [mailcraft-mcp-server](https://github.com/jhonsu01/mailcraft-mcp-server) and [audacity-mcp-server](https://github.com/jhonsu01/audacity-mcp-server).

## Platforms

| OS | FigCraft package to install | Where the server finds it (no setup needed) | Status |
| --- | --- | --- | --- |
| **Windows** 10/11 (x64, x86, arm64) | MSI or portable zip | `C:\Program Files\FigCraft`, `C:\Program Files\ArtCraft\FigCraft`, `%LOCALAPPDATA%\Programs\FigCraft`, `PATH` | ✅ Verified (Windows 11) |
| **Linux** (x86_64, aarch64, riscv64) | `.deb`, `.rpm` or `.tar.gz` | `/usr/bin`, `/usr/local/bin`, `/opt/figcraft/bin`, `~/.local/bin`, `PATH` | ✅ Verified (Debian 12, headless) |
| **macOS** 11+ (Apple silicon and Intel) | `.dmg` (the app) **plus** `figcraft-cli-<version>-macos-universal.zip` | `/Applications/FigCraft.app`, `/usr/local/bin`, `/opt/homebrew/bin`, `~/.local/bin`, `~/bin`, `PATH` | 🟡 Supported, not yet tested on a Mac |

All downloads: [FigCraft releases](https://github.com/storytold/figcraft/releases) (there is also a FreeBSD tar.gz; set `FIGCRAFT_DIR` to it). Anywhere else: set `FIGCRAFT_DIR` (folder, `.tar.gz` root or `FigCraft.app`) or `FIGCRAFT_CLI`.

- **macOS:** the DMG contains only the app. Unzip the separate `figcraft-cli` zip and move `figcraft-cli` to `/usr/local/bin` (or point `FIGCRAFT_CLI` at it). The first run checks Apple's notarization online.
- **Linux:** the AppImage and Flatpak contain only the app, not `figcraft-cli`; use the deb, rpm or tar.gz. For an AppImage app, set `FIGCRAFT_APP` so `open_in_figcraft` can start it. On a server without a GPU, the verified setup used `libxkbcommon0 libvulkan1 libegl1 mesa-vulkan-drivers libasound2 fontconfig`.

## How it works

| Part | What it is |
| --- | --- |
| **FigCraft engine** (`figcraft-cli mcp --headless`) | FigCraft's own layout, text and rendering engine: layers, auto layout, components and instances, the design review and the PNG / SVG / PDF exporters. Started fresh for each job, confined to a private temporary folder, and never touches the FigCraft app. |
| **MCP server** (Node.js) | 10 high-level tools. Builds a design from a tree of layers, places component copies with their own text, saves one file per top-level frame, reviews the result and returns a picture of the page. |

## Tools

| Tool | What it does |
| --- | --- |
| `create_design` | A design from a tree of layers: frames with auto layout, text, shapes, vectors, components and copies of them with their own text; saved as .figcraft and PNG / JPG / SVG / PDF / WEBP per frame, with the review score |
| `edit_design` | Change a design by layer name: properties, texts, find and replace, new layers or component copies, delete or rename; saved as a copy |
| `export_design` | Designs (also .fig, .sketch, .penpot, .svg) → PNG, JPG, SVG, PDF, WEBP per frame, or editable .figcraft |
| `review_design` | Spacing, radii, type, colour, contrast and naming findings with a score out of 100; optional automatic fixes |
| `get_design_info` | Pages, frames, the layer tree, components with their copies, styles, variables and fonts |
| `render_design` | Pictures of a page or of given frames |
| `list_figcraft_catalog` | Engine commands, layer types, properties and formats |
| `run_figcraft_commands` | Any engine command plus `create_node`, `set_properties`, `export`, `screenshot`... in one session (`$steps[N].field` references), then save |
| `open_in_figcraft` | Open designs in the FigCraft app |
| `get_figcraft_status` | Platform, installation, version and commands |

| | |
| --- | --- |
| **Reads** | .figcraft, FigCraft / REST JSON, .fig, .sketch, .penpot (best effort), .svg, pictures |
| **Writes** | .figcraft, PNG, JPG, SVG, PDF, WEBP |

Coordinates are design units (1 unit = 1 px at 100 %), x right and y down, relative to the parent frame. Colours are `"#RRGGBB"`.

## Example

```json
{
  "name": "Sign in",
  "nodes": [
    { "type": "component", "name": "Button", "x": 480, "width": 200, "height": 48,
      "props": { "fills": ["#4F46E5"], "cornerRadius": 12, "layout": "horizontal", "mainAlign": "center", "crossAlign": "center" },
      "children": [{ "type": "text", "name": "Label", "text": "Button", "props": { "fontSize": 16, "fontWeight": 600, "fills": ["#FFFFFF"] } }] },
    { "type": "frame", "name": "Login", "width": 390, "height": 844,
      "props": { "fills": ["#FFFFFF"], "layout": "vertical", "gap": 16, "padding": 32 },
      "children": [
        { "type": "text", "name": "Title", "text": "Welcome back", "props": { "fontSize": 32, "fontWeight": 600 } },
        { "type": "rectangle", "name": "Email", "height": 48, "props": { "fills": ["#F3F4F6"], "cornerRadius": 12, "sizingH": "fill" } }
      ] }
  ],
  "instances": [{ "component": "Button", "parent": "Login", "text": { "Label": "Sign in" }, "props": { "sizingH": "fill" } }],
  "formats": ["figcraft", "png", "svg"],
  "output_dir": "C:\\Designs"
}
```

## Requirements

- **FigCraft** with `figcraft-cli` (tested with **0.19.0**); see [Platforms](#platforms)
- Node.js ≥ 20 (bundled with Claude Desktop for `.mcpb` installs)

## Installation

### Claude Desktop (recommended, all platforms)

1. Download `figcraft-mcp-server.mcpb` from the [latest release](https://github.com/jhonsu01/figcraft-mcp-server/releases/latest).
2. Double-click it (or drag it into Claude Desktop → *Settings → Extensions*) and click **Install**.
3. Optional: if FigCraft is not in a standard location, fill in its folder or the `figcraft-cli` path in the extension settings.

### Claude Code and Cowork (plugin)

Add the marketplace `jhonsu01/sunsam-plugins` (in Claude Code: `/plugin marketplace add jhonsu01/sunsam-plugins`; in the Claude app: *Plugins → Add → Add marketplace*) and install **figcraft-bridge**.

### Sunsam Code

Install **FigCraft Bridge** from the [Sunsam Code marketplace](https://github.com/jhonsu01/marketplace-SunsamCode), or drop the `.mcpb` into *MCP → Install extension*.

### Codex (OpenAI)

**Recommended — the marketplace (gets updates):** *Plugins → Add → Add marketplace*, source `jhonsu01/craft-marketplace`, reference `main`, then install **FigCraft Bridge** from **Craft Bridges** ([craft-marketplace](https://github.com/jhonsu01/craft-marketplace)). New versions arrive by refreshing the marketplace. Or upload the zip (Codex then keeps it in your account and refuses a newer zip with the same name):

1. Download `figcraft-mcp-server-<version>-codex.zip` from the [latest release](https://github.com/jhonsu01/figcraft-mcp-server/releases/latest).
2. In Codex: *Plugins → Add → New plugin*, choose the zip and click **Add plugin**.
3. Codex starts the server with `node`, so Node.js ≥ 20 must be on `PATH`. If FigCraft is not in a standard location, set `FIGCRAFT_DIR` or `FIGCRAFT_CLI` as system environment variables (Codex has no settings form for local plugins).

### DeepSeek Harness

1. *Plugins → Add plugin*, enter `github:jhonsu01/craft-marketplace#path:/plugins/figcraft-mcp-server` and click **Install**, then **Enable now**.
2. Harness runs the server with its own MCP client and `node` (Node.js ≥ 20 on `PATH`); the tools appear as `mcp__figcraft__<tool>` and the output files as cards that open in Harness.
3. Harness does not update plugins by itself yet: to upgrade, uninstall the plugin and install it again with the same address.

### Claude Code / other MCP clients

```bash
git clone https://github.com/jhonsu01/figcraft-mcp-server.git
cd figcraft-mcp-server
npm install
npm run build
```

Windows:

```bash
claude mcp add figcraft -- node "%CD%\dist\bundle.cjs"
```

macOS / Linux:

```bash
claude mcp add figcraft -- node "$PWD/dist/bundle.cjs"
```

## Configuration

| Variable | Meaning |
| --- | --- |
| `FIGCRAFT_DIR` | FigCraft folder, one of its executables, a `.tar.gz` root (with `bin/`) or `FigCraft.app`. Default: auto-detect |
| `FIGCRAFT_CLI` | Path of `figcraft-cli` / `figcraft-cli.exe` (wins over `FIGCRAFT_DIR`) |
| `FIGCRAFT_APP` | Path of the desktop app when it lives elsewhere (e.g. a Linux AppImage) |
| `FIGCRAFT_MCP_TIMEOUT` | Maximum seconds per engine call (default 3600) |

## Safety

- Files are **never overwritten** unless `overwrite: true`: a free name (`_2`) is used in folders and an existing `output_path` is an error. Inputs are only read; an edited file is saved only as a new copy (`_edited`).
- All paths must be absolute. The engine runs headless, confined to a private temporary folder for each job (the inputs are copied in, the outputs moved out), and never touches the FigCraft app.
- Everything runs locally with no network access. Each job uses a private engine in a temporary folder that is deleted at the end.

## Development

```bash
npm run build       # TypeScript + single-file bundle (dist/bundle.cjs)
npm test            # unit tests (Windows, macOS and Linux path logic)
npm run test:e2e    # 23 end-to-end checks over real MCP stdio (synthetic designs)
npm run pack:mcpb   # figcraft-mcp-server.mcpb
npm run pack:codex  # Codex / DeepSeek Harness plugin zip
```

Linux test in Docker (unpack `figcraft-<version>-linux-x86_64.tar.gz` first):

```bash
docker run --rm -v "$PWD:/work:ro" -v "/path/to/figcraft-0.19.0-linux-x86_64:/opt/figcraft:ro" -e FIGCRAFT_DIR=/opt/figcraft -w /work node:22-bookworm bash -c "apt-get update && apt-get install -y libxkbcommon0 libvulkan1 libegl1 mesa-vulkan-drivers libasound2 fontconfig && node scripts/e2e.mjs"
```

## License

Apache-2.0. FigCraft is © its authors (Storytold), MIT or Apache-2.0.
This project is not affiliated with or endorsed by FigCraft or Storytold. Figma is a trademark of Figma, Inc.

TDQS

A3.7/5.0

Scored across 10 tools

Disambiguation3/5

Core editing tools are distinguishable, but there is meaningful overlap: create_design and edit_design both save exports and run reviews, review_design with fix=true edits files, render_design and export_design both produce images, and run_figcraft_commands is a superset covering nearly every other tool. An agent could reasonably pick the wrong entry point for 'produce an image' or 'fix the design'.

Naming Consistency4/5

Almost all tools follow a verb_noun pattern (create_design, edit_design, export_design, review_design, render_design), with get_* and list_* used for read-only operations. Minor deviations: nouns sometimes carry the figcraft prefix (run_figcraft_commands, list_figcraft_catalog) and get_design_info adds a suffix, but overall predictable.

Tool Count5/5

Ten tools is well within the sweet spot and each maps to a distinct phase of the design workflow (create, edit, review, export, render, inspect, operate). The advanced escape hatch is contained in a single tool rather than exploding the surface.

Completeness5/5

The surface covers the full lifecycle: cataloging capabilities, creating, editing, reviewing/fixing, exporting/converting, inspecting, rendering, opening in the desktop app, and arbitrary command execution for gaps. No obvious dead ends for a Figma-class design server.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues