Logo Reqwise Figma MCP

Reqwise Figma MCP

Cộng đồng
hoangpm96

An MCP server that lets AI agents read and draw on the Figma canvas — safely. Paired with a Figma plugin, it provides structured verification, safe-by-default drawing, and resilient multi-window support for Claude Code, Codex, Cursor, and other MCP clients.

Nhà phát hànhhoangpm96
Kho mãreqwise-figma-mcp
Ngôn ngữTypeScript
Bản fork
40
Sao
101
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Reqwise Figma MCP cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    101 sao và 40 bản fork từ kho mã được liên kết.

Reqwise Figma MCP

Reqwise Figma MCP — AI agents read and draw on the Figma canvas, safely: an open-source local MCP server plus Figma plugin for Claude Code, Cursor and Codex

An MCP server that lets AI agents read and draw on the Figma canvas — safely. Open source (MIT).

Need BPMN, UI templates, a 1-to-1 code ↔ Figma component map, design systems, journey maps, personas, accessibility and responsive audits, or self-playing demos? They are in Reqwise Figma MCP Pro →. Compare the two editions below.

Reqwise Figma MCP pairs a local MCP server with a companion Figma plugin. Point Claude Code, Cursor, Codex or any MCP-capable agent at it, and the agent can inspect a Figma file and draw into it by executing JavaScript against a figma.* proxy API — with the plugin layer catching the mistakes that usually turn "AI draws a screen" into "AI draws an overflowing, half-clipped mess." It also draws the BA diagrams a spec needs — userflow, activity, sequence, ERD, sitemap, state machine — and proof-reads the model behind each one.

It exists because the current generation of Figma MCPs make agents responsible for discipline they don't have: remembering never to overlay a semi-transparent frame, re-declaring token maps every call, manually computing x/y offsets, eyeballing screenshots to check for clipping. Reqwise moves that discipline into the server and plugin, and gives the agent a structured way to verify its own work.

Free vs Pro

Free vs Pro at a glance — Free (MIT): bridge and multi-agent, read/draw canvas, layout_audit, tokens and styles, icons/images/prototypes, six BA diagrams and their Claude skills. Pro adds components and properties, design-system generation, use case, BPMN, journey and persona diagrams, UI section and block templates, a 1-to-1 code to Figma component map, accessibility and responsive audits, self-playing demos and video recording

FeatureFreePro
Connection
Figma bridge with rich diagnostics and next-step hints✅✅
Several Figma windows and several AI agents at once (leader/follower)✅✅
One launcher for Claude Code, Cursor and Codex✅✅
Hardened local bridge (sandboxed JS, authenticated forwarding)✅✅
Rule sheet and on-demand docs for the agent✅✅
Read and draw on the canvas
Read pages, layers, selection; screenshots and exports✅✅
Draw and edit frames, text, shapes; streaming batches✅✅
Layout audit — overflow, clipping, truncated text✅✅
New work never lands on top of existing work✅✅
Tokens and variables — create, bind, edit, import/export✅✅
Text styles and effect styles✅✅
Icons, images, overlays, gradients, recolor✅✅
Prototype reactions✅✅
Delete pages and styles, sweep unused styles✅✅
Read an existing design system; export design-kit.md✅✅
Components — find, create, variants, instances—✅
Component properties — booleans, nested instances, edit/delete—✅
Design-system compliance audit and auto-binding—✅
BA diagrams
Userflow✅✅
Activity diagram with swimlanes✅✅
Sequence diagram✅✅
ERD✅✅
Sitemap✅✅
State machine✅✅
Arrows follow the boxes; edit a diagram in place✅✅
Cross-check diagrams against each other✅✅
Use case diagram—✅
BPMN process diagram — pools, lanes, events, gateways, message flows—✅
User journey map (several layouts and themes)—✅
Persona set—✅
Design system
Generate a design system — 60 components, tokens, screen grids, doc pages—✅
10 visual styles, side-by-side preview, AI style recommendation—✅
Learn a system from the canvas or from design.md—✅
1-to-1 map between your code components and Figma components — props ↔ variants, kept in sync both ways—✅
The tool asks the user the right questions, with time estimates—✅
UI templates
Section and block templates — hero, nav, pricing, data table, form, empty state—✅
Templates drawn with your components and tokens, not pasted stock art—✅
Start a design system from a template — palette and visual style preconfigured—✅
Quality and presentation
Accessibility audit — contrast, touch targets, unnamed controls—✅
Responsive audit — stretch a screen, compare mobile and desktop—✅
Self-playing prototype demos—✅
Record a demo to video—✅
Claude skills
/figma-userflow, /figma-activity, /figma-sequence, /figma-erd, /figma-sitemap, /figma-state✅✅
/figma-usecase, /figma-journey, /figma-persona, /figma-design-system, /figma-demo—✅

