Skip to main content
Glama

NCDS Figma MCP Server

README.zh-cn.md4.51 kB
<a href="https://www.framelink.ai/?utm_source=github&utm_medium=readme&utm_campaign=readme" target="_blank" rel="noopener"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://www.framelink.ai/github/HeaderDark.png" /> <img alt="Framelink" src="https://www.framelink.ai/github/HeaderLight.png" /> </picture> </a> <div align="center"> <h1>Framelink Figma MCP 服务器 + NCDS</h1> <p> 🌐 可用语言: <a href="README.md">English (英语)</a> | <a href="README.ko.md">한국어 (韩语)</a> | <a href="README.ja.md">日本語 (日语)</a> | <a href="README.zh-tw.md">繁體中文 (繁体中文)</a> </p> <h3>为您的编码代理提供 Figma 数据访问权限。<br/>一次性在任何框架中实现设计。</h3> <a href="https://npmcharts.com/compare/figma-developer-mcp?interval=30"> <img alt="每周下载" src="https://img.shields.io/npm/dm/figma-developer-mcp.svg"> </a> <a href="https://github.com/GLips/Figma-Context-MCP/blob/main/LICENSE"> <img alt="MIT 许可证" src="https://img.shields.io/github/license/GLips/Figma-Context-MCP" /> </a> <a href="https://framelink.ai/discord"> <img alt="Discord" src="https://img.shields.io/discord/1352337336913887343?color=7389D8&label&logo=discord&logoColor=ffffff" /> </a> <br /> <a href="https://twitter.com/glipsman"> <img alt="Twitter" src="https://img.shields.io/twitter/url?url=https%3A%2F%2Fx.com%2Fglipsman&label=%40glipsman" /> </a> </div> <br/> 此项目从 Framelink Figma MCP 服务器分支,包含了基于 NCDS 的额外实现。通过此 [Model Context Protocol](https://modelcontextprotocol.io/introduction) 服务器,为 [Cursor](https://cursor.sh/) 和其他 AI 驱动的编码工具提供 Figma 文件访问权限。 当 Cursor 可以访问 Figma 设计数据时,它比粘贴截图等替代方法**更**能一次性准确实现设计。 <h3><a href="https://www.framelink.ai/docs/quickstart?utm_source=github&utm_medium=readme&utm_campaign=readme">查看快速入门指南 →</a></h3> ## 演示 [观看使用 Figma 设计数据在 Cursor 中构建 UI 的演示](https://youtu.be/6G9yb-LrEqg) [![观看视频](https://img.youtube.com/vi/6G9yb-LrEqg/maxresdefault.jpg)](https://youtu.be/6G9yb-LrEqg) ## 工作原理 1. 打开 IDE 的聊天(例如:Cursor 的代理模式)。 2. 粘贴 Figma 文件、框架或组的链接。 3. 要求 Cursor 对 Figma 文件执行某些操作(例如:实现设计)。 4. Cursor 将从 Figma 获取相关元数据并使用它来编写代码。 此 MCP 服务器专为与 Cursor 一起使用而设计。在从 [Figma API](https://www.figma.com/developers/api) 响应上下文之前,它会简化和翻译响应,以便只向模型提供最相关的布局和样式信息。 减少提供给模型的上下文数量有助于提高 AI 的准确性并使响应更具相关性。 ## 开始使用 许多代码编辑器和其他 AI 客户端使用配置文件来管理 MCP 服务器。 可以通过将以下内容添加到配置文件中来设置 `@ncds/figma-mcp` 服务器。 > 注意:您需要创建 Figma 访问令牌才能使用此服务器。有关如何创建 Figma API 访问令牌的说明,请参见[此处](https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens)。 ### MacOS / Linux ```json { "mcpServers": { "NCDS Figma MCP": { "command": "npx", "args": ["-y", "@ncds/figma-mcp", "--figma-api-key=YOUR-KEY", "--stdio"] } } } ``` ### Windows ```json { "mcpServers": { "NCDS Figma MCP": { "command": "cmd", "args": ["/c", "npx", "-y", "@ncds/figma-mcp", "--figma-api-key=YOUR-KEY", "--stdio"] } } } ``` 或者您可以在 `env` 字段中设置 `FIGMA_API_KEY` 和 `PORT`。 有关如何配置 NCDS Figma MCP 服务器的更多信息,请参阅 [Framelink 文档](https://www.framelink.ai/docs/quickstart?utm_source=github&utm_medium=readme&utm_campaign=readme)。 ## 星标历史 <a href="https://star-history.com/#GLips/Figma-Context-MCP"><img src="https://api.star-history.com/svg?repos=GLips/Figma-Context-MCP&type=Date" alt="星标历史图表" width="600" /></a> ## 了解更多 此 NCDS Figma MCP 服务器从 Framelink 项目分支并实现了基于 NCDS 的额外源代码生成功能。原始的 Framelink Figma MCP 服务器简单但功能强大。在 [Framelink](https://framelink.ai?utm_source=github&utm_medium=readme&utm_campaign=readme) 网站上了解更多信息。

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/nhn-commerce-fe/figma-mcp-ncds'

If you have feedback or need assistance with the MCP directory API, please join our Discord server