About Figma MCP Server
Figma MCP Server connects the Figma API to MCP for developers working with Figma files, plugins, and widgets. It offers file, node, comment, image, component, and canvas operations, with WebSocket communication for plugins.
Key features
- 01Use the Figma API through MCP
- 02Connect Figma plugins over WebSocket
- 03Support widget development
- 04Manage files, nodes, and comments
- 05Export images and search file content
- 06Operate components and canvases
Use cases
- 01Operate Figma files and nodes through MCP
- 02Develop Figma plugins that connect to the server
- 03Build and test Figma widgets
MCP support
The server exposes Figma API operations as tools to MCP clients. Figma plugins can also communicate with the server over WebSocket.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEFigma MCP Server
A Figma API server implementation based on Model Context Protocol (MCP), supporting Figma plugin and widget integration.
Features
- Interact with Figma API through MCP
- WebSocket server for Figma plugin communication
- Support for Figma widget development
- Environment variable configuration via command line arguments
- Rich set of Figma operation tools
Installation
- Clone the repository:
git clone <repository-url>
cd figma-mcp
- Install dependencies:
bun install
Configuration
Environment Variables
Create a .env file and set the following environment variables:
FIGMA_PERSONAL_ACCESS_TOKEN=your_figma_token
PORT=3001
NODE_ENV=development
Getting a Figma Access Token
- Log in to Figma
- Go to Account Settings > Personal Access Tokens
- Create a new access token
- Copy the token to your
.envfile or pass it via command line arguments
Usage
Build the Project
bun run build
Run the Development Server
bun run dev
Using Command Line Arguments
Support for setting environment variables via the -e parameter:
bun --watch src/index.ts -e FIGMA_PERSONAL_ACCESS_TOKEN=your_token -e PORT=6000
You can also use a dedicated token parameter:
bun --watch src/index.ts --token your_token
Or its shorthand:
bun --watch src/index.ts -t your_token
Configuring MCP in Cursor
Add to the .cursor/mcp.json file:
{
"Figma MCP": {
"command": "bun",
"args": [
"--watch",
"/path/to/figma-mcp/src/index.ts",
"-e",
"FIGMA_PERSONAL_ACCESS_TOKEN=your_token_here",
"-e",
"PORT=6000"
]
}
}
Available Tools
The server provides the following Figma operation tools:
- File operations: Get files, versions, etc.
- Node operations: Get and manipulate Figma nodes
- Comment operations: Manage comments in Figma files
- Image operations: Export Figma elements as images
- Search functionality: Search content in Figma files
- Component operations: Manage Figma components
- Canvas operations: Create rectangles, circles, text, etc.
- Widget operations: Manage Figma widgets
Figma Plugin Development
Plugin Introduction
Figma plugins are customized tools that extend Figma's functionality, enabling workflow automation, adding new features, or integrating with external services. This MCP server provides a convenient way to develop, test, and deploy Figma plugins.
Building and Testing
Build the plugin:
bun run build:plugin
Run in development mode:
bun run dev:plugin
Loading the Plugin in Figma

- Right-click in Figma to open the menu -> Plugins -> Development -> Import plugin from manifest...
- Select the plugin's
manifest.jsonfile - Your plugin will now appear in Figma's plugin menu
Plugin Interaction with MCP Server
Plugins can communicate with the MCP server via WebSocket to achieve:
- Complex data processing
- External API integration
- Cross-session data persistence
- AI functionality integration
Development
Build Widget
bun run build:widget
Build Plugin
bun run build:plugin
Development Mode
bun run dev:widget # Widget development mode
bun run dev:plugin # Plugin development mode
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.
