Figma Context MCP
Extract code, assets, and component structures from Figma designs to use within AI workflows.
Sunnyside Figma MCP
What if you could talk to your Figma designs and turn them into production code? That's what we built.
What This Does
This tool connects your Figma designs to AI agents, making it possible to extract real code, assets, and design systems just by describing what you want. Think of it as a bridge between design and development that actually works.
We're not trying to replace designers or developers. We're trying to make the handoff between them seamless.
The Vision
Our dream is simple: select any Figma design, describe what you want, and get a complete, production-ready project. No more manual pixel-pushing, no more "this doesn't match the design" conversations.
We're getting close.
Getting Started
You'll need Node.js 18+ and a Figma API key. That's it.
git clone https://github.com/tercumantanumut/sunnysideFigma-Context-MCP
cd sunnysideFigma-Context-MCP
npm install
Create a .env
file:
FIGMA_API_KEY=your_figma_api_key_here
Start everything:
npm run start
This starts both the plugin server and MCP integration.
Install the Figma Plugin
- Open Figma Desktop
- Plugins → Development → Import plugin from manifest
- Select
figma-dev-plugin/manifest.json
- You're ready
How It Works
- Design in Figma - Just like you always do
- Select and describe - Tell an AI agent what you want: "Turn this button into a React component"
- Get code - Production-ready React, CSS, Tailwind, or Vue components
- Ship it - The code actually works
You can also send Figma links directly to AI agents (use "Copy link to selection" in Figma).
See It In Action
"Build me a login form from this design" → Gets complete React component with form validation, styled-components, and TypeScript types
"Extract all design tokens from this page" → Finds 47 color tokens, 12 spacing values, catches 3 conflicts, suggests naming fixes
"Turn this card into a reusable component" → Generates Vue component with props, variants, and proper responsive breakpoints
"Download all icons as optimized SVGs" → Batch downloads 15 icons, removes unnecessary code, saves 60% file size
"Check if my button styles are consistent" → Scans design system, finds 4 inconsistent button styles, shows exact pixel differences
"Create a complete component library from this design system" → Builds 20+ components with documentation, proper naming, and design token integration
What Makes This Different
- Real code extraction - Not guesswork, actual CSS values from Figma
- Design system aware - Understands your tokens, catches conflicts, suggests fixes
- Asset handling - Downloads SVGs, PNGs, optimizes everything
- Multiple formats - React, Vue, CSS, Tailwind, styled-components
- AI-first - Built for natural language interaction
Current Status
This is actively developed software. Things can break. We're pushing updates frequently because we're excited about where this is going.
What's working great:
- Code generation for React/CSS/Tailwind
- Design token extraction and conflict detection
- Asset downloading and optimization
- Plugin integration with all Figma editor types
What we're fixing:
- SVG/IMG previews in the plugin (they'll freeze Figma if you click them - agents can still download assets fine)
Three Ways to Connect
- Figma Plugin - Real-time extraction while you design
- Dev Mode Bridge - Works with Figma's official dev features
- Direct API - Programmatic access to everything
Pick what works for your workflow.
Documentation
Everything you need is in the docs folder. Start with installation if you want the full setup guide, or examples to see what's possible.
Contributing
We're building this in the open. If you see something that could be better, tell us or submit a PR.
License & Attribution
This builds on concepts from the Framelink MCP project but is substantially different. It's proprietary software by Sunnyside Software with specific licensing terms - see LICENSE for details.
For commercial use, reach out to Umut TAN at tercumantanumut@gmail.com.
Turning Figma designs into real code, one conversation at a time.
Related Servers
MCP RAG Server
A Python server providing Retrieval-Augmented Generation (RAG) functionality. It indexes various document formats and requires a PostgreSQL database with pgvector.
MCP Aggregator
An MCP (Model Context Protocol) aggregator that allows you to combine multiple MCP servers into a single endpoint allowing to filter specific tools.
DevContext
Provides developers with continuous, project-centric context awareness. Requires a TursoDB database.
Studio MCP
Turns any command-line interface (CLI) command into a simple StdIO-based MCP server.
Azure DevOps MCP Server
An MCP server for Azure DevOps, enabling AI assistants to interact with Azure DevOps APIs.
Enhanced AutoGen MCP Server
Integrates with Microsoft's AutoGen framework to enable sophisticated multi-agent conversations via the Model Context Protocol.
SDK MCP Server
An MCP server providing searchable access to multiple AI/ML SDK documentation and source code.
MCP Server Boilerplate
A TypeScript boilerplate for building MCP servers with streamable HTTP and OAuth proxy support.
MCP Server on Cloudflare
A template for deploying a remote MCP server on Cloudflare Workers without authentication.
HiGHS MCP Server
Provides linear programming (LP) and mixed-integer programming (MIP) optimization capabilities using the HiGHS solver.