返回市场
菲玛-MCP

菲玛-MCP

作者:JayZeeDesign61 星标更新:2025-04-04

项目介绍

Figma MCP Python

PyPI 版本

允许您的AI编码代理直接访问Figma文件及原型。

您可以通过以下链接联系我,提出任何问题或改进建议:https://x.com/jasonzhou1993

<a href="https://glama.ai/mcp/servers/pqweyr4aq9"> <img width="380" height="200" src="https://gips3.baidu.com/it/u=3816493134,2102315236&fm=3081&app=3081&f=PNG?w=760&h=400" alt="figma-mcp MCP 服务器" /> </a>

使用pipx快速安装

pipx install figma-mcp

对于Cursor:

  1. 在设置中,使用以下命令添加一个MCP服务器:
figma-mcp --figma-api-key=your_figma_key
  1. 或者在项目中添加一个.cursor/mcp.json文件:
{
  "mcpServers": {
    "figma-python": {
      "command": "figma-mcp",
      "args": [
        "--figma-api-key=your_figma_key"
      ]
    } 
  }
}

对于其他IDE(如Windsurf),使用MCP配置文件(例如mcp_config.json):

{
  "mcpServers": {
    "figma-python": {
      "command": "figma-mcp",
      "args": [
        "--figma-api-key=your_figma_key"
      ]
    } 
  }
}

安装uv并设置环境

curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
source .venv/bin/activate
uv sync

本地测试

python -m figma_mcp.main