Figma MCP Python
允许你的 AI 编码代理直接访问 Figma 文件和原型。如有任何问题或改进,请直接联系我: https://x.com/jasonzhou1993
使用 pipx 快速安装
pipx install figma-mcp
对于光标:
在设置中,使用以下命令添加 MCP 服务器:
figma-mcp --figma-api-key=your_figma_key
或者在您的项目中添加一个
.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"
]
}
}
}
Related MCP server: Figma MCP Server
安装 uv 并设置环境
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
source .venv/bin/activate
uv sync
本地测试
python -m figma_mcp.main