Figma Codex Bridge
Provides read-only access to the current Figma file and selection, allowing extraction of design context, page structure, node trees, and screenshot exports for implementation.
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 Codex BridgeGet design context for my current Figma selection"
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 Codex Bridge
Select in Figma. Build with Codex.
Give Codex the Figma frame you are looking at as bounded structure, design tokens, component context, and an optional PNG screenshot.
No Figma API token. Local authenticated bridge. Read-only tools.

Built for Codex and tested with Codex App and CLI. The server uses the Model Context Protocol and may work with other stdio MCP clients.
Why it is different
Figma Codex Bridge | Typical API-based workflow |
Uses the file and selection already open in Figma Desktop | Requires a file URL, key, or node ID |
No Figma REST API token | Requires token creation and management |
Sends bounded, implementation-oriented context | Often returns a broad document payload |
Local loopback bridge protected by a generated token | Usually depends on a remote service |
Read-only tool surface | May expose canvas-changing operations |
The flagship figma_get_design_context tool builds a Design Context Pack
with a bounded node tree, colors, spacing, radii, typography, components,
variables, styles, asset candidates, CSS variable suggestions, and an optional
screenshot.
Related MCP server: opencode-figma-for-actually-codex
60-second setup
Requirements: Figma Desktop, Node.js 20 or later, and Codex App or CLI. Figma Web alone cannot run the development plugin.
git clone https://github.com/xiaobai59/figma-codex-bridge.git
cd figma-codex-bridge
npm run setupThe setup command creates a private .figma-codex-bridge/ directory containing:
codex.toml: an MCP configuration with the absolute server path and a random local bridge tokenplugin/manifest.json: a generated Figma development plugin using the same token
Then:
Merge
.figma-codex-bridge/codex.tomlinto your Codex configuration.In Figma Desktop, choose Plugins > Development > Import plugin from manifest... and select
.figma-codex-bridge/plugin/manifest.json.Restart or reload Codex MCP servers.
Run Figma Codex Bridge from Figma's Development plugins.
Ask Codex to call
figma_status.
The generated directory contains a local credential and is ignored by Git. Rotate it at any time:
npm run setup -- --rotate-tokenUse a custom port with:
npm run setup -- --port 39555Codex CLI alternative
After npm run setup, the equivalent CLI form is:
codex mcp add figma-codex-bridge \
--env FIGMA_LOCAL_MCP_PORT=38455 \
--env FIGMA_LOCAL_MCP_TOKEN=<generated-token> \
-- node /absolute/path/to/figma-codex-bridge/server.mjsUse the token and path generated in .figma-codex-bridge/codex.toml; do not
paste a token into an issue or commit it.
Use it
Read my current Figma selection with figma_get_design_context. Extract the
layout, component hierarchy, typography, colors, spacing and reusable design
tokens, then implement the screen in this repository. Include a screenshot for
visual validation.Recommended flow:
figma_status
-> figma_get_design_context
-> implement
-> figma_get_screenshot for focused visual comparisonIf nothing is selected, use figma_get_page_structure to find the relevant
top-level frame first.
Tools
Tool | Purpose |
| Check the connection, active file, page, and selection. |
| Build an implementation-ready Design Context Pack. |
| List file metadata and all pages. |
| Read bounded top-level structure on a page. |
| Read the current selection and bounded child tree. |
| Read one node by Figma node ID. |
| Export a selected or requested node as PNG. |
Tree tools support depth, maxChildren, and maxNodes. Screenshot exports
are limited by scale, pixel count, and response size. Node IDs accept both
Figma's 2:131 form and the link form 2-131.
See a trimmed Design Context Pack example and the complete tool reference.
Privacy and security
The server listens only on
127.0.0.1.The generated plugin and MCP process share a random bridge token.
Browser origins are restricted; wildcard CORS is not used.
Tools are read-only and cannot edit the Figma canvas.
Figma files and screenshots are not intentionally persisted by the bridge.
Responses use node, text, body, screenshot, and concurrency limits.
MCP responses can still contain names, copy, layout values, and images from the active file. That content may be processed by the MCP client and model provider you configured. Read the privacy guide before using private or regulated designs.
This independent open-source project is not affiliated with Figma or OpenAI.
Architecture
flowchart LR
A[Codex or stdio MCP client] -->|MCP| B[Node bridge]
B -->|Authenticated localhost HTTP| C[Figma Desktop plugin]
C -->|Read-only Plugin API| D[Active file and selection]One process owns the loopback bridge; additional Codex conversations forward through that owner, allowing them to share one open Figma plugin instance. See architecture details.
Current scope
Tested client: Codex App and Codex CLI
Platform requirement: Figma Desktop development plugin
Tool surface: read-only
Distribution: GitHub source release; npm publishing is intentionally disabled
Roadmap
Component and variable alias resolution
Exportable asset metadata and code-generation recipes
Figma-to-local-implementation visual comparison
Installer packages and verified compatibility guides for more MCP clients
Optional write tools only with scoped permissions and explicit confirmation
Development
npm test
npm run check
npm run doctorLoopback integration tests run in GitHub Actions. See CONTRIBUTING.md, SECURITY.md, and troubleshooting.
License
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
- 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
- Alicense-qualityCmaintenanceLocal MCP bridge that exposes the ChatGPT Figma connector to OpenCode without launching Codex, using the existing authenticated session.MIT
- FlicenseBqualityCmaintenanceA local bridge that lets MCP clients inspect, export, and modify Figma files through a development Figma plugin.65
- FlicenseCqualityBmaintenanceLocal bridge enabling AI agents to inspect and edit the currently open Figma Desktop file through the Figma Plugin API.291
Related MCP Connectors
Turn any live website into brand colors, fonts, design tokens, SVGs, Lottie and paste-ready code.
A Model Context Protocol server for Wix AI tools
On-demand drift checks: declared CSS color, radius, spacing & type vs your own tokens or a pack
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/xiaobai59/figma-codex-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server