Skip to main content
Glama

Figma MCP 服务器

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

特征

  • 文件操作

    • 获取文件信息

    • 获取文件版本历史记录

    • 获取文件组件

  • 评论管理

    • 列出文件中的注释

    • 添加新评论

    • 删除评论

  • 项目和团队特色

    • 列出团队项目

    • 获取项目文件

    • 获取已发布的样式

  • Webhook 管理

    • 创建 webhook

    • 列出现有的 webhook

    • 删除 webhook

Related MCP server: Figma MCP Server

安装

  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 请求

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Latest Blog Posts

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/deepsuthar496/figma-mcp-server'

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