Figma MCP Server
This server provides a bridge between Figma designs and React implementations, enabling design conversion, asset management, and direct interaction with Figma files and comments.
get_file_content: Fetches and processes Figma file content, converting layout (Flexbox), styles (CSS/styled-components), and component hierarchies into React-ready structures.
get_node_images: Retrieves image assets from Figma nodes with support for PNG, JPG, and SVG formats, plus scaling options.
add_figma_file: Loads a Figma file into your context by providing its URL.
view_node: Gets a thumbnail/preview for a specific node in a Figma file.
read_comments: Retrieves all comments on a Figma file.
post_comment: Posts a new comment on a Figma file at specific x/y coordinates, optionally pinned to a specific node.
reply_to_comment: Replies to an existing comment thread using its comment ID.
Enables pixel-perfect conversion of Figma designs into React applications by processing Figma file data, converting Figma styles to CSS/styled-components, handling image assets and SVG components, and translating Figma auto-layout to Flexbox.
Processes Figma design data into React-compatible format for direct implementation in React applications, providing React-ready component structures.
Converts Figma styles into compatible format for styled-components, enabling direct implementation of design styling in React applications.
Retrieves and processes SVG assets from Figma designs, supporting vector graphics integration in the resulting React components.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Figma MCP Serverget the React components from Figma file ABC123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Figma MCP Server
A Model Context Protocol (MCP) server that provides a bridge between Figma designs and React implementations. This server enables pixel-perfect conversion of Figma designs into React applications by processing Figma file data and providing it in a React-friendly format.
🚀 Features
Figma API Integration: Direct connection to Figma's API for accessing design files
React-Ready Output: Processes Figma data into React-compatible format
Style Processing: Converts Figma styles to CSS/styled-components
Asset Management: Handles image assets and SVG components
Layout Processing: Converts Figma auto-layout to Flexbox
Type Safety: Built with TypeScript for reliable type checking
Related MCP server: MCP Figma to React Converter
🛠️ Tools Provided
get_file_content:Fetches and processes Figma file content
Converts layout, styles, and components
Returns React-ready component structure
{ fileKey: string; // Figma file key nodeId?: string; // Optional specific component ID }get_node_images:Retrieves image assets from Figma
Supports multiple formats (PNG, JPG, SVG)
Configurable scaling options
{ fileKey: string; // Figma file key nodeIds: string[]; // Component IDs to fetch format?: 'png' | 'jpg' | 'svg'; scale?: number; // 1-4 }
📦 Installation
Installing via Smithery
To install Figma Design to React Converter for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @sanjeev23oct/figma-mcp --client claudeManual Installation
Clone the repository:
git clone https://github.com/yourusername/figma-mcp.git cd figma-mcpInstall dependencies:
npm installConfigure your Figma access token:
cp .env.example .env # Add your Figma access token to .env
🎯 Cursor IDE Setup
Create the
.cursor/mcp.jsonfile in your project root:mkdir -p .cursor touch .cursor/mcp.jsonFor Stdio-based server configuration:
{ "mcpServers": { "figma": { "command": "node", "args": ["d:/<folder>>/figma-mcp/build/index.js"], "env": { "FIGMA_ACCESS_TOKEN": "your figma token" }, "disabled": false, "alwaysAllow": [], "protocol": "stdio" } } }
💻 Usage
Build the server:
npm run buildConfigure MCP settings based on your IDE:
For VS Code (global settings):
// In settings.json { "mcpServers": { "figma": { "command": "node", "args": ["path/to/figma-mcp/build/index.js"], "env": { "FIGMA_ACCESS_TOKEN": "your-token-here" } } } }For Cursor IDE: Use the
.cursor/mcp.jsonconfiguration as described in the "Cursor IDE Setup" section above. This configuration will take precedence over VS Code settings when using Cursor IDE.
Use the MCP tools in your application:
// Example: Fetch processed Figma content const result = await useMcpTool("figma", "get_file_content", { fileKey: "your-figma-file-key" });
🧩 Example Project
Check out the raccoon-game directory for a complete example of using this MCP server to create a pixel-perfect React implementation of a Figma design.
🔄 Processing Pipeline
Input: Figma file data through official API
Processing:
Style conversion (colors, typography, effects)
Layout transformation (absolute to Flexbox)
Component hierarchy mapping
Asset optimization
Output: React-ready component data
📝 License
MIT License
🤝 Contributing
Contributions welcome! Please read our contributing guidelines.
🙏 Acknowledgments
Figma API team for the comprehensive API
Model Context Protocol for the MCP specification
Check out my other project: https://github.com/sanjeev23oct/zap , light weight coding agent free from bloated system prompts built in rust with skill first approach.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityDmaintenanceConverts Figma designs to React Native components, allowing users to extract components from Figma designs and generate corresponding React Native components with proper typing and styling.3148MIT
- Alicense-qualityDmaintenanceConverts Figma designs into React components with TypeScript and Tailwind CSS by extracting components from Figma files and transforming them into ready-to-use code.77MIT
- Flicense-qualityDmaintenanceConnects AI applications to Figma API for extracting design data, generating production-ready HTML/CSS from designs, and capturing screenshots in multiple formats.2,114
- AlicenseAqualityDmaintenanceConverts Figma designs into production-ready React components with design token extraction, widget registry integration, and micro-frontend module generation.3701MIT
Related MCP Connectors
Turn any live website into brand colors, fonts, design tokens, SVGs, Lottie and paste-ready code.
Connect AI coding agents to Anima Playground, Figma, and your design system.
Sync Lightroom, Figma, Dropbox & Canva assets to WordPress and Shopify via natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sanjeev23oct/figma-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server