Get Pro → — this table is generated from the feature list both editions ship from, so it is current with every release.

Why this one

Typical Figma MCPReqwise Figma MCP
VerificationScreenshot only — agent eyeballs pixelslayout_audit returns declared vs. rendered bounds, overflowsParent, clippedBy, textTruncated per node; screenshots stay for final human review
Overlays / scrimsAgent dims a screen with an opacity'd FRAME (dims the whole subtree)figma.overlay() creates a correctly layered RECTANGLE — the mistake is structurally unavailable
Session stateToken maps and id registries re-declared every callstate is a persistent object per session; set up tokens once, reuse across calls
ConnectionSilent boolean, or a dead WS with no explanationfigma_status returns diagnostics plus an ordered hints list of concrete next steps
Multiple IDE windowsSecond server instance fights for the port or silently failsLeader/follower election; followers forward through an authenticated /rpc to the one leader holding the plugin connection
Batch operationsHard caps (e.g. 50 ops) with all-or-nothing failureChunked streaming, partial commit, exact per-index error reporting, no hard cap
Structural framesFigma's default white fill turns layout wrappers into accidental white slabsFRAME/COMPONENT without an explicit fill defaults to transparent; visible surfaces opt in
Sandbox JSRestricted/older syntax (no ?., ??, spread)Node vm — full modern ES (optional chaining, nullish coalescing, spread, async/await)
ErrorsBare exceptionsEvery failure carries {code, message, hint} — the hint is the next concrete step
Edit-in-placeDraw-from-scratch focus; per-op fights the single-threaded pluginSelection-first workflow (readSelection → modify → layout_audit), instance-override "format painter", recursive recolor, mixed-font-safe text edits; writes serialized per connection so mutations never race
DiagramsMermaid/plantuml text rendered to an image — each diagram an islandEvery diagram frame stores the model it was drawn from: change one with update + patch instead of re-authoring it, and let the tools ask whether the diagrams on the page contradict each other
Business rules with a numberThe 10 minutes retyped into four diagrams; one gets updated, the others don'toptions.policies holds the value once and labels reference it as @hold-minutes — a label cannot drift from a number it doesn't hold

See ARCHITECTURE.md for the full design rationale and the root-cause fixes behind these defaults.

Quickstart

How Reqwise works — 1. install the MCP (npm install, npm run build, register in Cursor/Claude/Codex), 2. import the plugin in Figma Desktop from manifest.json, 3. open your file and keep the plugin window open, 4. call figma_status, then figma_read / figma_write / figma_diagram, then layout_audit

bash
git clone https://github.com/hoangpm96/reqwise-figma-mcp.git
cd reqwise-figma-mcp
npm install
npm run build

This builds the server to dist/ and the plugin bundle to plugin/code.js.

Register the MCP server — all editors at once (Cursor, Claude Code, Codex):

bash
npm run install:mcp

or one editor by hand:

