Figma MCP Server
Figma MCP サーバー
Figma ファイル構造を分析するための MCP (Model Context Protocol) サーバー。
特徴
Figmaファイルを分析してノード階層を抽出する
REST APIとMCPプロトコルの両方をサポート
設定可能なノードツリーの深さ
Related MCP server: Figma MCP
前提条件
Node.js 16以上
npmまたはyarn
Figma APIキー
インストール
npmから
npm install -g figma-mcp-server出典
git clone https://github.com/yourusername/mcp-figma.git
cd mcp-figma
npm install
npm run build構成
サンプル環境ファイルをコピーし、Figma API キーを追加します。
cp .env.example .env次に、 .envファイルを編集し、Figma API キーを追加します。
FIGMA_API_KEY=your_figma_api_key_hereFigma アカウント設定から Figma API キーを取得できます: https://www.figma.com/developers/api#access-tokens
使用法
REST APIサーバーとして
サーバーを起動します。
npm startこれにより、ポート 3000 (または.envファイルで指定されたポート) で Express サーバーが起動します。
APIエンドポイント
GET /health- ヘルスチェックエンドポイントGET /openapi.json- OpenAPI仕様GET /mcp.json- MCP マニフェストPOST /analyze- Figma ファイルを解析する
分析エンドポイントへのリクエストの例:
curl -X POST http://localhost:3000/analyze \
-H "Content-Type: application/json" \
-d '{"figmaUrl": "https://www.figma.com/file/FILE_ID/PROJECT_NAME?node-id=NODE_ID", "depth": 2}'MCPサーバーとして
サーバーは、MCP プロトコルを介して LLM によって直接使用できます。
figma-mcp-server --cliまたはソースから実行する場合:
npm run start -- --cliクライアントの例
シンプルなクライアントサンプルが含まれています。使い方は以下のとおりです。
node client-example.js https://www.figma.com/file/FILE_ID/PROJECT_NAME?node-id=NODE_ID 2最後のパラメータはオプションの深度パラメータです。
発達
開発モードで実行
npm run devテスト
npm testドッカー
コンテナ化されたデプロイメント用に Dockerfile が提供されています。
docker build -t figma-mcp-server .
docker run -p 3000:3000 --env-file .env figma-mcp-serverライセンス
マサチューセッツ工科大学
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with Figma designs through the Figma API, allowing users to export images in multiple formats, extract style data and CSS, analyze design elements, and retrieve SVG code from Figma files. Supports batch operations and comprehensive design element analysis including images, vectors, and components.72011MIT
- FlicenseAqualityDmaintenanceEnables interaction with Figma files through intelligent API access, providing navigation, asset extraction, and design token retrieval with 95% token-optimized compact tree output format.151
- AlicenseNot gradedqualityDmaintenanceEnables developers to extract and organize Figma design files, including complete node data (tree structure and images) for AI understanding and code generation.MIT
- FlicenseNot gradedqualityCmaintenanceRead-only MCP server that wraps the Figma REST API, providing tools like get file metadata, list frames, and export node image URLs for AI SDLC agents.
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Convert Revit files to XKT, IFC, or DWG and query BIM data via natural language.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/moonray/mcp-figma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server