Skip to main content
Glama
Figma MCP Connect

Figma MCP Connect

by Sangwonee

Figma MCP Connect

Figma MCP Connect는 Cursor, Claude Code, Codex 같은 MCP 클라이언트가 Figma 문서를 읽고 수정하도록 연결하는 로컬 Node.js 브리지입니다.

MCP 클라이언트
    ↕ stdio
MCP 서버 (Node.js, 로컬 릴레이 자동 시작/재사용)
    ↕ WebSocket (127.0.0.1:3055)
Figma 개발 플러그인

MCP 서버가 로컬 WebSocket 릴레이를 직접 관리합니다. Figma 플러그인도 실행 시 자동으로 릴레이와 채널에 연결되며, 열린 플러그인이 하나라면 MCP 서버가 그 채널을 자동 선택합니다. 평소에는 npm run socket이나 join_channel을 직접 실행할 필요가 없습니다.

IMPORTANT

figma-mcp-connect npm 패키지는 아직 배포되지 않았습니다. 현재는 npm run setup으로 이 저장소를 로컬 빌드하고, 생성된 dist/server.js를 MCP 클라이언트에서 실행하세요.

요구 사항

  • Node.js 18 이상

  • npm과 Git

  • Figma 데스크톱 앱

  • MCP를 지원하는 클라이언트(Cursor, Claude Code, Codex 등)

node --version
npm --version
git --version

Related MCP server: Local Figma MCP Server

처음 한 번만 설정

1. 설치, 빌드, MCP 등록

git clone https://github.com/Sangwonee/figma-mcp-connect.git
cd figma-mcp-connect
npm run setup

npm run setup은 다음 작업을 한 번에 수행합니다.

  • npm ci로 의존성 설치

  • dist/server.js와 dist/socket.js 빌드

  • 현재 저장소의 dist/server.js 절대 경로를 .cursor/mcp.json과 .mcp.json에 기록

생성되는 설정은 공개 npm 패키지가 아니라 로컬 Node.js 빌드를 가리킵니다.

{
  "mcpServers": {
    "FigmaMCPConnect": {
      "command": "node",
      "args": [
        "/absolute/path/to/figma-mcp-connect/dist/server.js"
      ]
    }
  }
}

Cursor는 프로젝트의 .cursor/mcp.json, Claude Code는 프로젝트 루트의 .mcp.json을 사용합니다. 다른 MCP 클라이언트에서는 같은 command와 절대 경로를 해당 클라이언트 설정에 등록하세요. 설정 후 MCP 클라이언트를 다시 시작하거나 MCP 서버 목록을 새로고침합니다.

2. Figma 개발 플러그인 등록

  1. Figma에서 작업할 파일을 엽니다.

  2. Plugins → Development → New Plugin으로 이동합니다.

  3. Link existing plugin 또는 Import plugin from manifest를 선택합니다.

  4. 이 저장소의 src/cursor_mcp_plugin/manifest.json을 선택합니다.

  5. 개발 플러그인 목록에 Figma MCP Connect가 나타나는지 확인합니다.

플러그인은 별도 번들 없이 code.js와 ui.html을 직접 사용합니다.

평소 사용법

초기 설정을 마친 뒤에는 다음 순서만 따르면 됩니다.

  1. 설정한 프로젝트를 Cursor, Claude Code 또는 다른 MCP 클라이언트에서 엽니다.

  2. 작업할 Figma 파일에서 개발 플러그인 Figma MCP Connect를 실행합니다.

  3. 플러그인이 자동으로 127.0.0.1:3055 릴레이에 연결될 때까지 잠시 기다립니다.

  4. MCP 클라이언트에 Figma 작업을 자연어로 요청합니다.

현재 Figma 문서 구조를 확인해줘.
현재 선택한 프레임을 분석해줘.
선택한 텍스트를 "여행 일정"으로 바꿔줘.
선택한 노드 이름을 Hero Section으로 변경해줘.

MCP 서버가 시작될 때 로컬 릴레이가 없으면 내장 릴레이를 자동으로 시작하고, 이미 정상 릴레이가 실행 중이면 재사용합니다. 플러그인은 자동으로 임의 채널에 참가합니다. 연결된 Figma 플러그인이 하나라면 MCP 서버도 그 채널에 자동 참가하므로 수동 채널 입력이 필요 없습니다.

MCP 서버는 MCP 클라이언트가 관리하므로 별도 터미널에서 npm start를 실행하지 않습니다. Figma 플러그인 창은 작업 중 열어 두세요.

여러 Figma 플러그인을 동시에 열 때

