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 "Deploy 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.
Available Tools
5 toolsadd_figma_fileC
Add a Figma file to your context
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the Figma file to add |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Add a Figma file to your context' implies a mutation or storage action, but it doesn't clarify if this requires specific permissions, what 'context' refers to (e.g., workspace, session), whether the action is reversible, or any rate limits. The description is too vague to inform the agent adequately about behavioral traits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, straightforward sentence that is front-loaded with the core action. It avoids unnecessary words and gets directly to the point. However, it could be more structured by including key details like the tool's scope or constraints, but as-is, it's efficiently concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of annotations and output schema, the description is incomplete for a tool that likely performs a mutation (adding a file). It doesn't explain what 'context' means, the result of the operation, or any error conditions. For a tool with one parameter but no structured behavioral hints, the description should provide more context to be fully helpful.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with the 'url' parameter clearly documented as 'The URL of the Figma file to add'. The description adds no additional meaning beyond this, such as URL format requirements or validation rules. With high schema coverage, the baseline score of 3 is appropriate, as the schema handles the parameter documentation effectively.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states the action ('Add') and resource ('Figma file'), but it's vague about what 'add to your context' means operationally. It doesn't distinguish from sibling tools like 'view_node' or 'post_comment', which might involve similar resources. The purpose is understandable but lacks specificity about the tool's exact function.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites, such as needing a valid Figma URL or authentication, or how it differs from sibling tools like 'view_node' that might also interact with Figma files. The description offers no context for selection among available tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
post_commentC
Post a comment on a node in a Figma file
| Name | Required | Description | Default |
|---|---|---|---|
| file_key | Yes | The key of the Figma file | |
| node_id | No | The ID of the node to comment on. Node ids have the format `<number>:<number>` | |
| message | Yes | The comment message | |
| x | Yes | The x coordinate of the comment pin | |
| y | Yes | The y coordinate of the comment pin |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the action ('Post a comment') but fails to describe critical behaviors such as whether this requires specific permissions, if comments are publicly visible or private, rate limits, error handling, or what happens on success (e.g., comment ID returned). For a mutation tool with zero annotation coverage, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is appropriately sized and front-loaded, with every word earning its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a mutation tool (posting comments) with no annotations and no output schema, the description is incomplete. It lacks information on behavioral traits (e.g., permissions, visibility), usage context, and expected outcomes. The high schema coverage helps with parameters, but overall context is insufficient for effective tool selection and invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the input schema already documents all 5 parameters thoroughly. The description adds no additional meaning beyond what's in the schema (e.g., it doesn't explain parameter interactions or provide examples). According to the rules, baseline is 3 when schema coverage is high (>80%) and no param info is in the description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Post a comment') and the target ('on a node in a Figma file'), providing a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'reply_to_comment' or 'read_comments', which would require explicit comparison to achieve a score of 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'reply_to_comment' or 'read_comments', nor does it mention prerequisites such as file access permissions or comment visibility. It only states what the tool does without contextual usage instructions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
read_commentsC
Get all comments on a Figma file
| Name | Required | Description | Default |
|---|---|---|---|
| file_key | Yes | The key of the Figma file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. While 'Get all comments' implies a read operation, it doesn't specify whether this requires authentication, rate limits, pagination behavior, or what format the comments are returned in. This leaves significant gaps for a tool that presumably interacts with an external API.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero wasted words. It's appropriately sized for a simple tool and front-loads the essential information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what 'all comments' means in practice (e.g., format, structure, limitations), nor does it address authentication requirements or error conditions that would be important for an API interaction tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description mentions 'on a Figma file' which aligns with the single 'file_key' parameter, but adds no additional semantic context beyond what the schema already provides (100% coverage). The baseline score of 3 is appropriate since the schema fully documents the parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Get all comments') and target resource ('on a Figma file'), providing a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'view_node' or 'post_comment' that might also involve Figma file interactions, so it doesn't reach the highest clarity level.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'post_comment' or 'reply_to_comment'. There's no mention of prerequisites, context for retrieving comments, or any explicit when/when-not instructions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
reply_to_commentC
Reply to an existing comment in a Figma file
| Name | Required | Description | Default |
|---|---|---|---|
| file_key | Yes | The key of the Figma file | |
| comment_id | Yes | The ID of the comment to reply to. Comment ids have the format `<number>` | |
| message | Yes | The reply message |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It states the action ('Reply to') but lacks behavioral details: it doesn't disclose required permissions, whether this is a write operation, rate limits, response format, or error conditions. For a mutation tool with zero annotation coverage, this is a significant gap in transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste. It's front-loaded with the core action and resource, making it easy to parse. Every word earns its place, and there's no redundancy or unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (a mutation with 3 required parameters) and lack of annotations and output schema, the description is incomplete. It doesn't explain return values, error handling, or behavioral traits, leaving the agent with insufficient context to use the tool effectively beyond basic purpose.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so parameters are fully documented in the schema. The description adds no additional meaning beyond what the schema provides (e.g., no context on comment_id format beyond schema's '<number>', no examples). Baseline 3 is appropriate as the schema does the heavy lifting, but the description doesn't compensate or enhance parameter understanding.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Reply to') and target resource ('an existing comment in a Figma file'), making the purpose immediately understandable. It distinguishes from sibling tools like 'post_comment' (new comment) and 'read_comments' (viewing), though not explicitly. However, it doesn't specify the verb+resource combination as precisely as it could (e.g., 'post a reply' vs. 'reply to').
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites (e.g., needing an existing comment), exclusions, or comparisons with siblings like 'post_comment' for new comments or 'read_comments' for viewing. Usage is implied but not explicitly stated, leaving gaps for an agent to infer context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
view_nodeC
Get a thumbnail for a specific node in a Figma file
| Name | Required | Description | Default |
|---|---|---|---|
| file_key | Yes | The key of the Figma file | |
| node_id | Yes | The ID of the node to view. Node ids have the format `<number>:<number>` |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool 'Get a thumbnail,' implying a read-only operation, but doesn't clarify aspects like whether it requires authentication, has rate limits, returns image data or a URL, or handles errors. This leaves significant gaps in understanding the tool's behavior beyond its basic function.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence that efficiently conveys the tool's purpose without unnecessary words. It is front-loaded with the core action and resource, making it easy to parse. Every part of the sentence contributes directly to understanding the tool's function.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of annotations and output schema, the description is incomplete for a tool that retrieves visual data. It doesn't explain what a 'thumbnail' entails (e.g., image format, size, or how it's returned), which is critical for an AI agent to use the tool effectively. The schema covers inputs well, but the output behavior remains undocumented.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, clearly documenting both parameters (file_key and node_id) with their purposes and formats. The description adds no additional semantic information beyond what the schema provides, such as examples or edge cases. This meets the baseline score since the schema adequately covers parameter details.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Get a thumbnail') and the target resource ('a specific node in a Figma file'), making the purpose understandable. However, it doesn't differentiate this tool from potential sibling tools that might also retrieve node information or thumbnails, as the sibling list includes file management and comment tools but no direct alternatives for viewing nodes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention any prerequisites, such as needing the file key and node ID, or specify scenarios where this tool is appropriate over other methods for accessing node data. This lack of contextual direction limits its utility for an AI agent.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
5 tool updates
- First observed
add_figma_file - First observed
post_comment - First observed
read_comments - First observed
reply_to_comment - First observed
view_node
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose targeting specific actions in Figma: adding files, posting comments, reading comments, replying to comments, and viewing nodes. There is no overlap in functionality, making it easy for an agent to select the correct tool without confusion.
The naming follows a consistent verb_noun pattern (e.g., add_figma_file, post_comment) with clear and descriptive names. The only minor deviation is 'view_node' which uses 'view' instead of a more action-oriented verb like 'get', but it still fits the pattern well and remains readable.
With 5 tools, the server is well-scoped for its purpose of interacting with Figma files, comments, and nodes. Each tool serves a distinct and necessary function, avoiding bloat while covering essential operations like file management and comment handling.
The toolset covers core workflows for Figma interactions, including file addition, comment management (post, read, reply), and node viewing. A minor gap is the lack of tools for updating or deleting files or comments, but agents can still perform basic operations effectively without major dead ends.
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Build and manage your design system with AI: tokens, themes, components, icons, Figma and code.
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
- miromiroOAuthapp.miromiro
Turn any live website into brand colors, fonts, design tokens, SVGs, Lottie and paste-ready code.
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.315 npm8MIT
- AlicenseNot gradedqualityDmaintenanceConverts 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
- FlicenseNot gradedqualityDmaintenanceConnects AI applications to Figma API for extracting design data, generating production-ready HTML/CSS from designs, and capturing screenshots in multiple formats.1,634 npm-
- AlicenseAqualityDmaintenanceConverts Figma designs into production-ready React components with design token extraction, widget registry integration, and micro-frontend module generation.356 npm1MIT