Skip to content

Instantly share code, notes, and snippets.

@discountry
Created March 9, 2026 14:20
Show Gist options
  • Select an option

  • Save discountry/68d9ccbda8c2a5d99b5a90687bac77c9 to your computer and use it in GitHub Desktop.

Select an option

Save discountry/68d9ccbda8c2a5d99b5a90687bac77c9 to your computer and use it in GitHub Desktop.

Shame on you Figma.... Here is a workaround without having to install a fork

Register the client:

curl -X POST https://api.figma.com/v1/oauth/mcp/register \
  -H "Content-Type: application/json" \
  -d '{
    "client_name": "Claude Code (figma)",
    "redirect_uris": ["http://127.0.0.1:19876/mcp/oauth/callback"],
    "grant_types": ["authorization_code", "refresh_token"],
    "response_types": ["code"],
    "token_endpoint_auth_method": "none"
  }'
 

Adjust redirect_uris to match your MCP client's OAuth callback. The above is OpenCode's default.

Configure the returned credentials in opencode.json:

figma: {
  enabled: true,
  type: remote,
  url: https://mcp.figma.com/mcp,
  oauth: {
    clientId: <client_id from response>,
    clientSecret: <client_secret from response>
  }
}

Remove the figma entry from ~/.local/share/opencode/mcp-auth.json and then run opencode mcp auth figma and accept browser prompts

Enjoy your freedom, and again: shame on you Figma!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment