figma-tunnel-mcp
The figma-tunnel-mcp server lets AI agents and MCP clients (e.g., Claude, Cursor) programmatically read, modify, and export Figma designs via a local WebSocket bridge, optionally exposed through a Cloudflare tunnel.
Document & Selection
get_document_info,get_selection,read_my_design,get_node_info,get_nodes_info– Read document and node detailsset_focus,set_selections– Control viewport focus and selection
Creating Elements
create_rectangle,create_frame,create_text– Draw rectangles, frames, and text nodes with full styling options
Modifying Nodes
set_fill_color,set_stroke_color,set_corner_radius– Style nodesmove_node,resize_node,clone_node,delete_node,delete_multiple_nodes– Transform and manage nodes
Text Operations
scan_text_nodes– Find all text nodes within a nodeset_text_content,set_multiple_text_contents– Update text content individually or in batch
Auto Layout & Spacing
set_layout_mode,set_padding,set_axis_align,set_layout_sizing,set_item_spacing– Configure auto-layout properties on frames
Components & Styles
get_styles,get_local_components– List local styles and componentscreate_component_instance,get_instance_overrides,set_instance_overrides– Instantiate components and manage overrides
Annotations
get_annotations,set_annotation,set_multiple_annotations– Read and write annotations (Markdown supported)scan_nodes_by_types– Find nodes by type (useful for annotation targeting)
Prototyping & Connections
get_reactions– Extract prototype flows from nodesset_default_connector,create_connections– Draw FigJam connector lines between nodes
Export
export_node_as_image– Export a node as PNG, JPG, SVG, or PDF (returns base64)
Connection Management
join_channel– Join a named WebSocket channel to establish communication with the Figma plugin
Allows AI agents to control and export from Figma, including reading designs, modifying nodes, text content, styling, layout, creating elements, and bulk text replacement via a WebSocket bridge.
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-tunnel-mcpExport the main frame as a 2x PNG"
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 HTTP API
Share the currently open Figma file with an AI agent through one HTTPS URL. The agent reads llms.txt and uses ordinary GET and POST requests.
AI agent
│ HTTPS API
▼
Local API server (:8765) ← Cloudflare Tunnel
│ local WebSocket
▼
Figma API Plugin ↔ open Figma fileThe WebSocket relay is an internal transport. It is not exposed publicly and is not an interface for agents.
Start on Windows
Requirements: Figma Desktop, Node.js, Bun, and Cloudflared.
In Figma, import
src/plugin/manifest.jsonas a development plugin once.Start everything with one command:
.\start.cmd
The command starts the internal relay, HTTP API, Figma, Cloudflare Tunnel, and the plugin watchdog. It then tries to open the plugin and verifies that the current document answers.
Nothing is installed in Windows Startup. Re-running the command is safe and only repairs missing services.
Related MCP server: Agent to Figma MCP
Plugin controls
After the server is running, normal management happens in the Figma plugin:
API, Figma, and tunnel status;
read-only or read/write access;
copy/open share URL and scoped
llms.txt;start, stop, or replace the Cloudflare quick tunnel;
rotate the secret share URL;
repair the local stack.
Public API
Give the agent only the generated share URL:
https://<host>.trycloudflare.com/s/<secret>The main routes are:
Method | Route | Purpose |
|
| Discover exact URLs and current state |
|
| Complete live API instructions |
|
| Documentation for this share |
|
| Documentation for one route or operation |
|
| Check readiness |
|
| List available Figma operations |
|
| Execute an operation; the body contains its parameters |
|
| OpenAPI 3.1 contract |
Example read request:
POST /v1/shares/{secret}/get_document_info
Content-Type: application/json
{}Write requests also require an Idempotency-Key header. Documentation is hierarchical: service errors link to /llms.txt, share errors link to /v1/shares/{secret}/llms.txt, and known route errors link to that route's own llms.txt.
Security
The random share URL is a bearer capability; anyone holding it gets the configured access.
Public access can be stopped immediately from the plugin.
Rotating the secret invalidates the previous share URL.
Management routes under
/local/control/*accept only loopback plugin requests and return404through Cloudflare.The internal relay binds only to
127.0.0.1.Access mode and tunnel state persist across server repairs.
Project files
File | Purpose |
| Single user-facing start command |
| Public API server and health probe |
| Loopback-only Figma transport |
| Figma development plugin |
| Windows bootstrap, watchdog, tunnel, and Figma launcher |
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
- -licenseCqualityNot gradedmaintenanceEnables AI agents to interact with Figma in real-time through a WebSocket connection. Supports comprehensive design operations including text manipulation, layouts, components, variables, and export functionality.72207
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents like Claude to interact with Figma designs through 50+ tools for creating, styling, and manipulating design elements, components, and variables via a WebSocket relay and Figma plugin.
- FlicenseBqualityBmaintenanceEnables AI agents to read and modify Figma designs programmatically through WebSocket communication, supporting document manipulation, styling, text replacement, and component management.422
- AlicenseBqualityCmaintenanceEnables local AI agents to generate and edit Figma designs via the Plugin API through a WebSocket relay, with no rate limits and all communication remaining local.50894MIT
Related MCP Connectors
The Figma MCP server brings Figma design context directly into your AI workflow.
Connect AI coding agents to Anima Playground, Figma, and your design system.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
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/skulidropek/figma-tunnel'
If you have feedback or need assistance with the MCP directory API, please join our Discord server