YetAnotherFigmaMCP
Allows AI agents to access cached Figma file data, including node trees, frame details, and search capabilities, to retrieve design information without exceeding Figma API rate limits.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@YetAnotherFigmaMCP find the 'Login Button' node in file abc123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
YetAnotherFigmaMCP
Figma ファイルをローカルキャッシュし、MCP (Model Context Protocol) サーバーとして提供する軽量ツール。
背景
Figma 無料プランでは API / MCP 呼び出し回数が月 6 回までに制限されています。本ツールは Figma のファイル・ノード JSON を事前取得しキャッシュすることで、この制限内で効率的にデザインデータを活用できるようにします。
Related MCP server: Figma MCP
特徴
事前キャッシュ方式: Figma API を事前に叩いて JSON をローカル保存
検索用インデックス: ノード名・フレーム名での高速検索
MCP サーバー: AI エージェントからキャッシュデータを参照可能
API 呼び出し最小化: キャッシュ生成時と明示的リフレッシュ時のみ API 使用
インストール
pip install yet-another-figma-mcpまたは uvx / pipx でも利用可能:
uvx yet-another-figma-mcp --help
pipx install yet-another-figma-mcpセットアップ
Figma API トークンの設定
環境変数に Figma API トークンを設定:
export FIGMA_API_TOKEN="your-figma-api-token"トークンは Figma の設定画面 から取得できます。
使い方
キャッシュの生成
# 単一ファイルのキャッシュ生成
yet-another-figma-mcp cache --file-id <FILE_ID>
# 複数ファイル
yet-another-figma-mcp cache --file-id <ID1> --file-id <ID2>
# ファイル ID リストから一括生成
yet-another-figma-mcp cache --file-id-list path/to/file_ids.txt
# 強制リフレッシュ(API を再度呼び出し)
yet-another-figma-mcp cache --file-id <FILE_ID> --refreshMCP サーバーの起動
# MCP サーバー起動
yet-another-figma-mcp serve
# 動作確認
yet-another-figma-mcp statusClaude Desktop での設定
claude_desktop_config.json に以下を追加:
{
"mcpServers": {
"figma-cache": {
"command": "uvx",
"args": ["yet-another-figma-mcp", "serve"]
}
}
}MCP ツール一覧
MCP サーバーは以下のツールを提供します:
get_cached_figma_file
指定ファイルのノードツリーやメタデータを取得。
引数:
- file_id: string (必須)
返り値:
- ルートノードと主要フレーム一覧
- ファイル全体のメタデータget_cached_figma_node
単一ノードの詳細情報を取得。
引数:
- file_id: string (必須)
- node_id: string (必須)
返り値:
- ノードのプロパティ(type, name, layout, style, children など)search_figma_nodes_by_name
ノード名でノードを検索。
引数:
- file_id: string (必須)
- name: string (必須)
- match_mode: "exact" | "partial" (オプション、デフォルト: exact)
- limit: number (オプション)
返り値:
- マッチしたノードのリストsearch_figma_frames_by_title
フレーム名からフレームノードを検索。
引数:
- file_id: string (必須)
- title: string (必須)
- match_mode: "exact" | "partial" (オプション)
- limit: number (オプション)
返り値:
- 対象フレームノードの一覧list_figma_frames
ファイル直下の主要フレーム一覧を取得。
引数:
- file_id: string (必須)
返り値:
- フレーム名・node_id・パスのリストキャッシュファイルの構造
~/.yet_another_figma_mcp/
index.json # 全ファイル共通のメタ情報
<file_id>/
file_raw.json # Figma API /files の生 JSON
nodes_index.json # ノード検索用インデックスユースケース例
画面実装の参照
ユーザー: 「サインアップ画面を実装してください」
→ AI: search_figma_frames_by_title で「Sign Up」を検索
→ AI: get_cached_figma_node でフレーム構造を取得
→ AI: 取得したデザイン情報をもとにコード生成コンポーネントの特定
ユーザー: 「Primary Button のスタイルを教えて」
→ AI: search_figma_nodes_by_name で検索
→ AI: get_cached_figma_node で詳細取得制限事項
本ツールは PoC(Proof of Concept)として以下の機能はスコープ外としています:
スクリーンショット取得
Code Connect(ノード⇔コンポーネント対応)
変数・デザイントークンの取得
FigJam 対応
開発
セットアップ
# 開発用依存関係をインストール
uv sync --group devTask コマンド(推奨)
Task がインストールされている場合、以下のコマンドが使えます:
# 利用可能なタスク一覧
task
# 依存関係インストール
task install
# リント
task lint
# リント(自動修正付き)
task lint:fix
# フォーマット
task format
# フォーマット確認(修正なし)
task format:check
# 型チェック
task typecheck
# テスト
task test
# テスト(詳細出力)
task test:verbose
# テスト(並列実行)
task test:parallel
# テスト(カバレッジ付き)
task test:cov
# 全チェック(lint + format:check + typecheck + test)
task check
# pre-commit フック実行
task pre-commit
# MCP サーバー起動
task serve
# MCP サーバー起動(詳細ログ付き)
task serve:verbose
# キャッシュ状態確認
task status
# Figma ファイルをキャッシュ
task cache -- -f <FILE_ID>
# 生成ファイルのクリーンアップ
task clean手動実行
# リント
uv run ruff check .
# フォーマット
uv run ruff format .
# 型チェック
uv run pyright
# テスト
uv run pytestAcknowledgments
Figma-Context-MCP - AI 向けノード簡略化のアプローチを参考にさせていただきました
ライセンス
MIT License - 詳細は LICENSE を参照してください。
Available Tools
5 toolsget_cached_figma_fileA
Get cached Figma file metadata and top-level frames. Returns file name, version, last modified date, and a list of main frames. Use this tool first to understand the structure of a Figma file.
Inputs: file_id (required).
get_cached_figma_nodeA
Get detailed information for a specific node including all properties (type, name, layout, style, children, etc.). Use this after finding a node ID via search or list_figma_frames. Use 'depth' to limit children depth, 'simplified' for AI-optimized output.
Inputs: file_id (required), node_id (required), depth, simplified.
list_figma_framesA
List all top-level frames in the file (including frames inside sections). Useful for getting an overview of the design structure. Returns frame names, IDs, and their paths in the document hierarchy.
Inputs: file_id (required).
search_figma_frames_by_titleA
Search frame nodes by title. Useful for finding specific screens, pages, or components. Returns matching frames with their IDs and paths.
Inputs: title (required), file_id (required), limit, match_mode, +1 more.
search_figma_nodes_by_nameA
Search nodes by name. Supports exact and partial matching. Returns matching nodes with their IDs, types, and paths. Useful for finding specific components, buttons, icons, etc.
Inputs: name (required), file_id (required), limit, match_mode, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Tools are mostly distinct, but list_figma_frames and get_cached_figma_file both return frame lists, which could cause confusion. Search nodes by name and search frames by title also overlap, though descriptions clarify the scope difference.
All tools follow a consistent <verb>_figma_<resource> pattern, using get for single resources, search/list for plural collections, and qualifiers like by_name or by_title for searches. This makes the set predictable and easy to navigate.
Five tools is a well-scoped size for a read-only Figma caching server, covering file metadata, frame enumeration, node search, and node detail retrieval without unnecessary bloat.
The toolkit covers the core exploration workflow: get file → list frames → search nodes → get node details. Minor gaps exist, such as no direct asset export or style querying, but the stated purpose is served without dead ends.
Maintenance
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- AlicenseAqualityDmaintenanceLocal-first MCP server that connects AI coding agents to the currently open Figma file through a local plugin bridge, requiring no Figma API token.8MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for the Figma API. Lets AI agents fetch designs, nodes, and rendered images from Figma.2,146 npm-
- FlicenseNot gradedqualityCmaintenanceA local, high-performance replacement for the hosted Figma MCP server that caches Figma files and exposes a local MCP endpoint for Cursor or any MCP client.-
- FlicenseBqualityDmaintenanceMCP server that fetches Figma data (file trees, nodes, images, components, styles, variables) and serves as a foundation for Flutter code generation.13-