Skip to main content
Glama
figma-capture-mcp

figma-capture-mcp

by LanceShu

figma-capture-mcp

An MCP server for capturing webpages directly into Figma using HTML-to-design.

Features

  • Capture any webpage to Figma designs via MCP protocol

  • Supports both history and hash router modes

  • CSS selector targeting for specific elements

  • Customizable capture delay

Related MCP server: pursr-mcp

Installation

{
  "mcpServers": {
    "figma-capture": {
      "command": "npx",
      "args": ["figma-capture-mcp"]
    }
  }
}

Global Installation

npm install -g figma-capture-mcp

Then configure:

{
  "mcpServers": {
    "figma-capture": {
      "command": "figma-capture-mcp"
    }
  }
}

Usage

After configuration, use the capture_webpage tool in Claude Code:

Capture http://localhost:5173

Parameters

Parameter

Type

Default

Description

url

string

required

The URL of the webpage to capture

selector

string

"body"

CSS selector of the element to capture

delay

number

1000

Delay in milliseconds before triggering capture

How It Works

  1. Launches a browser with the specified URL

  2. Injects Figma's HTML-to-design capture script

  3. Triggers the capture when the page is ready

  4. Browser stays open until you manually close it

Requirements

  • Node.js >= 18.0.0

  • Playwright browser dependencies

  • Figma desktop app with HTML-to-design plugin

License

ISC

Available Tools

1 tool
capture_webpageCapture Webpage

Capture a webpage using Figma's HTML-to-design feature. Supports both history and hash router modes.

Inputs: url (required), delay, selector.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables capturing screenshots of web pages and local HTML files through a simple MCP tool interface using Puppeteer with configurable options for dimensions and output paths.
      2
      151 npm
      37
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to capture screenshots, run visual diffs, accessibility audits, and batch sweep plans for web pages via MCP tools.
      11 npm
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables MCP clients to read design structure, take screenshots, create nodes, and edit UI directly on Figma canvas via a bridge between MCP and Figma Desktop.
      10
      MIT