loading…
Search for a command to run...
loading…
Enables AI agents to extract design systems, analyze components, and maintain design-code consistency from Figma files, providing intelligent component analysis
Enables AI agents to extract design systems, analyze components, and maintain design-code consistency from Figma files, providing intelligent component analysis and accessibility compliance.
The most advanced Figma Model Context Protocol (MCP) server for extracting design systems, analyzing components, and maintaining design-code consistency. Built specifically for AI agents and modern design workflows.
🌐 Available in: English | 한국어 (Korean) | 日本語 (Japanese) | 中文 (Chinese) | Español (Spanish) | Tiếng Việt (Vietnamese) | Français (French)
Note: This server is a fork of the original Framelink Figma MCP server, building upon its foundation to offer enhanced capabilities for AI-driven design workflows. We acknowledge and appreciate the foundational work of the original Framelink team.
This isn't just another Figma data extractor. It's an intelligent design system generation, analysis and documentation platform that provides deep insights into your Figma files:
Give Cursor and other AI-powered coding tools access to your Figma files with this Model Context Protocol server, Figma MCP Server by Bao To.
When Cursor has access to Figma design data, it can be significantly better at implementing designs accurately compared to alternative approaches like pasting screenshots.
Watch a demo of building a UI in Cursor with Figma design data
This MCP server is designed to simplify and translate responses from the Figma API so that only the most relevant layout and styling information is provided to the AI model.
Reducing the amount of context provided to the model helps make the AI more accurate and the responses more relevant.
get_figma_data - Extract complete Figma file structure and design datadownload_figma_images - Download images, icons, and graphics from Figmaget_figma_variables - Get Figma Variables (IMPORTANT: Enterprise plans only)generate_design_tokens - Extract and structure design tokens (colors, typography, spacing, effects)analyze_figma_components - NEW! Intelligent component analysis for AI-driven developmentgenerate_design_system_doc - Generate comprehensive design system documentationcompare_design_tokens - Compare design tokens between files or versionsvalidate_design_system - Validate design system consistency and best practicescheck_accessibility - Check WCAG accessibility compliance with real contrast calculationsmigrate_tokens - Convert tokens to different formats (Tailwind, CSS Variables, Style Dictionary)check_design_code_sync - Compare design tokens with code implementationDesign Token Comparison (compare_design_tokens):
Design System Validation (validate_design_system):
Accessibility Compliance Checker (check_accessibility):
Multi-Format Token Migration (migrate_tokens):
Design-Code Sync Checker (check_design_code_sync):
To leverage the full power of Figma MCP Server by Bao To, especially its design system generation tools, you need to guide your AI agent (like Cursor) effectively. Here's how:
Specify This Server:
@tothienbao6a0/figma-mcp-server."Request Specific Tools:
get_figma_data).get_figma_variables tool. Note: This only works with Figma Enterprise plans.generate_design_tokens tool.generate_design_tokens with includeDeducedVariables: true. This provides a workaround for non-Enterprise users to get variable-like structures.generate_design_system_doc tool.Provide Necessary Parameters:
fileKey: Always provide the Figma file link. The agent and server can extract the fileKey.scope (for get_figma_variables): ⚠️ Enterprise Only - Optional parameter to specify whether to fetch 'local' variables (default, all variables in the file) or 'published' variables (only those published to team library).outputFilePath (for get_figma_variables and generate_design_tokens) / outputDirectoryPath (for generate_design_system_doc):/docs or /tokens folder), tell your agent:variables.json in the src/design-system folder of my project."docs/design_system folder of my current project."design-tokens.json in the src/style-guide folder of my project."outputDirectoryPath or outputFilePath when calling the respective tool.Example Prompt for an Agent:
"Hey AI, please use the Figma MCP Server by Bao To to generate the full design system documentation for
https://www.figma.com/design/yourFileKey/Your-Project-Name. I want the output to be saved in a new folder calledfigma_docsinside my current project's root directory."
By being specific, you help the AI agent make the correct tool calls with the right parameters to this server, unlocking its advanced features for your development workflow.
Your AI coding client (like Cursor) can be configured to use this MCP server. Add the following to your client's MCP server configuration file, replacing YOUR-KEY with your Figma API key.
NOTE: You will need to create a Figma access token to use this server. Instructions on how to create a Figma API access token can be found here.
{
"mcpServers": {
"Figma MCP Server by Bao To": {
"command": "npx",
"args": ["-y", "@tothienbao6a0/figma-mcp-server", "--figma-api-key=YOUR-KEY", "--stdio"]
}
}
}
{
"mcpServers": {
"Figma MCP Server by Bao To": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@tothienbao6a0/figma-mcp-server", "--figma-api-key=YOUR-KEY", "--stdio"]
}
}
}
This will use npx to download and run the @tothienbao6a0/figma-mcp-server package from npm. The -y flag automatically agrees to any prompts from npx.
Alternatively, you can install the package globally first (though npx is often preferred for CLI tools to ensure you're using the latest version without global installs):
npm install -g @tothienbao6a0/figma-mcp-server
And then configure your client to use @tothienbao6a0/figma-mcp-server directly as the command.
When using this MCP server to generate design tokens and documentation, you'll notice that Figma's internal IDs (like fill-hxq15en) can make the system hard to maintain. The generated design system documentation is extensive, with internal IDs scattered across multiple files and sections. Here's a workflow to transform ALL instances of these IDs into semantic, readable tokens:
Generate Initial Design System
Prepare Your Color System Screenshot
Use AI to Create Comprehensive Semantic Mapping
"I have a screenshot of my Figma color system and the generated design system files.
Please help create a semantic mapping for ALL instances of internal IDs across the entire documentation:
1. First, analyze the color system in the image to understand the semantic meaning of each color
2. Then, search through all generated files to find every instance of each internal ID
3. Create a complete mapping between IDs and semantic names
4. Update ALL occurrences in:
- Token files
- CSS variables
- Component documentation
- Usage examples
- Style guides
5. Ensure consistency across the entire design system
6. Generate additional documentation including:
- Usage guidelines for the semantic tokens
- Examples for different contexts (components, themes)
- Best practices for implementation
- Common patterns and combinations
- Accessibility considerations"
Generated Files The AI will create/update ALL relevant files:
token-mapping.json - Complete ID to semantic name mappingdesign_variables.css - Updated CSS variablesBefore (across multiple files):
/* design_variables.css */
--fill-hxq15en: #556AEB;
--stroke-heus4w0: #B9C4FF;
/* component_examples.md */
Use `var(--fill-hxq15en)` for primary actions
Border: 1px solid var(--stroke-heus4w0)
/* style_guide.md */
| fill-hxq15en | Primary blue | #556AEB |
After:
/* design_variables.css */
--color-primary-500: #556AEB;
--stroke-primary-light: #B9C4FF;
/* component_examples.md */
Use `var(--color-primary-500)` for primary actions
Border: 1px solid var(--stroke-primary-light)
/* style_guide.md */
| color-primary-500 | Primary blue | #556AEB |
Color System Screenshot
Semantic Naming
Comprehensive Updates
Maintenance
The AI will also generate additional documentation to help developers use the semantic tokens correctly, including usage guidelines and examples for different contexts (components, themes, etc.).
To access these tools in your AI agent, use these prompts:
get_figma_data tool.download_figma_images tool.get_figma_variables tool.generate_design_tokens tool.generate_design_tokens with includeDeducedVariables: true. This provides a workaround for non-Enterprise users to get variable-like structures.generate_design_system_doc tool.compare_design_tokens tool.validate_design_system tool.check_accessibility tool.migrate_tokens tool with the desired target format.check_design_code_sync tool.⚠️ Important Note About Figma Variables API
The get_figma_variables function requires a Figma Enterprise plan. This limitation is imposed by Figma, not by this MCP server:
get_figma_data, download_figma_images, generate_design_tokens, generate_design_system_docget_figma_variables (Variables REST API access)Why this limitation exists:
403 Forbidden errorsAlternatives for non-Enterprise users:
generate_design_tokens with includeDeducedVariables: true - analyzes design tokens to create variable-like structures (NEW workaround feature)generate_design_tokens (standard) - extracts similar styling information from your designsFor more details, see Figma's official documentation on plan features.
Выполни в терминале:
claude mcp add figma-mcp-server-by-bao-to -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development