# Figma Ui MCP

> Figma Ui MCP is an open-source MCP server for design and media. Let an AI draw UI on the Figma canvas and read designs back as code-ready data. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows
- **Repository:** https://github.com/tranhoaihung/figma-ui-mcp
- **MCP Registry name:** io.github.TranHoaiHung/figma-ui-mcp
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

This bridge works in both directions. figma_write draws frames, shapes, text and prototypes from JavaScript-like code, and figma_read pulls out node trees, colours, typography and screenshots. It needs Figma Desktop and a plugin, and all traffic goes over a localhost HTTP link on port 38451 with long polling, so no Figma API key is needed and nothing leaves the machine.

Five tools are listed: figma_write, figma_read, figma_status, figma_docs and figma_rules, which assembles a markdown design-system sheet of tokens, type and components. The 2.5 line adds a design-context payload for code generation, a component map that suggests import paths, CSS extraction, resolved variable and style references, typography tokens, effects, gradients, prototyping reactions, variants and component properties.

Several Figma files can connect at once through sessions. Claude Code and Antigravity are tested, while Cursor, VS Code, Windsurf and Zed are described as compatible.

## Features

- **Draw on the canvas:** Create frames, shapes, text and prototypes from code.
- **Read designs back:** Extract nodes, colours, typography and screenshots.
- **Design context for code:** Token-resolved layout payload for React, Vue or Swift.
- **Rule sheet:** Aggregates tokens and components into markdown.
- **Local-only bridge:** Runs on localhost, no Figma API key.
- **Multiple files:** Sessions route actions to the right Figma file.

## Good for

- Generate a screen layout from a prompt
- Turn a Figma frame into component code
- Bootstrap typography tokens and styles
- Map design instances to code imports

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add figma-ui-mcp -- npx -y figma-ui-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add figma-ui-mcp -- npx -y figma-ui-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.figma-ui-mcp]
command = "npx"
args = ["-y", "figma-ui-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user figma-ui-mcp npx -- -y figma-ui-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "figma-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-ui-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 5 tools changes data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `figma_write` (name suggests: changes): Draws frames, shapes, text and prototypes.
- `figma_read` (name suggests: reads): Extracts node trees, colours, typography and screenshots.
- `figma_status` (name suggests: reads): Checks plugin connection and sessions.
- `figma_docs`: Returns the API reference and examples.
- `figma_rules`: Generates a design system rule sheet.

## FAQ

### Do I need a Figma API key?

No, it works over localhost.

### Does Figma Ui MCP work in the web app?

No, Figma Desktop is required.

### Which clients are tested?

Claude Code and Antigravity.

### Is Figma Ui MCP free?

Yes. Figma Ui MCP is open source, so you can use and self-host it for free.

### How do I add Figma Ui MCP to Claude Code?

Run this command in your terminal: claude mcp add figma-ui-mcp -- npx -y figma-ui-mcp

### What are the best alternatives to Figma Ui MCP?

The closest alternatives to Figma Ui MCP are REA, Codebase Memory, Serena MCP: the IDE for your agent, XERJ and HyperFrames by HeyGen.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/figma-ui-mcp
