
timholden/figma-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
timholden/figma-mcp-serverは、[[T0]からインポートされたMCPサーバー候補です。
概要
timholden/figma-mcp-serverは、[[T0]からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
モデルコンテキストプロトコル(MCP)サーバーで、Claudeや他のMCP互換クライアントを通じてFigmaのAPIと統合されます。現在、Figmaファイルやプロジェクトへの読み取り専用アクセスをサポートしており、サーバーサイドアーキテクチャにより高度なデザイントークンやテーマ管理機能(Figma APIの強化やプラグイン開発が待たれます)もサポート可能です。
プロジェクトの状況
現在の進捗
- ✅ コア実装:モデルコンテキストプロトコル(MCP)に準拠したTypeScriptサーバーの構築に成功
- ✅ Claudeデスクトップ統合:Claude Desktopでテストされ機能
- ✅ Read Operations:Figmaファイルアクセスのための動作する
get-fileおよび[list-filesツール - ✅ サーバーアーキテクチャ:キャッシュシステム、エラー処理、統計監視の実装
- ✅ トランスポートプロトコル:stdioおよびSSEの両方のトランスポートメカニズムをサポートしています
完全な機能の可能性
サーバーは以下の機能をサポートするコードで設計されています(現在はAPI制限により制限されています):
- 変数管理:デザイントークン(変数)の作成、読み取り、更新、削除
- 参照処理:トークン間の関係を作成・検証する
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Figma MCP Server
A Model Context Protocol (MCP) server that provides integration with Figma’s API through Claude and other MCP-compatible clients. Currently supports read-only access to Figma files and projects, with server-side architecture capable of supporting more advanced design token and theme management features (pending Figma API enhancements or plugin development).
Project Status
Current Progress
- ✅ Core Implementation: Successfully built a TypeScript server following the Model Context Protocol (MCP)
- ✅ Claude Desktop Integration: Tested and functional with Claude Desktop
- ✅ Read Operations: Working
get-fileandlist-filestools for Figma file access - ✅ Server Architecture: Caching system, error handling, and stats monitoring implemented
- ✅ Transport Protocols: Both stdio and SSE transport mechanisms supported
Potential Full Functionality
The server has been designed with code to support these features (currently limited by API restrictions):
- Variable Management: Create, read, update, and delete design tokens (variables)
- Reference Handling: Create and validate relationships between tokens
- Theme Management: Create themes with multiple modes (e.g., light/dark)
- Dependency Analysis: Detect and prevent circular references
- Batch Operations: Perform bulk actions on variables and themes
With Figma plugin development or expanded API access, these features could be fully enabled.
Features
- 🔑 Secure authentication with Figma API
- 📁 File operations (read, list)
- 🎨 Design system management
- Variable creation and management
- Theme creation and configuration
- Reference handling and validation
- 🚀 Performance optimized
- LRU caching
- Rate limit handling
- Connection pooling
- 📊 Comprehensive monitoring
- Health checks
- Usage statistics
- Error tracking
Prerequisites
- Node.js 18.x or higher
- Figma access token with appropriate permissions
- Basic understanding of MCP (Model Context Protocol)
Installation
npm install figma-mcp-server
Configuration
- Create a
.envfile based on.env.example:
# Figma API Access Token
FIGMA_ACCESS_TOKEN=your_figma_token
# Server Configuration
MCP_SERVER_PORT=3000
# Debug Configuration
DEBUG=figma-mcp:*
- For Claude Desktop integration:
The server can be configured in your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"figma": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/figma-mcp-server/dist/index.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "your_token_here"
}
}
}
}
Important Notes:
- Use ABSOLUTE paths, not relative paths
- On Windows, use double backslashes (\\) in paths
- Restart Claude Desktop after making configuration changes
Usage
Basic Usage
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"figma": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/figma-mcp-server/dist/index.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "your_token_here"
}
}
}
}