Connect Figma (desktop MCP) to OpenCode
Figma's local MCP server, served by the desktop app. Gives agents design context, variables and code-connect data for the selected frame.
MCP serverOfficialChecked 2026-11-16
Before you start
- OpenCode installed (see its MCP documentation (opens in a new tab)).
- Figma (desktop MCP) is available on macOS and Windows. Keep its desktop app open while you work.
- Needs the Figma desktop app with a Dev or Full seat on a paid plan, and the desktop MCP server enabled.
Step 1: Add Figma (desktop MCP) to OpenCode
Add it from the terminal
Run this in your project folder. It saves the server to the project's
opencode.json.Terminal opencode mcp add figma-desktop --url http://127.0.0.1:3845/mcpOr edit the config file
Add this to
opencode.jsonat the project root.opencode.json { "$schema": "https://opencode.ai/config.json", "mcp": { "figma-desktop": { "type": "remote", "url": "http://127.0.0.1:3845/mcp", "enabled": true } } }Good to know- The desktop app must be open for the server to respond.
Step 2: Check it's connected
Terminal opencode mcp listStart OpenCode in the project; the server's tools are available to the agent straight away.
Step 3: Try a first request
Ask OpenCode something that only works with Figma (desktop MCP) connected:
Say to OpenCode Get the design context for the frame I have selected in Figma and list the components it uses.
If it doesn't work
- OpenCode reads
opencode.jsonfrom the project root, or~/.config/opencode/opencode.jsonfor every project. - Environment variables use the
{env:NAME}syntax inside the config file. - Servers that need a sign-in: run
opencode mcp auth <name>.





