Figma MCP Server
experimental gen ai mcp server to generate figma tokens
Overview
Figma MCP Server is an experimental AI-powered server designed to generate Figma tokens and facilitate access to Figma design data for coding tools like Cursor, Windsurf, and Cline.
To use the Figma MCP Server, run the server using the command: npx figma-developer-mcp --figma-api-key=<your-figma-api-key>. After starting the server, connect it to Cursor and use the tools in Cursor's composer to interact with your Figma designs.
- Detailed CSS Extraction: Extracts exact CSS properties from Figma designs. - Design Tokens Generation: Automatically generates design tokens in various formats (CSS, SCSS, TypeScript, JSON). - Enhanced Rendering: Provides accurate rendering of designs to code, including support for gradients and multi-layered backgrounds.
- Extracting detailed CSS properties for web development.
- Generating design tokens for consistent styling across projects.
- Facilitating AI-assisted design implementation in coding tools.
Add to your AI client
Use these steps to connect Figma MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"figma-context-mcp-tokens-j4ckp0t85": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-figma-context-mcp-tokens-j4ckp0t85"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"figma-context-mcp-tokens-j4ckp0t85": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-figma-context-mcp-tokens-j4ckp0t85"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"figma-context-mcp-tokens-j4ckp0t85": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-figma-context-mcp-tokens-j4ckp0t85"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"figma-context-mcp-tokens-j4ckp0t85": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-figma-context-mcp-tokens-j4ckp0t85"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"figma-context-mcp-tokens-j4ckp0t85": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-figma-context-mcp-tokens-j4ckp0t85"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"figma-context-mcp-tokens-j4ckp0t85": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-figma-context-mcp-tokens-j4ckp0t85"
]
}
}
}FAQ
Can I use Figma MCP Server with any Figma file?
Yes! You can use it with any Figma file as long as you have the appropriate access token.
Is there a cost to use Figma MCP Server?
No, it is free to use.
What programming languages does it support?
The server is built with TypeScript and can generate tokens for various formats.