Skip to content

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.
  1. 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/mcp

    Or edit the config file

    Add this to opencode.json at 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.
  2. Step 2: Check it's connected

    Terminal
    opencode mcp list

    Start OpenCode in the project; the server's tools are available to the agent straight away.

  3. 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.json from the project root, or ~/.config/opencode/opencode.json for every project.
  • Environment variables use the {env:NAME} syntax inside the config file.
  • Servers that need a sign-in: run opencode mcp auth <name>.