Figma MCP Server

by karthiks3000

425 downloads
Not rated
GitHub

About

Figma MCP Server is a Model Context Protocol (MCP) server that allows Claude AI to extract design information from Figma files and create or update designs using the Figma plugin. It operates in two modes: Readonly Mode for extracting design data via a URL link and Write Mode…

Details

Author
karthiks3000
Downloads
425
Categories
Media, Design, AI

- Readonly Mode to extract file info, node details, and styles
- Write Mode to create and update frames, shapes, and text
- Comprehensive API covering components, variables, and responsive design
- Unit and integration tests included for reliability
- Plugin connection test to verify WebSocket communication

Clone the repository, install dependencies with npm install, build with npm run build, then set the FIGMA_ACCESS_TOKEN environment variable. Start the server with npm start or for development use npm run dev. For write mode, the Figma MCP plugin must be installed in the Figma desktop app. Run unit tests with npm test and integration tests with npm run test:integration or npm run test:integration-js.

Figma MCP Server

A Model Context Protocol (MCP) server for interacting with Figma designs. This server allows Claude AI to extract design information from Figma files and create or update designs using the Figma plugin.

Features

- Readonly Mode: Extract design information from Figma files using a URL link
- Write Mode: Create or update designs by establishing a connection with the Figma plugin
- Comprehensive API: Access to a wide range of Figma features through a unified API
- Unit Testing: Includes tests to verify server functionality
- Integration Testing: Tests the flow from creating designs to reading them

Modes

Readonly Mode

In readonly mode, the server can extract design information from a Figma file using a URL link. This includes:

- File information
- Node details
- Styles (colors, text, effects)
- Assets (images)
- Variables
- Component identification
- Variant detection
- Responsive design detection

Write Mode

In write mode, the server can create or update designs by establishing a connection with the Figma plugin. This includes:

- Creating frames, shapes, text, and components
- Creating component instances
- Updating node properties
- Setting fills, strokes, and effects
- Deleting nodes
- Smart element creation

Prerequisites

- Node.js 18 or higher
- A Figma account and access token
- The Figma MCP plugin installed in the Figma desktop app (for write mode)

Installation

1. Clone the repository:

git clone https://github.com/your-username/figma-server.git
cd figma-server

2. Install dependencies:

npm install

3. Build the server:

npm run build

Configuration

The server requires a Figma access token to be set in the environment:

export FIGMA_ACCESS_TOKEN=your_figma_access_token

Usage

Starting the Server

npm start

Development Mode

npm run dev

Running Tests

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.