A tool for editing Figma files via MCP. Add text, shapes, frames, and more through MCP.
- Node.js v20.0.0 or higher
- Clone the Repository
git clone https://github.com/asamuzak09/figma-edit-mcp.git
cd figma-edit-mcp- Install Dependencies
npm run install-allThis command installs dependencies and runs the build in both the figma-mcp-server and figma-plugin directories.
- Install the Figma Plugin
To install the Figma plugin locally in development mode:
- Open the Figma desktop app
- From the menu in the top right, select "Plugins" → "Development" → "Import plugin from manifest..."
- Select the figma-plugin/manifest.json file
- The plugin will be installed in development mode
To use this plugin with Cline, you need to add the MCP server configuration:
- Add the following configuration to the
mcpServersobject:
"figma-mcp-server": {
"command": "node",
"args": ["/path/to/figma-edit-mcp/figma-mcp-server/build/index.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "your_figma_personal_access_token"
}
}To use this plugin with Cursor, you need to add the MCP server configuration:
- Click "Add MCP Server"
- Select "command" for "Type"
- Enter the following for "Command":
env FIGMA_ACCESS_TOKEN=your_figma_personal_access_token node /path/to/figma-edit-mcp/figma-mcp-server/build/index.js
Replace /path/to/figma-edit-mcp with the actual path to the repository.
Replace your_figma_personal_access_token with your Figma Personal Access Token.
- Log in to Figma
- Click on your profile icon in the top right
- Select "Settings"
- Go to the "Personal access tokens" section in the "Account" tab
- Click "Create a new personal access token"
- Enter a name for the token and click "Create token"
- Copy the displayed token (note that this token will only be shown once)
- Open Figma
- From the menu in the top right, select "Plugins" → "Development" → "Figma MCP Plugin"
- The plugin will launch and connect to the MCP server
- update_file: Tool to add and update elements in a Figma file
- get_file: Tool to retrieve the contents of a Figma file
- get_mcp_tool_usage: Tool to get usage information for MCP tools
- createFrame: Create frames used as backgrounds or containers
- createText: Create text elements (titles, descriptions, etc.)
- createRectangle: Create rectangles (buttons, cards, etc.)
- createEllipse: Create ellipses (icons, decorations, etc.)
- createLine: Create lines (dividers, arrows, etc.)
- createImage: Insert images (logos, characters, etc.)
- createComponent: Create reusable components