Layerbridge

v0.3.0
io.github.muradyf/layerbridge Checked 3 days ago Published 2 months ago

Read, edit and export the Figma file open in a local plugin.

Values you need

VariableWhat it is
FIGMA_BRIDGE_PORToptional Local port the Figma plugin connects to; choose the same port in the plugin panel Default: 1995
FIGMA_BRIDGE_OUTPUT_ROOTSoptional Extra folders export tools may write to (; on Windows, : elsewhere). Default: working directory only
FIGMA_ACCESS_TOKENoptional secret Optional Figma personal access token; enables REST tools (comments, versions, team files)
FIGMA_BRIDGE_ALLOW_SCRIPTSoptional Allow the run_script tool to execute Plugin API code in the open file Default: false

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add layerbridge -- npx -y layerbridge@0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "layerbridge": {
      "args": [
        "-y",
        "layerbridge@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "layerbridge": {
      "args": [
        "-y",
        "layerbridge@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "layerbridge": {
      "args": [
        "-y",
        "layerbridge@0.3.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.layerbridge]
command = "npx"
args = ["-y", "layerbridge@0.3.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: get_local_components, create_component, combine_as_variants, create_instance, swap_component, detach_instance, set_instance_properties, add_component_property, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json