Skip to content
Codex DesignBETA

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/mcp and 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:

ToolWhat it doesKind
get_design_contextDesign context and code for a layer or selectionRead
get_screenshotA screenshot of the selection, to compare againstRead
get_variable_defsThe variables and styles a selection usesRead
search_design_systemFinds components, variables, and styles in your librariesRead
use_figmaCreates, edits, and inspects content in a Figma fileWrite
generate_figma_designTurns live web UI into Figma design layersWrite
create_new_fileCreates a blank Design, FigJam, or Slides fileWrite
upload_assetsUploads images and SVGs into a fileWrite

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)

  1. Open the Codex app and click Plugins in the upper-left corner.
  2. Click + next to Figma, then Install Figma.
  3. 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.

  1. In the Figma desktop app, open a Design file, select nothing, and press Shift D for Dev Mode.
  2. In the MCP server section of the right sidebar, click Enable desktop MCP server.
  3. In Codex, open Settings, then MCP servers, and click Add server.
  4. Change the type from STDIO to Streamable HTTP, name it figma-desktop, enter http://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 seatRead tool calls
Starter plan, or a View or Collab seatUp to 20 a month
Professional or Education, Dev or Full200 a day, 10 a minute
Organization, Dev or Full200 a day, 15 a minute
Enterprise, Dev or Full600 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

Figma frame to code
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

Code to Figma layers
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

Figma variables to tokens
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

Design system rules
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_figma will never appear there. Remove any old local figma server 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

An independent plugin for Codex. Not affiliated with or endorsed by OpenAI.