# OpenFigma MCP

> OpenFigma MCP is an open-source MCP server for design and media. MCP server and Figma plugin that let AI agents read and edit Figma files. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux, VS Code
- **Repository:** https://github.com/mishafyi/openfigma-mcp
- **MCP Registry name:** io.github.mishafyi/openfigma-mcp
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-01

## About

Connects an AI agent to Figma and FigJam files through a plugin that runs in the Figma desktop app. Once a file is open and the plugin is running, an MCP client such as Claude Code or Cursor can inspect pages, layers, components, variables and text, and make changes to them.

Each agent session is linked to one file by its file key, so several sessions can work in different files at once without a separate relay process to start. The server exposes a large set of tools covering creation, styling, auto layout, component overrides, annotations, prototype connectors and image export.

It suits designers and developers who want an agent to read a Figma design while building the matching app screens, or who want help with repetitive edits such as bulk text changes, variant swaps and documentation links across a design system.

## Features

- **Per-file sessions:** Each agent session connects to one chosen Figma file, and commands and results stay within that file.
- **Design reading:** Reads nodes with their component, style, variable and auto layout details as structured data.
- **Component editing:** Lists component sets, reads and sets instance properties, and copies overrides between instances.
- **Bulk text updates:** Scans text layers in a node and replaces their content, several at a time.
- **Shapes and styling:** Creates frames, shapes and SVG vectors, and sets fills, gradients, strokes, effects and corner radii.
- **Image export:** Exports nodes as PNG, JPG, SVG or PDF into the conversation or to a file on disk.

## Good for

- Building app screens from a Figma design with the agent reading the file directly
- Replacing placeholder copy across many text layers in a screen
- Switching or aligning component variants across a page
- Turning prototype reactions into connector lines
- Exporting frames or slices as image assets

## Install

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

```sh
claude mcp add openfigma-mcp -- npx -y @mishafyi/openfigma-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": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "openfigma-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-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 openfigma-mcp -- npx -y @mishafyi/openfigma-mcp
```

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

```toml
[mcp_servers.openfigma-mcp]
command = "npx"
args = ["-y", "@mishafyi/openfigma-mcp"]
```

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

```json
{
  "mcpServers": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user openfigma-mcp npx -- -y @mishafyi/openfigma-mcp

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

```json
{
  "mcpServers": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-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": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-mcp"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-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": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-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": {
    "openfigma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mishafyi/openfigma-mcp"
      ]
    }
  }
}
```

## FAQ

### Do I need to run a separate relay server?

No. Each MCP server listens for the Figma plugin itself on a free port, so no WebSocket relay has to be started by hand.

### Which Figma app does the plugin run in?

The plugin runs in the Figma desktop app, and is imported from the repository's manifest file.

### How do I connect an agent to a file?

The agent calls join_channel with the file key, the ID found after /design/ in the file's URL.

### What license is OpenFigma MCP under?

It is released under the MIT License.

### Is OpenFigma MCP free?

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

### How do I add OpenFigma MCP to Claude Code?

Run this command in your terminal: claude mcp add openfigma-mcp -- npx -y @mishafyi/openfigma-mcp

### What are the best alternatives to OpenFigma MCP?

The closest alternatives to OpenFigma MCP are cursor-talk-to-figma-mcp, Figma Edit MCP, Figma Context MCP, Figma MCP Server and Figma Context MCP.

## Where this comes from

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

## Alternatives

- [cursor-talk-to-figma-mcp](https://ai-powered.com/mcp/cursor-talk-to-figma-mcp): cursor-talk-to-figma-mcp is an open-source MCP server for design and media.
- [Figma Edit MCP](https://ai-powered.com/mcp/figma-edit-mcp): Figma Edit MCP is an open-source MCP server for design and media.
- [Figma Context MCP](https://ai-powered.com/mcp/figma-context-mcp): Figma Context MCP is an open-source MCP server for design and media.
- [Figma MCP Server](https://ai-powered.com/mcp/figma-mcp-server-2): Figma MCP Server is an open-source MCP server for design and media.
- [Figma Context MCP](https://ai-powered.com/mcp/figma-context-mcp-2): Figma Context MCP is an open-source MCP server for design and media.
- [Figma MCP Rust](https://ai-powered.com/mcp/figma-mcp-rust): Figma MCP Rust is an open-source MCP server for design and media.
- [Figma MCP Express](https://ai-powered.com/mcp/figma-mcp-express): Figma MCP Express is an open-source MCP server for design and media.
- [figwright](https://ai-powered.com/mcp/figwright): figwright is an open-source MCP server for design and media.

---
Source: https://ai-powered.com/mcp/openfigma-mcp
