Skip to main content
Question

OAuth failure with Figma MCP on macOS (Docker + Claude Code)

  • April 11, 2026
  • 1 reply
  • 71 views

Acka

I’m encountering an issue authenticating with the official Figma MCP server (https://mcp.figma.com/mcp) when using Claude Code inside Docker on macOS.

Environment
    •    macOS (Apple Silicon)
    •    Docker Desktop
    •    Claude Code (running inside Docker container)
    •    MCP server: https://mcp.figma.com/mcp
    •    Browser: Safari, Chrome, Firefox (all reproduce)

Behavior
    •    OAuth flow completes in browser
    •    Redirect to http://localhost:<port>/callback happens
    •    Then fails with: Browser: Invalid state parameter; Claude: OAuth state mismatch - possible CSRF attack

Notes
    •    Confirmed callback server is reachable from browser
    •    Tried: fixed callback port (--callback-port); Docker port mapping; Docker host networking

Observation

The failure happens after a successful redirect to localhost. It appears that the state parameter returned in the callback does not match the original value, causing the request to be rejected.

1 reply

adamsmasher
Figmate
  • Figmate
  • April 13, 2026

Hello ​@Acka! Thanks so much for taking the time to detail your setup.

 

I did some digging on our end and it doesn’t look like we officially support using the MCP server within a Docker container. Have you tried using the desktop MCP server with the Figma Desktop app? It’s possible that might work rather than the remote MCP server.

 

If you haven’t yet, I’d also take a look at Docker’s help article on connecting to remote MCP servers; it’s possible you might need to make some changes with Docker so the OAuth sign-in completes.

 

Let me know if you have any other questions!