bash
claude mcp add reqwise-figma -s user -- /absolute/path/to/reqwise-figma-mcp/scripts/reqwise-mcp.sh

Import the plugin into Figma Desktop: menu → Plugins → Development → Import plugin from manifest… → select plugin/manifest.json. Run it from Plugins → Development → Reqwise Figma MCP and keep its window open.

Check the connection: ask your agent to call figma_status. Full walkthrough and troubleshooting: docs/SETUP.md and docs/INSTALL.md. Several editors at once: docs/MULTI-AGENT.md.

Every session: open your Figma file → Plugins → Development → Reqwise Figma MCP → leave the window open. Figma doesn't auto-start plugins.

Tools

ToolPurpose
figma_statusRich connection diagnostics — plugin connection, leader/follower mode, heartbeat, queue, sessions, and an ordered hints list. Never a bare boolean.
figma_readRead the canvas via an op enum (get_document_info, get_selection, read_selection, get_design_context, get_design_system_kit, generate_design_md, search_nodes, screenshot, layout_audit, get_diagram_spec, get_page_model, ...) with token-frugal responses.
figma_writeExecute modern-ES JavaScript against the figma.* proxy to create/modify the canvas. state persists per session.
figma_rulesOne-call design-system rule sheet (styles + variables + components) as markdown — read before drawing so you reuse instead of hardcode. For a durable spec, use figma_read op generate_design_md and save the returned markdown as design-kit.md.
figma_diagramDraw six diagram kinds from a model you derived from the spec, each with findings on the content, not the drawing. type:"activity" — a business process, with swimlanes or without: one band per owner, the handoffs between bands; reports an unlabelled handoff, a step nobody owns, a fork that never joins. type:"sequence" — an exchange over time: participants as columns, messages in the order you list them, activation bars derived from the calls and their replies, alt/loop blocks; reports a call nobody answers, a reply with no call, an alt with no else. type:"state" — the lifecycle of ONE entity: the values it can hold and every change that is allowed, written event [guard] / action; reports a state nothing can reach, a state nothing can leave, two transitions racing on one event. type:"erd" — a data model: tables, columns, keys, crow's-foot cardinality; reports what bites after a migration (no primary key, a foreign key to a column that does not exist, a many-to-many with no join table). type:"userflow" — the screens a user moves through, from a graph or a mermaid flowchart; reports a question with one way out, a dead end, an unreachable screen. type:"sitemap" — the pages a product is made of and what contains what, drawn as a tidy tree; reports an orphan page, a section with nothing under it, a depth nobody will navigate, and cross-checks against the userflows on the page. Write any of them in the compact text form at ~a third of the tokens, draw a whole set in one call (diagrams: [...], placed for you), and change one with update + patch instead of re-authoring it. Every draw is cross-checked against the other diagrams on the page. Arrows stay attached on all of them: drag a box and every line touching it re-routes.
figma_docsOn-demand documentation: rules | layout | api | tokens | icons | recipes | style | userflow | activity | erd | sequence | sitemap | state. Read style when there's no design system to reuse — it's the brand-neutral default scale/palette/elevation to fall back on instead of inventing values.

Full parameter reference for every operation and every figma.* method: docs/TOOLS.md. Pro adds figma_design_system and figma_record, four more diagram kinds (use case, BPMN, journey map, persona set), the UI templates, the code ↔ Figma component map and the audits — see Free vs Pro.

Diagram skills

.claude/skills/ ships a skill per diagram kind — /figma-userflow, /figma-activity, /figma-sequence, /figma-state, /figma-erd, /figma-sitemap — plus the discipline they share (the connection gate, the four levels of "correct", the findings loop, verification). Copy them into .claude/skills/ in your project. See .claude/skills/README.md.

Example: figma_write

js
// Set tokens once — they persist in this session's `state.tokens`.
await figma.setupTokens({
  colors: { primary: "#2563EB", surface: "#0B0B0F" },
  numbers: { "radius-md": 8 },
});

