-
securityA
license-
qualityEnables Cursor to access Figma files through the Model Context Protocol, enhancing its ability to accurately interpret and utilize design data for code generation.
Last updated -
5
60,738
8,062
TypeScript
MIT License
这是一个模型上下文协议 (MCP) 服务器,用于将 Figma 设计转换为 React 组件。它提供了一些工具,用于获取 Figma 设计并使用 TypeScript 和 Tailwind CSS 生成 React 组件。
您需要将FIGMA_API_TOKEN
环境变量设置为您的 Figma API 令牌。您可以从 Figma 帐户设置页面获取个人访问令牌。
或者使用显式传输:
getFigmaProject
:获取 Figma 项目结构getFigmaComponentNodes
:从 Figma 文件中获取组件节点extractFigmaComponents
:从 Figma 文件中提取组件getFigmaComponentSets
:从 Figma 文件获取组件集generateReactComponent
:从 Figma 节点生成 React 组件generateComponentLibrary
:从 Figma 组件生成多个 React 组件writeComponentsToFiles
:将生成的组件写入文件figmaToReactWorkflow
:将 Figma 设计转换为 React 组件的完整工作流程figma.com/file/
后面的字符串)figmaToReactWorkflow
工具对于开发,您可以使用监视模式:
国际学习中心
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
通过从 Figma 文件中提取组件并将其转换为可立即使用的代码,将 Figma 设计转换为具有 TypeScript 和 Tailwind CSS 的 React 组件。
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