A
securityF
licenseA
qualityEnables seamless interaction with Figma via the Model Context Protocol, allowing LLM applications to access, manipulate, and track Figma files, components, and variables.
Last updated -
2
106
TypeScript
用于分析 Figma 文件结构的 MCP(模型上下文协议)服务器。
复制示例环境文件并添加您的 Figma API 密钥:
然后编辑.env
文件并添加您的 Figma API 密钥:
您可以从 Figma 帐户设置中获取 Figma API 密钥: https://www.figma.com/developers/api#access-tokens
启动服务器:
这将在端口 3000(或.env
文件中指定的端口)上启动 Express 服务器。
GET /health
- 健康检查端点GET /openapi.json
- OpenAPI 规范GET /mcp.json
- MCP 清单POST /analyze
- 分析 Figma 文件对分析端点的示例请求:
LLM 可以通过 MCP 协议直接使用该服务器:
或者如果从源运行:
包含一个简单的客户端示例。使用方法如下:
最后一个参数是可选的深度参数。
提供了一个 Dockerfile 用于容器化部署:
麻省理工学院
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
通过提取节点层次结构来促进对 Figma 文件结构的分析,可通过 REST API 或 MCP 协议访问。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/moonray/mcp-figma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server