Connecting Figma to Google Antigravity (Linux Guide)
Mateusz Kimont • Principal Full-Stack Engineer & AI Automation Architect
Connecting Figma to Google Antigravity (Linux Guide)
Because the official Figma Desktop app is not available on Linux, the standard local port connection (127.0.0.1:3845) will fail with an ECONNREFUSED error. To fix this, you must bypass the local desktop bridge and connect Antigravity directly to Figma’s cloud API.
Prerequisites
- Node.js: Ensure Node.js (v18+) is installed on your machine.
- Figma Personal Access Token (PAT):
- Log into Figma in your web browser.
- Click your profile avatar (top left) -> Settings -> Personal access tokens.
- Click Generate new token. Name it and ensure it has File content: read access.
- Copy the generated token (it will start with
figd_).
Method 1: The Direct API Package (Recommended)
This method uses npx to dynamically pull and run the Figma developer MCP server, securely routing your token directly to the API.
- Open Google Antigravity.
- Go to Manage MCP Servers -> View raw config.
- Replace any existing Figma configuration with the following JSON.
- Be sure to replace the placeholder with your actual
figd_token.
```json { “mcpServers”: { “figma”: { “command”: “npx”, “args”: [ “-y”, “figma-developer-mcp”, “–stdio” ], “env”: { “FIGMA_API_KEY”: “paste_your_figd_token_here” } } } }