The Framelink Figma MCP Server gives your AI-powered coding tools like Cursor access to your Figma files through the Model Context Protocol. This allows your coding assistant to accurately implement designs directly from Figma data, producing more precise results than alternative approaches such as using screenshots.
To use the Figma MCP server, you'll need to configure it in your AI code editor. Before starting, you'll need to create a Figma API access token from the Figma developer settings.
Add the following to your editor's MCP configuration file:
{
"mcpServers": {
"Framelink Figma MCP": {
"command": "npx",
"args": ["-y", "figma-developer-mcp", "--figma-api-key=YOUR-KEY", "--stdio"]
}
}
}
{
"mcpServers": {
"Framelink Figma MCP": {
"command": "cmd",
"args": ["/c", "npx", "-y", "figma-developer-mcp", "--figma-api-key=YOUR-KEY", "--stdio"]
}
}
}
Replace YOUR-KEY
with your actual Figma API access token.
Alternatively, you can set the API key as an environment variable:
FIGMA_API_KEY
- Your Figma access tokenPORT
- Optional port for the serverUsing the Figma MCP server is straightforward:
https://www.figma.com/file/example/Design-File?node-id=123
The MCP server translates the complex Figma API responses into simplified, relevant layout and styling information. This focused approach provides only the most important design details to the AI model, resulting in:
For more detailed instructions and advanced usage, see the Framelink quickstart guide.
For a visual demonstration, watch the demo video showing how to build a UI in Cursor with Figma design data.
To get help or connect with other users, join the Framelink Discord.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.