두 개 이상의 Figma 파일에서 플러그인을 열면 MCP 서버가 어느 파일을 사용할지 임의로 고르지 않습니다. 각 플러그인 화면에 표시된 채널 중 원하는 채널을 join_channel로 선택하세요.

Figma MCP Connect의 join_channel 도구로 a1b2c3d4 채널에 연결해줘.
연결되면 get_document_info로 문서 구조를 확인해줘.

플러그인 실행 중 자동 재연결될 때는 채널이 유지됩니다. 플러그인을 완전히 닫았다가 새로 실행하면 채널이 바뀔 수 있으므로, 여러 플러그인을 사용하는 중이라면 최신 채널 이름으로 join_channel을 호출하세요.

수동 릴레이 실행과 진단

일반 사용에는 필요하지 않지만, 연결 문제를 진단하거나 릴레이를 독립 프로세스로 유지하려면 저장소 루트에서 실행합니다.

npm run socket

MCP 서버는 127.0.0.1:3055의 상태를 확인한 뒤 이 릴레이가 Figma MCP Connect 릴레이라면 자동으로 재사용합니다. 정상 상태는 다음 명령으로 확인할 수 있습니다.

curl http://127.0.0.1:3055/health

수동 릴레이를 종료하려면 해당 터미널에서 Ctrl+C를 누릅니다. 현재 Figma 플러그인 manifest와 기본 MCP 연결은 포트 3055를 기준으로 하므로 특별한 이유가 없으면 포트를 바꾸지 마세요.

권장 작업 순서

Figma 문서를 안전하게 다루려면 다음 순서를 권장합니다.

  1. get_document_info로 현재 문서 구조를 확인합니다.

  2. get_selection 또는 read_my_design으로 선택 영역을 읽습니다.

  3. 필요한 생성·수정 도구를 실행합니다.

  4. get_node_info 또는 이미지 내보내기로 결과를 확인합니다.

여러 노드를 변경할 때는 단일 도구를 반복하기보다 set_multiple_text_contents, delete_multiple_nodes, set_multiple_annotations 같은 일괄 처리 도구를 우선 사용하세요.

주요 MCP 도구

범주

주요 도구

용도

연결

join_channel

여러 플러그인 중 사용할 채널을 수동 선택

문서·선택

get_document_info, get_selection, read_my_design, get_node_info, get_nodes_info

문서와 노드 구조 조회

선택·포커스

set_focus, set_selections

캔버스에서 노드 선택 및 화면 이동

요소 생성

create_frame, create_rectangle, create_section, create_text

프레임, 도형, 섹션, 텍스트 생성

텍스트

scan_text_nodes, set_text_content, set_multiple_text_contents

텍스트 검색 및 일괄 변경

오토 레이아웃

set_layout_mode, set_padding, set_axis_align, set_layout_sizing, set_item_spacing

방향, 정렬, 크기, 간격 설정

스타일

set_fill_color, set_stroke_color, set_corner_radius, set_image_fill

색상, 테두리, 모서리, 이미지 채우기 설정

배치·구조

move_node, resize_node, clone_node, rename_node, set_parent

위치·크기·이름·부모 관계 변경

삭제

delete_node, delete_multiple_nodes

노드 단일 또는 일괄 삭제

컴포넌트

get_local_components, create_component_instance, get_instance_overrides, set_instance_overrides

컴포넌트 인스턴스와 오버라이드 관리

주석

get_annotations, set_annotation, set_multiple_annotations, scan_nodes_by_types

Figma 네이티브 주석 조회 및 생성

프로토타입·FigJam

get_reactions, set_default_connector, create_connections

프로토타입 흐름을 조회하고 커넥터 생성

내보내기

export_node_as_image

노드를 PNG, JPG, SVG 또는 PDF로 내보내기

프로젝트 구조

figma-mcp-connect/
├── src/
│   ├── talk_to_figma_mcp/server.ts  # stdio MCP 서버와 자동 연결 관리
│   ├── relay.ts                     # 내장/재사용 가능한 릴레이 구현
│   ├── socket.ts                    # 수동 릴레이 실행 진입점
│   └── cursor_mcp_plugin/
│       ├── manifest.json
│       ├── code.js
│       └── ui.html
├── scripts/setup.sh
├── package.json
└── tsup.config.ts

개발과 검증

npm ci
npm run build
npm run dev       # 감시 빌드
npm start         # stdio MCP 서버 직접 실행(개발/진단용)
npm run socket    # 독립 릴레이 실행(진단용)

내장 릴레이의 자동 시작, 단일 채널 자동 참가, 다중 MCP 프로세스의 릴레이 인계를 확인하는 통합 테스트가 있습니다. 별도 린터는 구성되어 있지 않습니다.