// Draw a card with wrapping text, reusing the parent's width.
const card = await figma.create({
  type: "FRAME", name: "Card", parentId: state.rootId,
  width: 320, layoutMode: "VERTICAL",
});
await figma.applyVariable(card.id, "fills", "surface");
await figma.create({
  type: "TEXT", parentId: card.id, wrap: true,
  characters: "A long paragraph that must wrap inside the card.",
});

// Verify before screenshotting for a human.
const audit = await figma.layoutAudit(card.id);
if (audit.summary.issues.length) console.warn(audit.summary.issues);

Example: snapshot a design system to design-kit.md

Ask your agent to call:

json
{ "op": "generate_design_md", "params": { "depth": 3, "includeAnatomy": true, "includeScreens": true } }

The response contains a source-grounded markdown snapshot: extraction coverage, colors, typography, observed layout frequencies, screen composition evidence, local and remote component usage, exact node ids/keys/variant ids/property keys, ready-to-run instantiate examples, reuse rules, responsive evidence and known gaps. Save it in the target codebase as design-kit.md before asking the agent to create UI from an existing Figma component system. Facts are separated from observations and unknown UX semantics. For a very large file, tune maxComponents, maxScreens, maxInstances or maxOutputChars; output limits omit complete sections rather than cutting Markdown mid-table/code-block.

design.md and design-kit.md are two different files — human intent vs. machine snapshot, like package.json vs. package-lock.json. The tools never overwrite design.md. See the two-file workflow.

Architecture

MCP client (Claude Code / Cursor)
      │ stdio (MCP)
      ▼
 Reqwise MCP server (Node ≥ 18, TypeScript)
      │  owns HTTP+WS server on localhost:38470 (fallback +1..+9)
      │    GET  /health    → diagnostics JSON
      │    POST /rpc       → follower → leader forwarding (auth token)
      │    WS   /ws        → Figma plugin UI connection
      ▼
 Figma Desktop plugin
   ├── ui.html   (WebSocket client, heartbeat, reconnect w/ backoff)
   └── code.js   (Plugin API executor, safe-default handlers)

Every operation — leader-direct or follower-forwarded — passes through one validateOperation() choke point before it reaches the plugin. Full topology, the leader/follower protocol, and the 15 safe-default fixes are documented in ARCHITECTURE.md.

Documentation

Reqwise Figma MCP Pro

Pro is the full edition, built by the same author on this same core: a design-system generator with ten visual styles, use case and BPMN diagrams, journey maps and persona sets, component authoring, UI section and block templates that draw with your own components and tokens (and design-system templates that come with palette and visual style preconfigured), a 1-to-1 map between your code components and their Figma counterparts (props ↔ variants, so generated UI matches the codebase instead of resembling it), accessibility and responsive audits, self-playing demos and demo videos. ai4ba.com/figma-mcp

License

MIT — see LICENSE. Reqwise Figma MCP Pro is a separate, commercially licensed product.

Cài đặt

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

Dùng MCP Reqwise Figma MCP với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Reqwise Figma MCP, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Reqwise Figma MCP làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Reqwise Figma MCP.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "reqwise-figma-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "reqwise-figma-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Reqwise Figma MCP, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Reqwise Figma MCP.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Reqwise Figma MCP giúp tôi làm việc này không?
Reqwise Figma MCP
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Reqwise Figma MCP.

Câu hỏi thường gặp

Máy chủ MCP Reqwise Figma MCP dùng để làm gì?

Reqwise Figma MCP là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Reqwise Figma MCP với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Reqwise Figma MCP với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Reqwise Figma MCP với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Reqwise Figma MCP, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Reqwise Figma MCP với TypingMind?

Reqwise Figma MCP hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Reqwise Figma MCP cung cấp những công cụ nào trong TypingMind?

Reqwise Figma MCP cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Reqwise Figma MCP không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Reqwise Figma MCP yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