YL

youware-labs/figma-pilot

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

105 stars 10 forks 质量 71 趋势 0MIT

youware-labs/figma-pilot 是一个从 https://github.com/youware-labs/figma-pilot. 导入的 MCP 候选服务器。

概览

youware-labs/figma-pilot 是一个从 https://github.com/youware-labs/figma-pilot. 导入的 MCP 候选服务器。

概述(AI 翻译)

人工智能代理通过代码执行控制Figma。

英语 |中文

演示

OpenAI 登陆页

提示:“创建一个OpenAI风格的落地页,介绍即将在Figma发布的GPT 5.3”

Manus 设计系统

提示:“基于截图生成Manus设计系统组件,在Figma上”

设计理念

本项目灵感来源于 Anthropic 的 MCP 代码执行方法。

Figma-pilot 没有暴露数十个单独的 MCP 工具(这些工具会让上下文窗口膨胀并减缓代理),而是只提供 3 个工具:

工具 描述
figma_status 检查连接状态
figma_execute 使用完整的Figma API执行JavaScript代码
figma_get_api_docs 获取API文档

AI编写代码与Figma交互。这意味着:

  • 工具定义中的token数减少90%+
  • 批处理操作 - 一次调用修改100个元素
  • 数据过滤 - 在返回上下文前过滤结果
  • 复杂的工作流程——循环、条件句、错误处理

快速启动

先决条件

  • Node.js >= 18
  • Figma 桌面应用

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

figma-pilot

AI agents control Figma through code execution.

English | 中文

Demo

OpenAI Landing Page

Prompt: “Create an OpenAI style landing page introducing the upcoming GPT 5.3 release on Figma”

Manus Design System

Prompt: “Generate a Manus design system components based on the screenshot, on Figma”

Design Philosophy

This project is inspired by Anthropic’s Code execution with MCP approach.

Instead of exposing dozens of individual MCP tools (which bloat the context window and slow down agents), figma-pilot provides only 3 tools:

Tool Description
figma_status Check connection status
figma_execute Execute JavaScript code with full Figma API
figma_get_api_docs Get API documentation

The AI writes code to interact with Figma. This means:

  • 90%+ fewer tokens in tool definitions
  • Batch operations - modify 100 elements in one call
  • Data filtering - filter results before returning to context
  • Complex workflows - loops, conditionals, error handling

Quick Start

Prerequisites

  • Node.js >= 18
  • Figma Desktop app
  • An MCP-compatible AI client (Claude Desktop, Claude Code, Cursor, Codex, etc.)

1. Install MCP Server

# Claude Code
claude mcp add figma-pilot -- npx @youware-labs/figma-pilot-mcp

# Other MCP clients - add to your MCP config:
{
  "mcpServers": {
    "figma-pilot": {
      "command": "npx",
      "args": ["@youware-labs/figma-pilot-mcp"]
    }
  }
}

Config locations:

  • Claude Desktop: ~/.config/claude/claude_desktop_config.json (macOS/Linux)
  • Cursor: ~/.cursor/mcp.json

The skills/ folder contains API documentation that helps AI agents use figma_execute correctly. Install it to your AI client’s skill directory:

AI Client Skill Directory
Claude Code / Codex ~/.codex/skills/figma-pilot
Cursor ~/.cursor/skills-cursor/figma-pilot
Claude Desktop ~/.claude/skills/figma-pilot

After installation, restart your AI client to pick up the new skill.

3. Install Figma Plugin

  1. Download figma-pilot-plugin-vX.X.X.zip from Releases
  2. Unzip the file
  3. In Figma: Plugins > Development > Import plugin from manifest…
  4. Select manifest.json from the unzipped folder
  5. Run: Plugins > Development > figma-pilot

4. Verify Connection

Ask your AI agent:

在 GitHub 查看完整 README

安装

npx @youware-labs/figma-pilot-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "figma-pilot": { "command": "npx", "args": ["@youware-labs/figma-pilot-mcp"] } } }