Local Figma MCP server: Figma frames to Flutter and React code, and design in Figma. No API limits.
io.github.irshadio/figmcp — Local Figma MCP Server
Local Figma MCP server. It converts Figma frames into Flutter and React code, while also supporting “design in Figma.” The server description indicates it is local and that there are “no API limits.”
🛠️ Key Features
Local Figma integration
Figma frame-to-code conversion
Outputs for Flutter and React
Design work within Figma
“No API limits”
🚀 Use Cases
Turning Figma frames into Flutter code
Turning Figma frames into React code
Keeping design and implementation workflows connected
⚡ Developer Benefits
Direct transformation from Figma frames to Flutter/React code
Avoids API-limit constraints per the provided description
⚠️ Limitations
Provided data does not specify supported code formats, endpoints, tool list, or configuration details
Design and code, locally.
Turn Figma frames into Flutter and React code, and let your coding agent design in Figma.
No Figma API calls. No rate limits.
figmcp is a local MCP server that gives your coding agent the Figma file you have open in Figma Desktop. A development plugin streams the file to a server on your machine over localhost, so reads never touch the Figma REST API: no access token, no quota, no rate limit.
Design to code. Flutter widgets for Flutter projects, React + Tailwind for everything else, with the assets and a screenshot to compare against.
Design in Figma. The agent creates and edits frames in the open file with Figma plugin API scripts, one undo step per script.
Your components. Map design components to code components with Code Connect.
Works offline. Read saved snapshots when the plugin is closed.
Any plan. Works on every Figma plan, including the free Starter plan. No Dev Mode seat needed.
Works with Claude Code, Cursor, Claude Desktop and any MCP client that runs stdio servers.
Quick start
Needs Node.js 18+ and Figma Desktop on macOS or Windows.
1. Run setup
bash
npx -y @irshad.io/figma-local-mcp@latest setup
It registers the server with Claude Code, copies the Figma plugin to your home folder, and prints your pairing code and the config for other MCP clients.
2. Import the plugin (once)
In Figma Desktop, go to Plugins › Development › Import plugin from manifest… and choose:
On macOS, press ⌘⇧G in the file picker and paste the path. On Windows, paste it into the File name box.
3. Pair and ask
Restart your coding agent. In Figma Desktop, run Plugins › Development › figmcp and enter the pairing code. The dot turns green once it's connected. Then select a frame and ask:
Select a frame, or paste a Figma link that has a node-id:
code
implement this frame as a Flutter screen and match the spacing exactly
build this frame as a React component with Tailwind, using our existing Button
compare your screen with the Figma screenshot and fix the differences
Projects with a pubspec.yaml get Flutter widgets, and SVGs and images are saved into the asset folders the pubspec declares. Everything else gets React + Tailwind. The code is a reference that your agent adapts to your project. More →
Design in Figma
Open the file in Figma Desktop, run the plugin and ask:
code
design a settings screen for a 390x844 phone in Figma
add a dark mode version of the selected frame next to it
The agent builds the design with use_figma and checks each step with a screenshot. Each script is one undo step. More →
Code Connect
code
map the selected button to AppButton in lib/widgets/app_button.dart
which components in this frame are not mapped yet?
Mapped instances come back as your own components. Mappings are saved in .figma-local/code-connect.json in your project. More →
MCP clients
Claude Code is registered by setup. Restart it and check with /mcp.
Cursor, Claude Desktop and other clients: add the config that setup prints. It looks like this, with paths for your machine:
The plugin reads the open file with the Figma plugin API and runs the scripts your agent sends. The server turns that into code, assets, screenshots and metadata. When the plugin is closed, reads fall back to the newest saved snapshot. More →
Configuration
Set these in the env of your MCP client config.
Variable
Default
Description
FIGMA_LOCAL_MCP_DIR
~/.figma-local-mcp
Data folder: plugin, pairing code, snapshots and assets.
FIGMA_LOCAL_MCP_FRAMEWORK
Force flutter or react when the client doesn't say.
FIGMA_LOCAL_MCP_CODE_CONNECT
.figma-local/code-connect.json
Path of the Code Connect mappings file.
FIGMA_LOCAL_MCP_ALLOW_ORIGINS
Comma separated extra origins the server accepts for the plugin.
Update
bash
npx -y @irshad.io/figma-local-mcp@latest setup
Then restart your coding agent and run the plugin again. The plugin updates itself, so there's no need to import it again.
Troubleshooting
The dot stays grey: start your coding agent first, then run the plugin again.
Lost the pairing code: run setup again, or ask your agent to run whoami.
use_figma can't edit the file: switch the file from Dev Mode back to Design mode.