Connects to Figma's API to extract components, styles, and text from designs, analyze design system consistency, manage UI content, and generate development documentation.
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
Related MCP server: mcp-figma
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-serverInstall dependencies:
npm installCreate a
.envfile in the project root:FIGMA_API_TOKEN=your_figma_personal_access_token API_KEY=your_secure_api_key TRANSPORT_TYPE=stdioBuild the server:
npm run buildStart 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.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
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.jsonWindows:
%APPDATA%\Cursor\mcp.json
Project-Specific Configuration
Create a
.cursordirectory in your project root:mkdir -p .cursorCreate 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 basic information about a Figma file |
| Get specific nodes from a Figma file |
| Get component information from a Figma file |
| Get style information from a Figma file |
| Get comments from a Figma file |
| Search for elements in a Figma file by type, name, etc. |
| 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:
Using with Cursor:
Environment Variables
Variable | Description | Default |
| Your Figma Personal Access Token | (Required) |
| Security key for API authentication | (Required) |
| Transport method (
or
) |
|
| Port for SSE transport |
|
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.