Before you start

Figma’s setup docs explain how to connect a coding agent. A recent FigmaDesign community discussion shows how practitioners are mixing Figma with MCP and CLI workflows; the exact setup in this guide comes from Figma.

What you’ll make
One responsive local component with a design comparison at two widths.
What you’ll need
A Figma account with access to your sample frame and the ChatGPT desktop app or Codex CLI.

Step by step

  1. Connect the correct account

    Install the Figma plugin from the ChatGPT desktop Plugins panel, or use the Codex CLI command below. Sign in through Figma when prompted and review access before allowing it. Organizations may require admin approval.

    Codex Plugins with the plus beside the Figma entry
    Desktop: open Plugins and choose the plus beside Figma. When Figma opens, review the client name, account and permissions before allowing access. Source: Figma Developer Docs
    Figma authorization dialog from its published Claude Code walkthrough
    Figma’s consent screen is separate from installation. This is the publisher’s Claude Code example, not the Codex dialog. In your own screen, check that the named client and permissions are the ones you intended to authorize. Source: Figma's Claude Code demo, cropped to the original dialog
  2. Share just one frame

    Open a Figma file you own or can legally use for this exercise. Select the landing-page card and copy a link to that selection, not the entire project. Ask the agent to fetch context for that frame only.

    Figma context menu open to Copy link to selection
    Right-click the frame → Copy/Paste as → Copy link to selection. Give the agent that URL, not the link to the whole file. Source: OpenAI’s original Figma demo
  3. Implement the component

    In the local repo, tell the agent where the existing components and tokens live. Ask it to implement the card’s hierarchy, typography and spacing with those primitives. Do not copy an entire generated page or leave a screenshot in place of the component.

  4. Compare and refine

    Run the local preview. Compare the output and the reference at 390 px and desktop width. Check image crop, text wrapping, contrast and keyboard focus. Make one targeted correction and review the changed files.

Commands

codex mcp add figma --url https://mcp.figma.com/mcp

Sign-in & permissions

The remote connection requires signing into Figma and authorizing access. It can access resources permitted by your account and organization. This guide uses one frame as input and does not request writes to Figma, publishing or broader sharing. Check current Figma plan and seat limits.

The desktop plugin and the standalone CLI connection are alternatives. Adding the MCP server from the CLI does not install the Figma skills; the official setup page links to them separately.

Prompt for your agent

Use with: ChatGPT desktop with the Figma plugin, or Codex CLI with remote MCP

Copy the whole prompt into a supported agent. After any manual step, tell the same agent to continue from that step.

Use a clean project folder for this workflow: Build a landing-page card from a Figma frame. Supported setup: ChatGPT desktop with the Figma plugin, or Codex CLI with remote MCP. Start from the original documentation: https://help.figma.com/hc/en-us/articles/39888629089175-ChatGPT-Codex-CLI-and-Figma-Set-up-the-MCP-server.

1. SET UP
Ask which host I use. Desktop: ask me to open Plugins, find Figma and click Install. CLI: run codex mcp add figma --url https://mcp.figma.com/mcp after approval; that command does not add Figma skills. Only if requested, follow Figma's host-specific skills documentation. In both routes, pause for me to sign in and authorize in Figma. Ask for a link to one selected frame and confirm the connection can read that one frame before editing.

Documented commands or code reference (respect the comments and replace placeholders before running individual commands):
codex mcp add figma --url https://mcp.figma.com/mcp

2. PAUSE FOR ME IF NEEDED
For a host install, sign-in, permission screen, or model download that needs my consent, stop and tell me the exact app, control and what will be authorized. Do not enter passwords, OTPs or secrets in chat. Resume after I confirm.

3. BUILD THE FIRST RESULT
Use Figma’s official MCP setup at https://help.figma.com/hc/en-us/articles/39888629089175-ChatGPT-Codex-CLI-and-Figma-Set-up-the-MCP-server to read exactly the selected frame from my Figma link. Let me sign in and approve in Figma. Inspect the repo’s existing components and tokens, then implement only this card as a responsive component with semantic HTML. Use local preview to compare to the frame at 390 px and desktop. Report files changed and remaining differences. Do not write back to Figma or deploy.

4. CHECK THE RESULT
Show the local component at 390 px and desktop width; do not write back to Figma. Give me the actual file paths and anything that still needs a manual action. Do not publish or make a purchase.

Sources