MCP Figma to React Converter
MCP Figma 到 React 转换器
这是一个模型上下文协议 (MCP) 服务器,用于将 Figma 设计转换为 React 组件。它提供了一些工具,用于获取 Figma 设计并使用 TypeScript 和 Tailwind CSS 生成 React 组件。
特征
使用 Figma API 获取 Figma 设计
从 Figma 设计中提取组件
使用 TypeScript 生成 React 组件
根据 Figma 样式应用 Tailwind CSS 类
使用辅助功能增强组件
支持 stdio 和 SSE 传输
Related MCP server: Figma MCP Server
先决条件
Node.js 18 或更高版本
Figma API 令牌
安装
克隆存储库
安装依赖项:
npm install构建项目:
npm run build配置
您需要将FIGMA_API_TOKEN环境变量设置为您的 Figma API 令牌。您可以从 Figma 帐户设置页面获取个人访问令牌。
用法
作为本地 MCP 服务器运行
FIGMA_API_TOKEN=your_token_here npm start或者使用显式传输:
FIGMA_API_TOKEN=your_token_here node dist/index.js --transport=stdio作为 HTTP 服务器运行
FIGMA_API_TOKEN=your_token_here node dist/index.js --transport=sse可用工具
Figma 工具
getFigmaProject:获取 Figma 项目结构getFigmaComponentNodes:从 Figma 文件中获取组件节点extractFigmaComponents:从 Figma 文件中提取组件getFigmaComponentSets:从 Figma 文件获取组件集
React 工具
generateReactComponent:从 Figma 节点生成 React 组件generateComponentLibrary:从 Figma 组件生成多个 React 组件writeComponentsToFiles:将生成的组件写入文件figmaToReactWorkflow:将 Figma 设计转换为 React 组件的完整工作流程
示例工作流程
获取 Figma 文件密钥(URL 中
figma.com/file/后面的字符串)使用带有文件键和输出目录的
figmaToReactWorkflow工具该工具将提取组件,生成 React 代码,并保存文件
发展
对于开发,您可以使用监视模式:
npm run dev执照
国际学习中心
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
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 Connectors
Build and manage your design system with AI: tokens, themes, components, icons, Figma and code.
- miromiroOAuthapp.miromiro
Turn any live website into brand colors, fonts, design tokens, SVGs, Lottie and paste-ready code.
The Figma MCP server brings Figma design context directly into your AI workflow.
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
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.3318MIT
- FlicenseBqualityDmaintenanceA bridge between Figma designs and React implementations that enables pixel-perfect conversion of Figma designs into React applications by processing Figma file data into React-friendly format.55632-
- AlicenseNot gradedqualityDmaintenanceConverts Figma designs to React/Vue code using existing Design System components, ensuring consistency by enforcing component library usage instead of custom CSS or Tailwind.171MIT
- AlicenseAqualityDmaintenanceConverts Figma designs into production-ready React components with design token extraction, widget registry integration, and micro-frontend module generation.3931MIT
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/StudentOfJS/mcp-figma-to-react'
If you have feedback or need assistance with the MCP directory API, please join our Discord server