Figma MCP config reference
Use this snippet to register the Figma MCP server in ~/.codex/config.toml as a streamable HTTP server with bearer auth pulled from your env.
[mcp_servers.figma]
url = "https://mcp.figma.com/mcp"
bearer_token_env_var = "FIGMA_OAUTH_TOKEN"
http_headers = { "X-Figma-Region" = "us-east-1" }
Notes and options
- The bearer token must be available as
FIGMA_OAUTH_TOKENin the environment that launches Codex. - Keep the region header aligned with your Figma region. If your org uses another region, update
X-Figma-Regionconsistently. - OAuth on streamable HTTP requires the RMCP client: set
[features].rmcp_client = true(orexperimental_use_rmcp_client = trueon older builds) at the top level ofconfig.toml. - Optional per-server timeouts:
startup_timeout_sec(default 10) andtool_timeout_sec(default 60) can be set inside[mcp_servers.figma]if needed.
Env var setup (if missing)
- One-time set for current shell:
export FIGMA_OAUTH_TOKEN="<token>" - Persist for future sessions: add the export line to your shell profile (e.g.,
~/.zshrcor~/.bashrc), then restart the shell or your IDE. - Verify before launching Codex:
echo $FIGMA_OAUTH_TOKENshould print a non-empty token.
Setup + verification checklist
- Add the snippet above to
~/.codex/config.tomlunder[mcp_servers.figma], and enable[features].rmcp_client = true(orexperimental_use_rmcp_client = trueon older releases). - Restart Codex (CLI/IDE) after updating config and env vars.
- Ask Codex to list Figma tools or run a simple call to confirm the server is reachable.
Troubleshooting
- Token not picked up: Export
FIGMA_OAUTH_TOKENin the same shell that launches Codex, or add it to your shell profile and restart. - OAuth errors: Verify
rmcp_clientis enabled and the bearer token is valid. Tokens copied from Figma should not include surrounding quotes. - Network/headers: Keep the
X-Figma-Regionheader; if your org uses another region, update the header consistently across config and requests.
Usage reminders
- The server is link-based: copy the Figma frame or layer link, then ask the MCP client to implement that URL. The client will extract the node ID from the link (it does not browse the page).
- If output feels generic, restate the project-specific rules from the main skill and ensure you follow the required flow (get_design_context → get_metadata if needed → get_screenshot).