feuse-mcp
Converts Figma color variables to CSS/design tokens in various framework standards
Auto-adapts generated code to local ESLint configurations when converting designs to code
Provides design-to-code conversion capabilities, extracting SVG assets, color variables, and allowing visual comparison between Figma prototypes and project screenshots
Analyzes Figma DSL structure to extract and download SVG resources and vectors with intelligent handling of complex node structures
Generates TypeScript interface types from API documentation to facilitate type-safe development
Supports extracting color variables from Figma and converting them to UnoCSS configuration formats
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., "@feuse-mcp generate code from my Figma design 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.
Frontend Useful MCP (Model Context Protocol) Tools - Essential utilities for web developers to automate API integration, Figma design-to-code conversion, and development workflow optimization.
English | 中文
📖 Documentation
feuse-mcp Official Documentation
Related MCP server: Stitch MCP Auto
✨ Features
🎨 Figma Integration: Built-in integration with Figma-Context-MCP for seamless Figma design-to-code conversion and automatic asset extraction
📝 API Automation: Generate TypeScript interface types, API URL constants, mock data, and request functions from API documentation
🖼️ Asset Management: Download SVG and PNG images from Figma files with organized file structure
🎯 Similarity Comparison: Compare generated code pages with original Figma prototypes for accuracy validation
🛠️ Project Standards: Generate global specification guidance files for Copilot & Cursor based on current project architecture
🔧 Color Variables: Extract and convert Figma color variables to CSS/design tokens in specified standards (UnoCSS, TailwindCSS, or custom structures)
🔧 Available Toolset (Continuously Updated)
Tool Name | Category | Description | Input Parameters | Notes |
Figma-To-Code | Figma Integration | Generate frontend code based on Figma styling info with PNG assistance |
| Auto-adapts to local configs (ESLint etc), supports responsive layouts |
extract-svg-assets | Asset Analysis | Analyze Figma DSL structure and auto-extract SVG resources |
| Intelligent Figma file analysis, batch extraction of SVG icons/vectors |
extract-color-vars | Design Tokens | Extract color variables from Figma DSL to CSS framework configs |
| Supports UnoCSS, TailwindCSS, or custom file format output |
similarity-figma | Quality Control | Compare Figma prototypes with project page screenshots |
| Visual comparison with intelligent similarity scoring and detailed analysis |
api-automation | Development Tools | Parse backend API docs and generate types, constants, mock data |
| Supports multiple API doc formats, generates complete frontend API toolkit |
initialize-project-standard | Project Management | Analyze project structure and generate Copilot/Cursor global rules | No parameters | Auto-generates intelligent coding assistant project context and standards |
Download-Figma-Images | Asset Management | Batch download SVG and PNG image resources from Figma by node ID |
| Supports imageRef handling, auto-creates directory structure (low-level tool for other MCPs) |
download-svg-assets | Asset Management | Download SVG vector resources from Figma by image/icon node ID |
| SVG format only, supports complex node structures (low-level tool for other MCPs) |
🚀 Quick Start
Configuration
Add to your MCP client configuration:
Get your Figma API key from Figma Developer Settings.
{
"feuse-mcp": {
"command": "npx",
"args": ["feuse-mcp@latest"],
"env": {
"FIGMA_API_KEY": "YOUR_FIGMA_API_KEY"
}
}
}🔧 For Code Contributors
Setup
# Clone the repository
git clone https://github.com/your-username/feuse-mcp.git
cd feuse-mcp
# Install dependencies
pnpm install
# Build
pnpm buildAdd to your MCP client configuration:
Get your Figma API key from Figma Developer Settings.
{
"feuse-mcp": {
"command": "npx",
// Configure path
"args": ["YOUR/PATH/TO/dist/main.cjs"],
"env": {
"FIGMA_API_KEY": "YOUR_FIGMA_API_KEY"
}
}
}📁 Project Structure
feuse-mcp/
├── src/
│ ├── main.ts # Main entry point
│ ├── services/ # Core services
│ │ ├── figma/ # Figma integration
│ │ ├── similarity/ # Visual comparison
│ │ └── utility/ # Utility toolset
│ ├── types/ # TypeScript definitions
│ └── utils/ # Helper functions
├── docs/ # Documentation
└── dist/ # Built files🤝 Contributing
Contributions are welcome! Feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Development Guidelines
Follow the existing code style
Update documentation as needed
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
If you have more interesting, fun, and cool ideas, please submit them in issues immediately ! ! !
🙏 Acknowledgments
Figma-Context-MCP for providing Figma design analysis capabilities
fastmcp for providing MCP rapid development framework
All contributors and users of this project
Available Tools
8 toolsapi-automationB
理解后端接口文档自动生成接口类型、地址常量、mock数据、请求函数等
Inputs: apiDocs (required).
Download-Figma-ImagesB
Download SVG and PNG images used in a Figma file based on the IDs of image or icon nodes
Inputs: fileKey (required), nodes (required), localPath (required), pngScale, +1 more.
download-svg-assetsC
根据图像或图标节点的ID,仅下载Figma文件中使用的SVG资源
Inputs: fileKey (required), nodes (required), localPath (required), pngScale, +1 more.
extract-color-varsC
从Figma DSL文件中提取颜色变量,并输出在用户指定的文件中(比如unocss、tailwindcss或者自定义标准文件中等)
Inputs: fileKey (required), nodeId.
extract-svg-assetsC
分析figma SDL中的结构,并调用download-svg-assets工具下载Figma文件中使用的SVG资源
Inputs: fileKey (required), nodeId.
Figma-To-CodeA
Generate pixel-perfect frontend code from Figma designs. Automatically parses Figma DSL structure and style information, combines with PNG preview images for visual validation, and generates high-quality frontend component code that matches your project tech stack. Supports automatic detection of project configurations (UnoCSS/TailwindCSS/SCSS etc.) and uses existing style variables and design standards.
Inputs: fileKey (required), nodeId.
initialize-project-standardB
针对用户指定项目进行分析,生成Copilot 和 cursor对应的全局项目规则
Inputs: no named parameters.
similarity-figmaB
获取Figma原型图,请你结合项目源码并通过原型图与生成的代码页面的截图进行相似性比对
Inputs: url (required), fileKey (required), nodeId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have distinct purposes, but there is slight overlap between Download-Figma-Images and download-svg-assets, and between Figma-To-Code and similarity-figma. The mixed language (English and Chinese) may cause minor confusion, but descriptions clearly differentiate them.
Tool names mix verb-noun and noun-noun patterns, with inconsistent capitalization (e.g., Download-Figma-Images vs. download-svg-assets). Some use hyphens, others capital letters. The pattern is not uniform, but still readable.
With 8 tools covering key aspects of the Figma-to-code workflow (image downloading, color extraction, code generation, validation, project setup), the count is appropriate. It is neither too sparse nor overwhelming.
The tool set covers the main design-to-code pipeline, but lacks features like updating generated code or handling component variants. Some operations like exporting multiple assets at once or managing design tokens beyond colors are missing, leaving minor gaps.
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Build, test, publish and manage real MCP servers from APIs with a live developer studio.
An MCP server that provides asset auto generator
Screenshots, PDFs, image editing, QR codes, email validation and more through one hosted MCP server.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn automated MCP server for Google Stitch that enables AI-driven UI design generation, screen management, and design system extraction. It provides 19 professional tools for creating consistent web interfaces, conducting accessibility audits, and exporting design tokens.-
- AlicenseNot gradedqualityDmaintenanceAn automated MCP server for Google Stitch that enables AI-driven UI design generation, accessibility audits, and design system management. It streamlines workflows for creating responsive screens, extracting design tokens, and maintaining visual consistency across professional web projects.44 npm31Apache 2.0
- AlicenseNot gradedqualityBmaintenanceAn MCP server that gives AI coding tools access to Figma design data for accurate one-shot implementation of designs.24 npm28MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that bridges design and code by generating UI components, layouts, and themes from text prompts using v0.dev, with features like code refactoring and accessibility auditing.1MIT