Local Figma MCP Bridge
Reads basic information about the current Figma file and page, summarizes selected nodes (structure, size, position, colors, layout, children), and exports the selection as SVG or PNG.
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., "@Local Figma MCP Bridgeexport the current selection as SVG"
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.
Local Figma MCP Bridge
English | 日本語
Unofficial local MCP bridge for reading the currently open Figma file through a Figma plugin.
This project is intended for local development and experimentation. It is not affiliated with, endorsed by, or sponsored by Figma.
MCP client
-> local MCP server (stdio)
-> WebSocket bridge (localhost:8787)
-> Figma Plugin UI
-> Figma Plugin main thread
-> currently open Figma fileWhat It Does
Checks whether the Figma plugin is connected to the local MCP server.
Reads basic information about the open Figma file and current page.
Summarizes the currently selected nodes, including structure, size, position, colors, layout metadata, and child nodes.
Exports the current selection as
SVGorPNG.
Related MCP server: figma-mcp-go
Privacy And Data Handling
This tool can access design data from the Figma file where the plugin is running.
Data that may be sent from Figma to the local MCP server includes:
File metadata such as the root file name, page name, page id, and Figma file key.
Selected node metadata such as node ids, names, dimensions, positions, colors, effects, layout properties, and child hierarchy.
Exported selection contents as base64-encoded
SVGorPNG, which may include images, text, icons, product UI, customer data, or other confidential design material.
The default implementation sends this data only to a local WebSocket server at ws://localhost:8787. It does not send data to a remote service by itself, and the plugin manifest does not allow production network access to external domains.
Before using this with non-public design files, make sure you have permission from the file owner or organization. Do not publish exported design assets, customer work, internal UI, or file-derived sample data without explicit authorization.
Security Notes
The bridge is designed for local development. Do not expose
FIGMA_BRIDGE_HOSTor port8787to a public network.Treat any MCP client connected to this bridge as able to request selected Figma node metadata and exports.
The MCP server does not currently authenticate WebSocket clients. Run it only on a trusted machine and keep the host bound to
localhostunless you have added your own authentication and transport protections.Do not commit real exported Figma assets,
.envfiles, access tokens, logs, or generated scratch output.
Setup
npm install
npm run buildLoad The Figma Plugin
Open Figma Desktop.
Choose
Plugins > Development > Import plugin from manifest....Select
packages/figma-plugin/dist/manifest.json.Run
Local Figma MCP Bridge.The plugin UI will connect automatically when the local MCP server is running.
If the UI shows Disconnected, start the local MCP server and wait for the plugin to reconnect:
npm run dev:mcpMCP Client Configuration
Any MCP client that supports stdio servers can use this bridge. Add the built MCP server to your MCP client settings. Codex configuration is shown below as one example:
{
"mcpServers": {
"local-figma": {
"command": "node",
"args": [
"/absolute/path/to/packages/mcp-server/dist/index.js"
],
"env": {
"FIGMA_BRIDGE_PORT": "8787"
}
}
}
}Optional environment variables:
FIGMA_BRIDGE_HOST: WebSocket host. Defaults tolocalhost.FIGMA_BRIDGE_PORT: WebSocket port. Defaults to8787.
MCP Tools
figma_status: Check whether the Figma plugin is connected.figma_file_info: Get basic information about the open Figma file and current page.figma_get_selection: Return a JSON summary of the currently selected Figma nodes.figma_export_selection: Export the current Figma selection as base64-encodedSVGorPNG.
Figma Manifest Network Access
The plugin manifest uses:
{
"networkAccess": {
"allowedDomains": ["none"],
"devAllowedDomains": [
"http://localhost:8787",
"ws://localhost:8787"
]
}
}This keeps production network access disabled while allowing the local development bridge. If you change this project to send data to remote services, update the manifest, documentation, privacy policy, and user consent flow accordingly.
Publishing Checklist
Before making this repository public:
Confirm that no real Figma exports, customer assets, screenshots, logs,
.envfiles, access tokens, or generated scratch files are committed.Keep
node_modules/out of the repository.Keep the included MIT license if you want other people to have explicit reuse rights, or replace it with the license that matches your distribution policy.
Keep the project description clear that this is an unofficial local development bridge.
If distributing outside your organization or publishing to Figma Community, provide a clear privacy policy and user-facing explanation of what data is processed.
Development Notes
The Figma plugin main thread uses the Figma Plugin API. The plugin UI iframe owns the WebSocket connection. The MCP server forwards MCP tool calls to the plugin UI, and the plugin main thread executes the requested Figma API operations.
The plugin UI automatically retries the local WebSocket connection with a short backoff, up to a 5 second interval.
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.
Latest Blog Posts
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/ikoba0911/local-figma-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server