npm test
npx tsc --noEmit
node --check dist/server.js
node --check dist/socket.js

문제 해결

플러그인이 연결되지 않음

  • MCP 클라이언트에서 FigmaMCPConnect 서버가 실행 중인지 확인하고 새로고침합니다.

  • 잠시 기다린 뒤 Figma 플러그인을 닫았다가 다시 실행합니다.

  • 포트 3055를 다른 프로그램이 사용 중인지 확인합니다.

  • 진단용으로 npm run socket을 실행한 뒤 플러그인을 다시 엽니다.

No Figma plugin is connected 오류

작업할 Figma 파일에서 Figma MCP Connect 플러그인을 열고 연결 표시를 확인한 뒤 요청을 다시 실행하세요.

여러 플러그인이 연결되었다는 오류

플러그인 화면에서 원하는 채널 이름을 확인하고 join_channel로 선택하세요. 하나만 사용할 예정이라면 다른 Figma 플러그인 창을 닫아도 됩니다.

소스 변경이 반영되지 않음

npm run build

빌드 후 MCP 클라이언트의 서버를 다시 시작하고 Figma 플러그인도 다시 실행하세요.

포트 3055가 다른 서비스에서 사용 중임

MCP 서버는 기존 프로세스가 호환되는 Figma MCP Connect 릴레이일 때만 재사용합니다. 다른 서비스가 포트 3055를 사용하고 있다면 해당 프로세스를 종료한 뒤 MCP 서버를 다시 시작하세요.

개인정보 관련 안내

Figma 플러그인은 플러그인 실행, 채널 연결, 명령 이름, 성공/실패, 실행 시간에 관한 익명 사용 통계를 Google Analytics로 전송한다고 UI와 manifest에 명시되어 있습니다. 파일 내용은 분석 이벤트에 포함하지 않는다고 안내합니다.

npm 배포 상태

새 패키지명 figma-mcp-connect는 아직 npm에 배포되지 않았습니다. 현재는 npx -y figma-mcp-connect@latest를 사용하지 말고 npm run setup이 생성한 로컬 Node.js 설정을 사용하세요.

라이선스

이 프로젝트는 MIT 라이선스를 따릅니다.

Available Tools

44 tools
clone_nodeC

Clone an existing node in Figma

Inputs: nodeId (required), x, y.

create_component_instanceA

Create an instance of a component in Figma. For LOCAL components (from get_local_components), use componentId with the id field. For published LIBRARY components, use componentKey with the publishedKey field.

Inputs: x (required), y (required), parentId, componentId, +1 more.

create_connectionsB

Create connections between nodes using the default connector style

Inputs: connections (required).

create_frameC

Create a new frame in Figma

Inputs: x (required), y (required), width (required), height (required), +16 more.

create_rectangleC

Create a new rectangle in Figma

Inputs: x (required), y (required), width (required), height (required), +2 more.

create_sectionB

Create a section in Figma to group related content on the canvas

Inputs: x (required), y (required), width (required), height (required), +1 more.

create_textC

Create a new text element in Figma

Inputs: x (required), y (required), text (required), name, +4 more.

delete_multiple_nodesB

Delete multiple nodes from Figma at once

Inputs: nodeIds (required).

delete_nodeC

Delete a node from Figma

Inputs: nodeId (required).

export_node_as_imageC

Export a node as an image from Figma

Inputs: nodeId (required), scale, format.

get_annotationsB

Get all annotations in the current document or specific node

Inputs: nodeId (required), includeCategories.

get_document_infoB

Get detailed information about the current Figma document

Inputs: no named parameters.

get_instance_overridesA

Get all override properties from a selected component instance. These overrides can be applied to other instances, which will swap them to match the source component.

Inputs: nodeId.

get_local_componentsA

Get all local components from the Figma document

Inputs: no named parameters.

get_node_infoB

Get detailed information about a specific node in Figma

Inputs: nodeId (required).

get_nodes_infoC

Get detailed information about multiple nodes in Figma

Inputs: nodeIds (required).

get_reactionsA

Get Figma Prototyping Reactions from multiple nodes. CRITICAL: The output MUST be processed using the 'reaction_to_connector_strategy' prompt IMMEDIATELY to generate parameters for connector lines via the 'create_connections' tool.

Inputs: nodeIds (required).

get_selectionB

Get information about the current selection in Figma

Inputs: no named parameters.

get_stylesA

Get all styles from the current Figma document

Inputs: no named parameters.

join_channelC

Join a specific channel to communicate with Figma

Inputs: channel.

move_nodeC

Move a node to a new position in Figma

Inputs: x (required), y (required), nodeId (required).

read_my_designA

