figma-agent-mcp
Provides tools for reading and manipulating the currently open Figma document, including selection, node inspection, screenshots, editing text/fills/strokes/effects, auto-layout, creating frames/text/shapes/images, grouping, deleting, and controlling selection and zoom.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@figma-agent-mcpRename the selected layers to make their purpose clear"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Figma Agent Kit
Open-source toolkit that connects Figma to AI agents (Cursor, Claude Code, Codex, and other MCP clients) through a local bridge.
AI Agent ──stdio MCP──► figma-agent-mcp ──WebSocket──► Figma Agent Kit plugin
:1998 (Figma Desktop)Packages
Package | Path | Role |
figma-agent-plugin |
| Figma plugin UI + Plugin API handlers |
figma-agent-mcp |
| MCP server (stdio) + localhost bridge |
Related MCP server: Talk to Figma MCP
Features (v0.1)
Local MCP Bridge so agents can read/write the open Figma file
MessagePack binary framing on WebSocket + leader/follower RPC (PNG as
bin, no base64 on the wire)Multi-file support via
fileKey(leader/follower when multiple MCP processes start)Plugin panel: bridge status, selection sync, settings storage, Mini mode
Core tools: document/selection/node/screenshot, text/fill/stroke/effects/auto-layout edits, create frame/text/shape/image, group/delete, selection & zoom
AI layer rename — semantic names on a clone via OpenAI-compatible vision API
AI visual grouping — nested group plan on a clone, editable JSON before apply
GitHub version checks —
releases/version.jsononmain(no CDN)No cloud upload, no vendor lock-in for AI keys in the bridge path
Requirements
Node.js ≥ 20
pnpm ≥ 9
Figma Desktop (Development plugin import)
Quick start
git clone https://github.com/ChinaCarlos/figma-agent-kit.git
cd figma-agent-kit
pnpm install
pnpm build:all1. Load the plugin
Open Figma Desktop
Plugins → Development → Import plugin from manifest…
Select
packages/figma-agent-plugin/manifest.jsonRun Figma Agent Kit
2. Run the MCP server
pnpm start:mcp
# or: pnpm --filter figma-agent-mcp startDefault bridge port: from bridge.config.json (synced into MCP, plugin UI, and manifest.json on build). Optional MCP override: FIGMA_AGENT_MCP_PORT.
3. Connect an agent (Cursor example)
Add to your MCP config (e.g. Cursor mcp.json):
{
"mcpServers": {
"figma-agent-mcp": {
"command": "npx",
"args": ["-y", "figma-agent-mcp"]
}
}
}For local development without publishing:
{
"mcpServers": {
"figma-agent-mcp": {
"command": "node",
"args": ["/ABS/PATH/TO/figma-agent-kit/packages/figma-agent-mcp/dist/index.js"]
}
}
}Keep the Figma file open with the plugin running, then ask the agent to call list_files / get_selection / get_node, etc.
4. AI features (optional)
Open Settings in the plugin, set apiBaseUrl / model / apiKey, then use Rename or Group tabs. See docs/ai-features.md.
Documentation
Doc | Content |
Install, import, MCP, version publishing | |
AI rename/group setup | |
WebSocket / RPC contract | |
MCP tool reference | |
npm for | |
Plugin ZIP on GitHub Releases | |
How to contribute |
Security & privacy
Bridge traffic stays on localhost
Do not commit API keys or
.envfilesPlugin
networkAccessallowsws://localhost:1998,https://raw.githubusercontent.com, andhttps://api.openai.comby defaultOther AI API hosts require editing
manifest.json→allowedDomainsand rebuildingAPI credentials are stored in Figma
clientStoragefor plugin AI features only
License
Acknowledgments
The local bridge pattern (plugin ↔ MCP over WebSocket) is a common approach in the Figma + MCP ecosystem. This repository is an independent clean-room implementation for Figma Agent Kit.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityCmaintenanceEnables Cursor (MCP client) to interact with an active Figma document through a local WebSocket bridge and Figma plugin, providing tools to read and modify canvas elements like text and frames.6
- FlicenseBqualityBmaintenanceEnables AI agents to read and modify Figma designs programmatically through WebSocket communication, supporting document manipulation, styling, text replacement, and component management.42
- Alicense-qualityDmaintenanceBridges AI clients to Figma Desktop via Plugin API and WebSocket, enabling real-time design manipulation without rate limits.1,313MIT
- FlicenseCqualityBmaintenanceLocal bridge enabling AI agents to inspect and edit the currently open Figma Desktop file through the Figma Plugin API.291
Related MCP Connectors
Connect AI coding agents to Anima Playground, Figma, and your design system.
Connect AI agents to Replynodes over the Model Context Protocol.
Connect AI agents to Flato's editable canvas runtime through a hosted MCP server.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChinaCarlos/figma-agent-kit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server