dv-ecoloop/figma-mcp-server
If you are the rightful owner of figma-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A simple local server for Figma's MCP (Model Context Protocol) development.
Figma MCP Server
A simple local server for Figma's MCP (Model Context Protocol) development.
Description
This repository provides a lightweight server implementation for developing and testing Figma MCP features locally. It uses the official figma-developer-mcp
package to facilitate multiplayer collaboration features in Figma plugins.
Prerequisites
- Node.js (v14 or higher)
- npm or Yarn
Setup
-
Clone the repository:
git clone https://github.com/dv-ecoloop/figma-mcp-server.git cd figma-mcp-server
-
Install dependencies:
npm install # or yarn install
-
Configure environment variables:
- Copy
.env.example
to.env
- Add your Figma API key to the
.env
file
- Copy
Creating a Figma API Key
To generate a personal access token for Figma:
- From the file browser in Figma, click the account menu in the top-left corner and select Settings
- Select the Security tab
- Scroll to the Personal access tokens section, then click Generate new token
- Enter a name for your new token and press Return/Enter
- Copy the token that is generated
Note: The token only displays immediately after being generated. If you navigate away from the page, you will not be able to copy the token and will have to generate a new one.
For more details, see the Figma documentation on managing personal access tokens.
Usage
Start the development server:
npm run dev
# or
yarn dev
The server will start on the port specified in your .env
file (default: 3333).
Configuration
FIGMA_API_KEY
: Your Figma API key (required)PORT
: The port on which the server will run (default: 3333)
Implementation Details
This project is built using the Figma-Context-MCP library, which provides tools for interfacing with Figma's API through the Model Context Protocol. This allows AI coding agents like Cursor to access Figma layout information.
License
MIT