pholly-figma-mcp
Provides a local-first MCP bridge for live Figma documents, enabling document inspection (selection, styles, variables, design tokens), node editing (fills, strokes, effects, visibility), component/instance authoring, variable creation/binding, tree rendering with reconciliation, asset export, and search/find operations.
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., "@pholly-figma-mcpInspect the current selection and describe the UI design."
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.
pholly-figma-mcp
Local-first MCP bridge for live Figma documents. It uses a Figma plugin and a local WebSocket server, so document inspection and edits do not consume Figma REST API requests.
See CHANGELOG.md for release history.
Status
Usable MVP (v0.1.1): MCP stdio transport, live plugin bridge, multi-file routing, document/style/variable inspection, common node editing, image creation, component/instance authoring, variable creation/binding, batch edits, and declarative tree rendering are included. The bridge is locked down with per-machine token authentication, origin/host validation, and plugin registration protection.
Related MCP server: Local Figma MCP Bridge
Build and run
npm install
npm run build
npm run setup # creates ./pholly-figma-plugin with the bridge token baked inImport pholly-figma-plugin/manifest.json into Figma through Plugins → Development → Import plugin from manifest, then run it in a design file. The setup step is required: it stamps the machine's bridge token into the plugin, and the bridge rejects untrusted plugins. If the token ever changes (token file deleted or PHOLLY_TOKEN env overridden), re-run setup and re-import the manifest in Figma.
{
"pholly-figma": {
"type": "local",
"command": [
"node",
"/absolute/path/to/pholly-figma-mcp/apps/server/dist/index.js"
],
"enabled": true
}
}For clients that use command/args (e.g. codex-style config), the equivalent is:
{
"pholly-figma": {
"command": "node",
"args": ["/absolute/path/to/pholly-figma-mcp/apps/server/dist/index.js"]
}
}Your MCP client starts the server automatically. For bridge-only debugging you may run npm start; do not also launch a second manual copy unless you are testing follower behavior. The bridge stays on localhost:1995. Check it with curl http://localhost:1995/ping (the other endpoints require the bearer token).
Architecture
MCP client ──stdio──> Node server ──WebSocket──> Figma plugin ──> Figma Plugin APIThe project is organized as independently licensed packages under the MIT License. See CONTRIBUTING.md for how to get involved and SECURITY.md for vulnerability reporting.
Notable tools
inspect_selectionis the primary design-to-code tool. It returns a detailed textual UI specification and an optional native screenshot, so it works with both vision and non-vision agents.export_selection_assetsextracts exact raster fills and vector/icon candidates into a safe project-relative directory (defaultpublic/figma-assets/) without overwriting different existing files.render_designcreates or reconciles a nested design tree. Give nodes stablekeyvalues and usemode: "reconcile"for repeatable updates.create_component,create_instance,set_instance_properties,swap_instance_component, anddetach_instancecover the common component workflow.create_variable_collection,create_variable,set_variable_values, andbind_variablesupport local design tokens.batchruns safe, non-destructive operations sequentially.delete_nodesremains confirmation-gated.validate_designchecks a tree before rendering it;commitUndo: trueonrender_designcreates a single undo checkpoint.Editing:
set_gradient_fill(linear/radial/angular/diamond),set_effects(shadows and blurs),set_stroke_properties(weight, alignment, dash, caps, joins),set_node_visibility, andset_solid_fill(hex or rgba).Search:
find_nodesandfind_textmatch by substring or/regex/, optionally filtered by type and page.Session:
get_path,undo,redo,get_changes, andclear_changeskeep agents oriented and auditable.Export and analysis:
save_screenshotswrites explicit node lists topublic/figma-screenshots/, andextract_design_tokenssummarizes a page's typography, colors, radii, spacing, and opacities.
First-use checklist
Run
npm install && npm run build && npm run setup.Import
pholly-figma-plugin/manifest.jsoninto Figma.Run the plugin in every file the agent should access.
Restart the MCP client after adding the configuration.
Ask the agent to call
list_files; pass the returnedfileKeyfor multi-file work.
The plugin must be running in Figma's Design editor for write operations. Dev Mode is intentionally read-only.
Security
The bridge is local-first and locked down by default:
The HTTP server and WebSocket bridge bind to
127.0.0.1only.A per-machine bearer token guards
/files,/rpc,/mcp, and plugin registration. The token lives at$XDG_CONFIG_HOME/pholly-figma-mcp/token(mode0600) and can be overridden with thePHOLLY_TOKENenvironment variable. Thesetupcommand stamps it into the plugin'scode.jsandui.htmland assigns a unique per-machine plugin ID; plugins without a valid token are rejected and closed.HTTP requests with a non-local
Hostheader are refused (blocks DNS-rebinding attacks), and WebSocket upgrades from non-localOrigins are rejected (blocks cross-site WebSocket hijacking from malicious web pages).A connected file key can only be claimed by the plugin that currently owns it; a live registration is never overwritten by another connection.
Troubleshooting
Plugin loops between "Connecting…" and "Disconnected · retrying": the plugin in Figma is stale (Figma caches imports under the plugin ID). Delete the plugin entry under Plugins → Development, re-run
setup, and re-import the generatedpholly-figma-plugin/manifest.json.list_filesreturns[]: the plugin is not connected. Make sure it is running in a design file and the status chip shows "Connected".Bridge rejects with "Invalid bridge token": the imported plugin was stamped for a different token. Re-run
setupon the same machine the bridge runs on, then re-import.
Packaging
The server package is named @mubizzu/pholly-figma-mcp. npm run pack produces mubizzu-pholly-figma-mcp-0.1.1.tgz containing:
dist/— the compiled MCP server with thepholly-figma-mcpbinaryplugin/— the bundled Figma plugin (code.js,ui.html,manifest.json)
The setup subcommand copies the bundled plugin into a project, stamps the machine bridge token into it, and prints the Figma import path:
pholly-figma-mcp setup [target-dir] # default target: ./pholly-figma-pluginOnce published, users would configure it in their MCP client exactly like any npx server:
{
"pholly-figma": {
"type": "local",
"command": ["npx", "-y", "@mubizzu/pholly-figma-mcp"],
"enabled": true
}
}The bridge remains local-first: the plugin in Figma connects to ws://localhost:1995/ws on the same machine. Multiple MCP clients on one machine share the bridge; later starters automatically become followers that proxy to the leader.
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
- AlicenseAqualityBmaintenanceLocal-first MCP server that connects AI coding agents to the currently open Figma file through a local plugin bridge, requiring no Figma API token.8MIT
- Alicense-qualityCmaintenanceUnofficial local MCP bridge for reading the currently open Figma file through a Figma plugin. Provides tools to inspect selection, file info, and export selected nodes as SVG/PNG.MIT
- FlicenseBqualityCmaintenanceA local bridge that lets MCP clients inspect, export, and modify Figma files through a development Figma plugin.65
- FlicenseBqualityCmaintenanceLocal MCP server connecting AI clients to the Figma desktop app for inspecting and editing Figma documents via the Plugin API.161
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
MCP (Model Context Protocol) server for Appwrite
MCP connector for iMessage & Contacts via a local Mac agent + Vercel relay
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/mubzie/pholly-figma-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server