本文へスキップ
TakoAPI
スキル一覧に戻る

windows-vsCode-cline-figma-mcp-

leihuan123 作

Cline
—まだ評価がありません
あなたの評価

概要

windows环境figma-developer-mcp服务配置

説明

# windows-vsCode-cline-figma-developer-mcp
windows环境figma-developer-mcp服务配置;<br/>
1、需要全局安装node16以上版本;<br/>
2、vscode版本需要较新的版本,目前测试的是1.98.2;<br/>
3、在vscode的插件市场找到Cline插件并安装;<br/>
4、安装完成后配置大模型默认是openRouter,选择完成后需要配置大模型的key,至于key怎么获取网上很多方法,大模型的官网一般都有介绍,基本就是注册账号就行;<br/>
![cline大模型配置图片](assets/images/cline1.png)<br/>
5、配置完大模型后在顶部有个四个小方块的按钮,就是MPC Servers服务,点击后可以搜索figma就可以找到,点击install,根据大模型提示一步步安装,安装过程中需要记住安装的路径;<br/>
![cline的MCP Servers](assets/images/cline2.png)<br/>
6、如果安装不好,也可以去https://github.com/MatthewDailey/figma-mcp;自行下载,然后网站提示安装即可(一般就是下载完,npm install就可以了);<br/>
7、获取figma的key,去官网中就到setting中的security中获取;地址https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens;<br/>
8、前面的步骤都比较简单,重点是配置mcpServers,官网给的macOS环境下的配置<br/>
{
  "mcpServers": {
    "figma-developer-mcp": {
      "command": "npx",
      "args": ["-y", "figma-developer-mcp", "--stdio"],
      "env": {
        "FIGMA_API_KEY": "<your-figma-api-key>"
      }
    }
  }
}
按照这个配置在windows下是不行的;<br/>
网上有说按以下配置,但是我这里没有配置成功<br/>
{
  "mcpServers": {
    "figma-developer-mcp": {
      "command": "cmd",
      "args": ["/c","npx","-y", "figma-developer-mcp", "--stdio"],
      "env": {
        "FIGMA_API_KEY": "<your-figma-api-key>"
      }
    }
  }
}
<br/>
9、下面是已经成功的配置<br/>
{
  "mcpServers": {
    "figma-developer-mcp": {
      "command": "node",
      "args": [
        "D:/Figma-Context-MCP-main/dist/index.js",
        "--figma-api-key=你的figmaApiKey",
        "-y", 
        "figma-developer-mcp",
        "--stdio"
      ],
      "env": {
        "FIGMA_API_KEY": "你的figmaApiKey"
      }
    }
  }
};
![cline的MCP Servers配置](assets/images/cline3.png)<br/>
其中D:/Figma-Context-MCP-main/dist/index.js为安装编译完后的文件地址;

インストール

https://github.com/leihuan123/windows-vsCode-cline-figma-mcp- からスキルをインストールして

このスキルはClawHubレジストリには公開されていません。Claude Code、Cursor、Codexなどのコーディングエージェントにプロンプトを貼り付けると、ソースリポジトリから直接インストールされます。

リポジトリを開く

リンク