sunnysideFigma-Context
A comprehensive Model Context Protocol (MCP) server that bridges Figma designs with AI development workflows. It provides 30 specialized tools for extracting pixel-perfect code, assets, and component structures directly from Figma designs.
claude mcp add --transport stdio tercumantanumut-sunnysidefigma-context-mcp node server.js \ --env FIGMA_API_KEY="your_figma_api_key_here"
How to use
This MCP server bridges Figma designs with AI-powered agents to extract production-ready code, assets, and design tokens. It supports converting design descriptions into React, Vue, CSS, Tailwind, or styled-components code, as well as token extraction and asset handling. The server integrates with a local or remote Figma environment via the provided Figma API key and exposes three main access points: a real-time Figma plugin, a development bridge, and a direct API for programmatic control. After starting, you can interact with the MCP integration to describe designs, select elements in Figma, and request generated components, tokens, or assets.
To use the capabilities, first ensure your environment has Node.js 18+ and a valid FIGMA_API_KEY. The MCP will start alongside the plugin server when you run the start script. You can then describe what you want (e.g., turn a button into a React component, or extract color tokens) and the agent will return production-ready code, complete with types and styling as requested. You can also send Figma links directly to AI agents or operate through the dedicated API for automation workflows.
How to install
Prerequisites
- Node.js 18+ installed on your machine
- Git installed
- A Figma API key obtained from Figma
Install and run locally
- Clone the repository
git clone https://github.com/tercumantanumut/sunnysideFigma-Context-MCP
cd sunnysideFigma-Context-MCP
- Install dependencies
npm install
- Create a .env file with required credentials
FIGMA_API_KEY=your_figma_api_key_here
- Start the MCP server (and plugin bridge)
npm run start
Notes
- The start script launches both the Figma plugin server and the MCP integration.
- If you modify configuration, restart the server to apply changes.
Additional notes
Tips and caveats:
- Ensure your FIGMA_API_KEY is valid and has access to the needed Figma files.
- The MCP supports multiple output formats (React, Vue, CSS, Tailwind, styled-components). Specify your preferred format in the request or configuration where supported.
- Assets (SVGs, PNGs) can be downloaded and optimized automatically; ensure you have write permissions to the output directories.
- If you encounter plugin previews freezing in Figma, rely on the asset download path and API-based generation as a workaround.
- Environment variables can be extended for additional capabilities; refer to the docs for optional keys like design token naming preferences or token extraction rules.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.
promptboard
The Shared Whiteboard for Your AI Agents via MCP. Paste screenshots, mark them up, and share with AI.