Get detailed information about the current selection in Figma, including all node details

Inputs: no named parameters.

rename_nodeA

Rename a node in Figma

Inputs: name (required), nodeId (required).

resize_nodeC

Resize a node in Figma

Inputs: width (required), height (required), nodeId (required).

scan_nodes_by_typesC

Scan for child nodes with specific types in the selected Figma node

Inputs: types (required), nodeId (required).

scan_text_nodesC

Scan all text nodes in the selected Figma node

Inputs: nodeId (required).

set_annotationB

Create or update an annotation

Inputs: nodeId (required), labelMarkdown (required), categoryId, properties, +1 more.

set_axis_alignA

Set primary and counter axis alignment for an auto-layout frame in Figma

Inputs: nodeId (required), counterAxisAlignItems, primaryAxisAlignItems.

set_corner_radiusA

Set the corner radius of a node in Figma

Inputs: nodeId (required), radius (required), corners.

set_default_connectorB

Set a copied connector node as the default connector

Inputs: connectorId.

set_fill_colorC

Set the fill color of a node in Figma can be TextNode or FrameNode

Inputs: b (required), g (required), r (required), nodeId (required), +1 more.

set_focusA

Set focus on a specific node in Figma by selecting it and scrolling viewport to it

Inputs: nodeId (required).

set_image_fillA

Fill a node in Figma with an image from a local file path, a URL, or base64 data (replaces the node's existing fills)

Inputs: nodeId (required), imageUrl, imagePath, scaleMode, +1 more.

set_instance_overridesA

Apply previously copied overrides to selected component instances. Target instances will be swapped to the source component and all copied override properties will be applied.

Inputs: targetNodeIds (required), sourceInstanceId (required).

set_item_spacingA

Set distance between children in an auto-layout frame

Inputs: nodeId (required), itemSpacing, counterAxisSpacing.

set_layout_modeB

Set the layout mode and wrap behavior of a frame in Figma

Inputs: nodeId (required), layoutMode (required), layoutWrap.

set_layout_sizingA

Set horizontal and vertical sizing modes for an auto-layout frame in Figma

Inputs: nodeId (required), layoutSizingVertical, layoutSizingHorizontal.

set_multiple_annotationsC

Set multiple annotations parallelly in a node

Inputs: nodeId (required), annotations (required).

set_multiple_text_contentsB

Set multiple text contents parallelly in a node

Inputs: text (required), nodeId (required).

set_paddingB

Set padding values for an auto-layout frame in Figma

Inputs: nodeId (required), paddingTop, paddingLeft, paddingRight, +1 more.

set_parentA

Move a node into a new parent node (e.g. a section, frame or group). Preserves the node's absolute position; each provided x/y coordinate overrides that axis relative to the new container

Inputs: nodeId (required), parentId (required), x, y, +1 more.

set_selectionsA

Set selection to multiple nodes in Figma and scroll viewport to show them

Inputs: nodeIds (required).

set_stroke_colorB

Set the stroke color of a node in Figma

Inputs: b (required), g (required), r (required), nodeId (required), +2 more.

set_text_contentA

Set the text content of an existing text node in Figma

Inputs: text (required), nodeId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 44 tools

    Disambiguation2/5

    Several tools have overlapping purposes, such as get_selection vs read_my_design, set_text_content vs set_multiple_text_contents, and delete_node vs delete_multiple_nodes. Even where descriptions differ slightly, an agent could easily select the wrong tool for a common task.

    Naming Consistency4/5

    The vast majority of tools follow a consistent snake_case verb_noun pattern like create_rectangle, set_fill_color, and delete_node. A few exceptions like read_my_design and set_multiple_text_contents break the pattern, but the overall convention is clear.

    Tool Count2/5

    44 tools is a heavy surface for a single MCP server. Many tools are near-duplicates or batch variants that could be consolidated, making the set feel bloated rather than carefully scoped.

    Completeness3/5

    The server covers a broad range of Figma operations including node CRUD, layout, styles, components, annotations, export, and prototyping reactions. However, there are notable gaps such as grouping, layer ordering, text style manipulation, and more advanced vector/constraint operations.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables Cursor (MCP client) to interact with an active Figma document through a local WebSocket bridge and Figma plugin, providing tools to read and modify canvas elements like text and frames.
      6
      ISC
    • A
      license
      B
      quality
      C
      maintenance
      Enables writing to Figma from MCP clients like Claude Code without a Figma Dev seat, using a local WebSocket relay and a Figma dev plugin.
      44
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to read and modify the currently open Figma design file through a paired local Figma plugin, supporting operations like creating nodes, editing properties, and exporting PNG/SVG.
      2
      MIT