Custom Figma MCP
Local bridge enabling AI agents to inspect and edit the currently open Figma Desktop file through the Figma Plugin API.
README
Custom Figma MCP
Use Codex or Claude Code to inspect and edit the Figma file that is open in Figma Desktop.
This is a local tool. It does not use the official Figma MCP, Figma OAuth, Figma API keys, file keys, or Figma web URLs for normal editing.
Install First
1. Install Requirements
- Figma Desktop
- Node.js 22.5 or newer
- pnpm 10.25 or newer
If pnpm is missing, ./run.sh will try to enable it with Corepack.
2. Start This Project
Open Terminal:
cd /path/to/figma-mcp
./run.sh
Keep this Terminal window open while you use Figma MCP.
3. Add The Figma Plugin Once
- Open Figma Desktop.
- Go to
Plugins -> Development -> Import plugin from manifest.... - Select
figma-plugin/manifest.jsonfrom this project. - Run
Plugins -> Development -> Custom Figma MCP Bridge.
The plugin should show Connected.
4. Connect Your AI Tool
For Codex:
codex mcp add custom-figma-mcp -- /bin/zsh -lc 'cd /path/to/figma-mcp && node mcp-server/dist/index.js'
For Claude Code:
claude mcp add --transport stdio custom-figma-mcp -- /bin/zsh -lc 'cd /path/to/figma-mcp && node mcp-server/dist/index.js'
Use the real full path to this folder.
After adding it, restart Codex or Claude Code.
Daily Use
- Open the Figma file in Figma Desktop.
- In Terminal, run:
cd /path/to/figma-mcp
./run.sh
- In Figma Desktop, run
Plugins -> Development -> Custom Figma MCP Bridge. - Start Codex or Claude Code.
- Ask it to inspect or edit the open Figma file.
Check That It Works
Run:
curl http://localhost:3333/health
Good result:
{
"ok": true,
"pluginConnected": true
}
If pluginConnected is false, open Figma Desktop, open your file, and run Plugins -> Development -> Custom Figma MCP Bridge.
What This Does
This project creates a local bridge:
Codex / Claude Code
-> local MCP server
-> local WebSocket
-> Figma Desktop plugin
-> your open Figma file
The AI tool can read and edit the file that is currently open in Figma Desktop.
It can create and update frames, text, rectangles, components, auto-layout frames, styles, variables, and other supported Figma Plugin API objects.
Common Problems
The Plugin Says Reconnecting
- Make sure
./run.shis still running. - Click
Reconnectin the plugin. - If it still fails, close and run the plugin again from
Plugins -> Development.
The Health Check Says pluginConnected false
The local server is running, but Figma Desktop is not connected.
Open Figma Desktop, open the target file, and run Custom Figma MCP Bridge.
Codex Or Claude Does Not Show The Tools
Restart Codex or Claude Code after adding the MCP server.
In Codex or Claude Code, run /mcp and look for custom-figma-mcp.
More Help
- Codex setup: docs/codex-setup.md
- Claude Code setup: docs/claude-code-setup.md
- Figma plugin setup: docs/figma-setup.md
- Architecture details: docs/architecture.md
Developer Commands
pnpm install
pnpm build
pnpm typecheck
pnpm doctor
pnpm test:integration
./run.sh --check
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.