Skip to main content
Question

OpenAI Codex failed to execute figma.get_code function from Figma MCP server

  • October 11, 2025
  • 2 replies
  • 437 views

Rashidee Mohd Rashid

Curently Open AI Codex failed to read my Figma design. 

  1. Enable MCP server ✅
  2. Configure config.toml ✅
  3. Confirm Codex can connect to Figma MCP ✅
  4. Request Codex to read Figma design Url ❌

Enabled MCP Server:

 

Configure Codex config.toml

[mcp_servers.figma]
url = "http://127.0.0.1:3845/mcp"

 

Verify if Codex can connect to Figma MCP

/mcp

🔌  MCP Tools

  • Server: figma
    • Status: enabled
    • Auth: Unsupported
    • URL: http://127.0.0.1:3845/mcp
    • Tools: create_design_system_rules, get_code, get_code_connect_map, get_metadata, get_screenshot, get_variable_defs

 

Ask Codex to read Figma design. My prompt is:

 Can you read the Figma design using MCP of this URL https://www.figma.com/design/bXosv59ZjNN0OYsKWXTlrE/Votelah?node-id=6-90&t=zLsC3fi03yxsWtSv-4

“I got the URL by right clicking the Figma section > Copy/Paste as > Copy link to selection. Been wondering why the URL is not pointing to local MCP server or maybe it is by design that its pointing to remote URL www.figma.com?”

 

Then I got this response:

• Called figma.get_code({"nodeId":"6:90","clientFrameworks":"unknown","clientLanguages":"unknown"})
  └ An error occurred while using the tool get_code

• I tried using the MCP Figma tooling with that node (6:90) but the request failed, so I’m unable to pull the design directly. If you can export or describe the key details (layout, icon choices, text, spacing), I can
  incorporate them manually.

 

Please help. Got no issue using Claude Code to read Figma design. Not sure if this is an issue with OpenAI Codex or Figma MCP server itself.

2 replies

Chris C.
  • New Member
  • 1 reply
  • October 15, 2025

I’m hitting an issue where `get_code` is not even *listed* in the Figma MCP (local) server’s tools.


djv
Figmate
  • Community Support
  • 5211 replies
  • October 24, 2025

Hey All, thanks for reaching out! 

We recently renamed our get_code tool to get_design_context. This is likely why you’re running into errors, especially if your Figma MCP client has not refetched the tools list recently, but reconnecting to the server will fix this error.