Figma MCP Server

by deepsuthar496
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides integration with Figma's API, enabling file operations (information retrieval, version history, components), comment management (listing, adding, deleting), project and team features (listing projects, getting files, accessing published styles), and webhook management.

Figma MCP 服务器

模型上下文协议 (MCP) 服务器提供与 Figma 的 API 集成,允许您与 Figma 文件、评论、组件等进行交互。

特征

  • 文件操作
    • 获取文件信息
    • 获取文件版本历史记录
    • 获取文件组件
  • 评论管理
    • 列出文件中的注释
    • 添加新评论
    • 删除评论
  • 项目和团队特色
    • 列出团队项目
    • 获取项目文件
    • 获取已发布的样式
  • Webhook 管理
    • 创建 webhook
    • 列出现有的 webhook
    • 删除 webhook

安装

  1. 克隆存储库
  2. 安装依赖项:
npm install
  1. 构建服务器:
npm run build

配置

使用 Figma 访问令牌在 MCP 设置文件中配置服务器:

{ "mcpServers": { "figma": { "command": "node", "args": ["path/to/figma-server/build/index.js"], "env": { "FIGMA_ACCESS_TOKEN": "your-access-token-here" }, "disabled": false, "alwaysAllow": [] } } }

可用工具

文件操作

获取文件

获取有关 Figma 文件的信息

{ "file_key": "string" }

获取文件版本

获取文件的版本历史记录

{ "file_key": "string" }

获取文件组件

获取文件中的组件

{ "file_key": "string" }

评论管理

获取文件评论

从文件中获取评论

{ "file_key": "string" }

发表评论

对文件发表评论

{ "file_key": "string", "message": "string" }

删除评论

从文件中删除评论

{ "file_key": "string", "comment_id": "string" }

项目与团队运营

获取团队项目

为团队获取项目

{ "team_id": "string" }

获取项目文件

获取项目中的文件

{ "project_id": "string" }

获取组件样式

获取已发布的样式

{ "team_id": "string" }

Webhook 管理

创建webhook

创建 webhook

{ "team_id": "string", "event_type": "string", "callback_url": "string" }

获取网络钩子

列出 webhook

{ "team_id": "string" }

删除webhook

删除 Webhook

{ "webhook_id": "string" }

使用示例

// Example using the MCP tool to get file information <use_mcp_tool> <server_name>figma</server_name> <tool_name>get_file</tool_name> <arguments> { "file_key": "your-file-key" } </arguments> </use_mcp_tool>

执照

麻省理工学院

贡献

  1. 分叉存储库
  2. 创建你的功能分支
  3. 提交你的更改
  4. 推送到分支
  5. 创建新的 Pull 请求
-
security - not tested
F
license - not found
-
quality - not tested

与 Figma 的 API 集成的模型上下文协议服务器,允许与 Figma 文件、评论、组件、项目和 webhook 管理进行交互。

  1. Features
    1. Installation
      1. Configuration
        1. Available Tools
          1. File Operations
          2. Comment Management
          3. Project & Team Operations
          4. Webhook Management
        2. Usage Example
          1. License
            1. Contributing
              ID: sv4uz7lblg