Gravity Global Figma MCP
グラビティグローバル フィグマ MCP
Gravity Global Figma MCP は、モデル コンテキスト プロトコル (MCP) を介して Figma と Cursor を統合し、コード変換のために Figma から設計データを取得して最適化できるようにするツールです。
主な特徴
Figmaデータ取得: URLまたはファイルIDを使用してFigmaファイルからデザイン情報を取得します
データ最適化: 不要なプロパティを削除してJSONのサイズを縮小します
CSS 変換: スタイルを自動的にグループに分割して整理します (タイポグラフィ、色、レイアウトなど)
CSSクラス名生成:プロパティに基づいて意味のあるクラス名を自動的に作成します
デザイントークンの抽出:Figmaのデザインからタイポグラフィとカラートークンを抽出します
Related MCP server: Talk to Figma MCP
インストール
リポジトリをクローンします。
git clone <repository-url>依存関係をインストールします:
npm install.envファイルを作成し、Figma API トークンを追加します。
FIGMA_API_KEY=your_figma_api_token_hereMCP サーバーを実行します。
node index.js使用法
カーソルチャット
カーソル チャットを通じて次のツールを使用できます。
1. Figmaからデータを取得する
Get data from Figma URL https://www.figma.com/file/abc123/my-design?node-id=123-456結果: MCP は最適化された Figma データを返します。
2. デザイントークンの抽出
Extract typography and color tokens from Figma URL https://www.figma.com/file/abc123/my-design結果: MCP は、Figma デザインから抽出されたタイポグラフィとカラー トークンを含む JSON オブジェクトを返します。
応答例:
{
"typography": {
"opensans-600-32": {
"fontFamily": "Open Sans",
"fontSize": "32px",
"fontWeight": 600,
"lineHeight": "48px"
},
"avenirnext-400-16": {
"fontFamily": "Avenir Next",
"fontSize": "16px",
"fontWeight": 400,
"lineHeight": "24px"
}
},
"colors": {
"bg-ffffff": "#ffffff",
"text-030e12": "#030e12"
}
}3. オプション
figmaデザインツール:
fullJson=true : 完全な非圧縮JSONデータを返します
cleanData=true : HTML/CSSレンダリングに不要なプロパティを削除します
figmaTokensツール:
tokenTypes=["typography"] : タイポグラフィトークンのみ抽出します
tokenTypes=["colors"] : 色トークンのみ抽出する
tokenTypes=["typography", "colors"] : 両方を抽出(デフォルト)
例:
Extract only color tokens from Figma URL https://www.figma.com/file/abc123/my-designデータ構造
変換されたFigmaデータの構造は次のようになります。
{
"nodes": {
"nodeId": {
"id": "nodeId",
"name": "Node Name",
"type": "FRAME",
"fillStyleId": "style123",
"layoutStyleId": "style456",
"children": [...]
}
},
"styles": {
"style123": {
"backgroundColor": "#ffffff",
"opacity": 1,
"categories": { "colors": "color1" }
}
},
"optimizedStyles": {
"typography": {...},
"colors": {...},
"layout": {...},
"spacing": {...},
"sizing": {...}
},
"classNames": {
"style123": "bg-1",
"style456": "flex-row-1"
}
}技術的な詳細
Figmaデータ取得
このツールは、Figma REST APIを使用してデザインデータを取得します。通常のファイルと新しいデザインのURLの両方をサポートしています。node node-idを使用して特定のノードを指定できます。
データの最適化
最適化プロセスには次の手順が含まれます。
不要なプロパティを削除する
スタイルをグループに分ける (タイポグラフィ、色、レイアウトなど)
類似のスタイルを統合して重複を減らす
CSSクラス名の自動生成
トークン抽出
トークン抽出プロセス:
デザインに使用されているタイポグラフィとカラースタイルを識別します
各トークンの標準化された命名規則を作成します
トークンをタイプ(書体または色)別にグループ化します
重複を削除して整理し、デザインシステムとの統合を容易にします
制限事項
MCPでは返されるデータのサイズに制限があり、大きなファイルは
figma_dataディレクトリに保存されます。複雑なベクトル特性は完全には保存されない
複雑なグラデーションや効果には追加の処理が必要になる場合があります
ライセンス
MITライセンス
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
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that integrates Figma design files with AI coding tools like Cursor, Windsurf, and Cline, allowing AI tools to access and understand Figma design data for generating more accurate code.41930MIT
- AlicenseBqualityDmaintenanceAllows Cursor AI to communicate with Figma for reading designs and modifying them programmatically through a Model Context Protocol integration.388821MIT
- FlicenseNot gradedqualityDmaintenanceProvides secure access to Figma designs through Cursor IDE using a personal access token, enabling developers to list files, export assets, extract design tokens, and search designs without requiring individual Figma accounts.
- AlicenseNot gradedqualityDmaintenanceEnables Cursor AI to read and modify Figma designs via the Model Context Protocol, allowing programmatic control over documents, components, styles, and more.882MIT
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Turn any live website into brand colors, fonts, design tokens, SVGs, Lottie and paste-ready code.
UI design from prompts, screenshots, and URLs for AI coding agents and theme tokens.
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/nguyenlegravityglobal/figma-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server