MCP Figma to React Converter
MCP FigmaからReactへのコンバーター
これは、FigmaのデザインをReactコンポーネントに変換するModel Context Protocol(MCP)サーバーです。Figmaのデザインを取得し、TypeScriptとTailwind CSSを使用してReactコンポーネントを生成するためのツールを提供します。
特徴
Figma API を使用して Figma デザインを取得する
Figmaのデザインからコンポーネントを抽出する
TypeScriptでReactコンポーネントを生成する
Figmaスタイルに基づいてTailwind CSSクラスを適用する
アクセシビリティ機能でコンポーネントを強化する
stdioとSSEトランスポートの両方をサポート
Related MCP server: Figma MCP Server
前提条件
Node.js 18以上
Figma APIトークン
インストール
リポジトリをクローンする
依存関係をインストールします:
npm installプロジェクトをビルドします。
npm run build構成
FIGMA_API_TOKEN環境変数をFigma APIトークンに設定する必要があります。個人アクセストークンはFigmaアカウント設定ページから取得できます。
使用法
ローカルMCPサーバーとして実行
FIGMA_API_TOKEN=your_token_here npm startまたは明示的なトランスポートの場合:
FIGMA_API_TOKEN=your_token_here node dist/index.js --transport=stdioHTTPサーバーとして実行
FIGMA_API_TOKEN=your_token_here node dist/index.js --transport=sse利用可能なツール
Figmaツール
getFigmaProject: Figma プロジェクト構造を取得するgetFigmaComponentNodes: Figma ファイルからコンポーネントノードを取得しますextractFigmaComponents: Figma ファイルからコンポーネントを抽出しますgetFigmaComponentSets: Figma ファイルからコンポーネント セットを取得します。
Reactツール
generateReactComponent: FigmaノードからReactコンポーネントを生成するgenerateComponentLibrary: Figma コンポーネントから複数の React コンポーネントを生成するwriteComponentsToFiles: 生成されたコンポーネントをファイルに書き込むfigmaToReactWorkflow: FigmaのデザインをReactコンポーネントに変換する完全なワークフロー
ワークフローの例
Figmaファイルキー(URLの
figma.com/file/の後の文字列)を取得します。ファイルキーと出力ディレクトリを指定して
figmaToReactWorkflowツールを使用するこのツールはコンポーネントを抽出し、Reactコードを生成し、ファイルを保存します。
発達
開発の場合は、ウォッチ モードを使用できます。
npm run devライセンス
ISC
This server cannot be deployed
Maintenance
Related MCP Connectors
React + Tailwind UI components and recipes your AI coding tool can search and install.
Build and manage your design system with AI: tokens, themes, components, icons, Figma and code.
React, Tailwind CSS and shadcn/ui components, sections and landing pages for coding agents.
Turn any live website into brand colors, fonts, design tokens, SVGs, Lottie and paste-ready code.
Related MCP Servers
- AlicenseCqualityDmaintenanceConverts Figma designs to React Native components, allowing users to extract components from Figma designs and generate corresponding React Native components with proper typing and styling.331 npm8MIT
- AlicenseBqualityDmaintenanceA bridge between Figma designs and React implementations that enables pixel-perfect conversion of Figma designs into React applications by processing Figma file data into React-friendly format.53,295 npm2ISC
- AlicenseNot gradedqualityDmaintenanceConverts Figma designs to React/Vue code using existing Design System components, ensuring consistency by enforcing component library usage instead of custom CSS or Tailwind.47 npm1MIT
- AlicenseAqualityDmaintenanceConverts Figma designs into production-ready React components with design token extraction, widget registry integration, and micro-frontend module generation.329 npm1MIT