How to use Figma with Codex.
Codex can read your Figma designs and write back to the canvas through Figma’s MCP server. The easiest way to connect it is the official Figma plugin in the Codex app; in the CLI it takes one command. Here is how to set it up, what it can do, what it costs, and what to check when the Figma plugin is missing or will not write.
Updated November 8, 2026 · 7 min read
The short answer
- Codex app: click Plugins in the upper-left corner, click + next to Figma, click Install Figma, then Allow access. This also installs Figma’s skills.
- Codex CLI: run
codex mcp add figma --url https://mcp.figma.com/mcpand sign in to Figma when asked. Add Figma’s skills separately. - Then paste a Figma link to one frame or layer and ask Codex to build it. Codex can also send a running page back to Figma as editable layers.
- Limits depend on your Figma seat. A Dev or Full seat on a paid plan gets 200 read calls a day or more. The Starter plan, and View or Collab seats, get 20 a month.
Figma and OpenAI announced the Codex integration on February 26, 2026. The steps below follow Figma’s help article Codex and Figma: Set up the MCP server and its developer documentation, as of November 8, 2026.
What Codex can do with Figma
Read from Figma (design to code). Codex can pull the design context of a frame or selection: layout, components, variables and styles, screenshots, assets, FigJam diagrams, and Make resources. If your team uses Code Connect, it sees which code component each Figma component maps to, so it reuses your components instead of rebuilding them.
Write to Figma (code to design). On the remote server, Codex can create files, build and edit frames, components, variables, and auto layout, place images and SVGs, and turn a live web page into editable Figma layers.
The tools you will see most often:
| Tool | What it does | Kind |
|---|---|---|
get_design_context | Design context and code for a layer or selection | Read |
get_screenshot | A screenshot of the selection, to compare against | Read |
get_variable_defs | The variables and styles a selection uses | Read |
search_design_system | Finds components, variables, and styles in your libraries | Read |
use_figma | Creates, edits, and inspects content in a Figma file | Write |
generate_figma_design | Turns live web UI into Figma design layers | Write |
create_new_file | Creates a blank Design, FigJam, or Slides file | Write |
upload_assets | Uploads images and SVGs into a file | Write |
All the write tools, including use_figma, are available only on Figma’s remote server, not on the desktop server.
Set it up
In the Codex app (recommended)
- Open the Codex app and click Plugins in the upper-left corner.
- Click + next to Figma, then Install Figma.
- When asked, click Allow access so ChatGPT can reach your Figma account.
Codex shows the Figma plugin as connected. The plugin bundles the MCP server settings with Figma’s skills, such as figma-design-to-code for building a frame, figma-use for writing to the canvas, and figma-generate-library for building a design system in Figma from your code. The skills matter: they tell Codex which tools to call, in which order, and they prevent many of the errors people hit when they call the tools directly.
In the Codex CLI
codex mcp add figma --url https://mcp.figma.com/mcp
Sign in to Figma and allow access when prompted, then restart Codex. This adds the server but not the skills. To get them, copy the skills you need from Figma’s mcp-server-guide repository into ~/.agents/skills, or ask Codex to install them with $skill-installer. See Codex plugins vs skills for where skills live.
With the desktop server
The desktop server runs inside the Figma desktop app, for organizations that need it. It needs a Dev or Full seat on a Professional, Education, Organization, Government, or Enterprise plan, and it only works while the app is open.
- In the Figma desktop app, open a Design file, select nothing, and press Shift D for Dev Mode.
- In the MCP server section of the right sidebar, click Enable desktop MCP server.
- In Codex, open Settings, then MCP servers, and click Add server.
- Change the type from STDIO to Streamable HTTP, name it
figma-desktop, enterhttp://127.0.0.1:3845/mcp, and save.
Figma recommends the remote server for most people. The desktop server cannot write to the canvas.
Plans and limits
Codex is required, and the Figma side works on Starter, Professional, Education, Organization, and Enterprise plans. Rate limits apply to the tools that read from Figma:
| Your Figma plan and seat | Read tool calls |
|---|---|
| Starter plan, or a View or Collab seat | Up to 20 a month |
| Professional or Education, Dev or Full | 200 a day, 10 a minute |
| Organization, Dev or Full | 200 a day, 15 a minute |
| Enterprise, Dev or Full | 600 a day, 20 a minute |
Tools that write to Figma, such as generate_figma_design, create_new_file, and add_code_connect_map, do not count toward these limits, and neither do actions that spend Figma AI credits. Figma says it may change the limits at any time, so check its rate limits page before you plan around them.
On 20 calls a month, link a single frame rather than a whole page, and ask for one screen at a time.
Prompts to copy
Build a frame in your codebase
Implement this Figma frame: [paste the link to one frame]. Use the components in src/components and our existing tokens. Do not add new colors or fonts; if the design uses a value we do not have, list it instead of inventing one. Match spacing, type sizes, and states. When you are done, take a screenshot of the result and compare it with the Figma screenshot. List every difference you could not fix.
Send a page back to Figma
The app is running at http://localhost:3000. Send the /pricing page to Figma as editable layers in a new Design file called "Pricing – from code". Include the desktop and mobile widths. Tell me the link to the new file.
Keep tokens in sync
Read the variables and styles used in this Figma frame: [link]. Compare them with our tokens in [path to your theme or CSS variables]. Show me a table of mismatches (name, Figma value, code value) before changing anything. After I confirm, update the code to match Figma.
Write down the design system once
Use Figma's create_design_system_rules prompt on our main library, then save the result as DESIGN.md in the project root: colors as tokens with hex values, type scale, spacing, radius, and rules for buttons, inputs, and cards. Only use values that exist in Figma or in our code.
A DESIGN.md in your repository keeps Codex on the design system even in sessions where Figma is not connected.
Figma plugin missing or not working in Codex?
These are the most common causes, from Figma’s help article and its community forum:
- Figma is not in the plugin list, or will not install. On ChatGPT Business and Enterprise workspaces, third-party plugins can be turned off. Ask your workspace admin to allow third-party plugins and approve the Figma tools, or connect the MCP server directly with the CLI command above.
- Figma was connected through ChatGPT, not Codex. If you connected Figma as a ChatGPT app, remove that connection and install Figma from Plugins in the Codex app.
- 401 or authorization errors. Remove the Figma plugin, add it again, and sign in again.
- Codex can read Figma but not write. Check which server you are on. The desktop server has no write tools, so
use_figmawill never appear there. Remove any old localfigmaserver from your MCP settings, add the remote server (https://mcp.figma.com/mcp), and restart Codex. - It stopped after a few calls. You may have hit the Starter or View seat limit of 20 calls a month. The table above shows what each seat gets.
Where Codex Design fits
The Figma plugin is the right choice when your team designs in Figma and Figma is the source of truth. Codex Design covers the step before that, or a workflow without Figma at all: it adds a canvas inside Codex where several UI directions sit side by side as live HTML, so you can compare them and edit fonts, colors, and spacing before you commit. Once you have picked one, generate_figma_design can send it to Figma for the team. For a closer look at running code on Figma’s own canvas, see Codex Design vs Figma code layers.
Frequently asked questions
Is the Figma plugin for Codex free?
The plugin is free to install. What you can do depends on your Figma seat: the Starter plan and View or Collab seats get up to 20 read calls a month, and Dev or Full seats on paid plans get 200 or more a day. Codex usage counts against your ChatGPT plan as usual.
Can Codex edit my Figma files?
Yes, on the remote server. With the use_figma tool and Figma’s figma-use skill, Codex can create and edit frames, components, variables, and auto layout. It cannot write through the desktop server.
Should I use the plugin or the MCP server?
In the Codex app, use the plugin: it sets up the same remote MCP server and adds Figma’s skills. In the CLI, add the server with codex mcp add and install the skills you need yourself.
Keep reading
- How to use Canva with CodexSet up Canva’s plugin or MCP server, the eight Canva skills, and prompts for social posts and decks.
- Codex Design vs Figma code layersRunning code on a design canvas, from two directions.
- DESIGN.md: give Codex your design systemWrite your design system down once so every screen follows it.
- Codex plugins vs skillsWhat each one is, and when to use which.