Figma MCP Server
Connects to the Figma API, allowing AI tools to access and interact with your Figma designs.
Figma MCP Server
A Model Context Protocol (MCP) server that connects to Figma's API, allowing AI tools and LLMs to access and work with your Figma designs.
Features
- Design Data Extraction: Extract components, styles, and text from your Figma designs
- Design System Analysis: Analyze design system consistency and patterns
- UI Content Management: Extract and organize all UI copy from designs
- Development Handoff: Generate comprehensive documentation for developers
- Seamless AI Integration: Connect your designs to AI tools like Claude, Cursor, and other MCP-compatible clients
Getting Started
Prerequisites
- Node.js 16 or higher
- Figma Personal Access Token (Get it from your Figma account settings)
Installation
-
Clone the repository:
git clone https://github.com/yourusername/figma-mcp-server.git cd figma-mcp-server -
Install dependencies:
npm install -
Create a
.envfile in the project root:FIGMA_API_TOKEN=your_figma_personal_access_token API_KEY=your_secure_api_key TRANSPORT_TYPE=stdio -
Build the server:
npm run build -
Start the server:
npm start
Connecting to Clients
Claude for Desktop
-
Open or create the Claude for Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the following configuration:
{ "mcpServers": { "figma": { "command": "node", "args": ["/absolute/path/to/figma-mcp-server/build/index.js"], "env": { "FIGMA_API_TOKEN": "your_figma_personal_access_token", "TRANSPORT_TYPE": "stdio" } } } } -
Restart Claude for Desktop
Cursor
Global Configuration
Create or edit Cursor's MCP configuration file:
- macOS:
~/Library/Application Support/Cursor/mcp.json - Windows:
%APPDATA%\Cursor\mcp.json
{
"mcpServers": {
"figma-mcp": {
"url": "http://localhost:3000/sse",
"env": {
"API_KEY": "your_secure_api_key"
}
}
}
}
Project-Specific Configuration
-
Create a
.cursordirectory in your project root:mkdir -p .cursor -
Create an
mcp.jsonfile inside that directory:{ "mcpServers": { "figma-mcp": { "url": "http://localhost:3000/sse", "env": { "API_KEY": "your_secure_api_key" } } } }
Available Tools
| Tool | Description |
|---|---|
get-file-info | Get basic information about a Figma file |
get-nodes | Get specific nodes from a Figma file |
get-components | Get component information from a Figma file |
get-styles | Get style information from a Figma file |
get-comments | Get comments from a Figma file |
search-file | Search for elements in a Figma file by type, name, etc. |
extract-text | Extract all text elements from a Figma file |
Available Prompts
analyze-design-system- Analyze design system components and styles for consistencyextract-ui-copy- Extract and organize all UI copy from designsgenerate-dev-handoff- Generate development handoff documentation based on designs
Usage Examples
Using with Claude:
Can you analyze the design system in my Figma file with key abc123? Look for consistency in color usage and typography.
Using with Cursor:
Generate React components for the buttons from my Figma file with key abc123, using tailwind CSS.
Environment Variables
| Variable | Description | Default |
|---|---|---|
FIGMA_API_TOKEN | Your Figma Personal Access Token | (Required) |
API_KEY | Security key for API authentication | (Required) |
TRANSPORT_TYPE | Transport method (stdio or sse) | stdio |
PORT | Port for SSE transport | 3000 |
Architecture
This MCP server:
- Connects to the Figma API using your personal access token
- Exposes a standardized interface following the Model Context Protocol
- Provides tools, resources, and prompts that LLMs can use to interact with your Figma designs
- Supports both stdio transport (local connections) and SSE transport (remote connections)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Grafana Loki
A server for querying Loki logs from Grafana.
Tinyman MCP
An MCP server for the Tinyman protocol on the Algorand blockchain, offering tools for swaps, liquidity provision, and pool management.
Unified MCP Client Library
A TypeScript library for integrating MCP with tools like LangChain and Zod, providing helpers for schema conversion and event streaming.
Windows CLI
Interact with Windows command-line interfaces like PowerShell, CMD, Git Bash, and WSL.
Contrast MCP Server
Remediate vulnerabilities found by Contrast products using LLM and Coding Agent capabilities.
Webhook Tester MCP Server
Interact with webhook-test.com to automate and manage webhook tokens, inspect incoming requests, and perform analytics.
Databutton
An MCP server for initial app planning and creating a good starting point for an app.
System Diagnostics
An MCP server for system diagnostics and monitoring on Ubuntu using common command-line tools.
Yellhorn MCP
An MCP server that integrates Gemini 2.5 Pro and OpenAI models for software development tasks, allowing the use of your entire codebase as context.
MCP-Insomnia
An MCP server for AI agents to create and manage API collections in Insomnia-compatible format.