Dtwin logo

Dtwin

by @design-twin

Reads Figma designs locally and gives Claude Code tools to extract, build, and verify screens in your project.

Install Dtwin

Run the project’s own setup commands, in order.

Setup steps from the project

@design-twin/dtwin installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    brew install its-magdy/tap/dtwin      # or: bun add -g @design-twin/dtwin
    
  2. 2. Add to Claude Code
    claude plugin marketplace add its-magdy/design-twin
    
  3. 3. Install
    claude plugin install designtwin@designtwin-marketplace
    
  4. 4. Add to your MCP client
    dtwin init --mcp
    

Overview

@design-twin/dtwin connects a local Figma desktop plugin to Claude Code through an MCP server, avoiding Figma REST API keys and an intermediary cloud service. It reads designs on any Figma plan, including the free plan, and helps Claude Code build screens using project components and tokens. Use it when you want a local Figma-to-code workflow with design verification across web and native stacks.

Use cases

  • Extract a Figma frame into a local project
  • Build screens with existing components and design tokens
  • Verify web output against a Figma design
  • Check component mappings for drift
  • Read Figma designs without a REST API key

Key features

  • Local Figma Plugin API connection
  • Claude Code MCP integration
  • Figma frame extraction and screen building
  • Component and token mapping
  • Web and native design verification
  • Limited gated Figma write operations

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
npm downloads1.6kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.

How Dtwin works

What @design-twin/dtwin does

@design-twin/dtwin creates a local path from an open Figma file to Claude Code. A development plugin runs inside the Figma desktop app, while the dtwin CLI configures the project and MCP connection. Claude Code can then work with a selected Figma frame, generate implementation code, and compare the result with the source design.

The workflow is designed for Figma accounts on any plan, including the free plan. It uses the Figma Plugin API rather than the Figma REST API, so setup does not require a Figma API key or a hosted service between Figma and the coding agent.

How it works

Run dtwin init --mcp from the root of the application project. The command creates a design/ directory, records the detected stack in design/target.json, creates a local bridge token, copies the plugin, and adds an MCP entry for Claude Code.

After importing the development plugin into Figma, connect it with the token printed by dtwin token show. The Figma file must remain open in the desktop application with the plugin running whenever a design is pulled.

Claude Code uses the /designtwin:extract skill to retrieve a frame from a Figma link and /designtwin:build-screen to implement it. /designtwin:verify checks a running web or native build against the design. Component mappings in design/codeconnect.local.json and token mappings in design/tokens.json can guide implementation and drift checks.

Setup and configuration

Install the CLI with Homebrew or Bun:

bash
brew install its-magdy/tap/dtwin
# or
bun add -g @design-twin/dtwin

Install the Claude Code plugin, initialize the project, and import the Figma plugin:

Terminal
claude plugin marketplace add its-magdy/design-twin
claude plugin install designtwin@designtwin-marketplace
dtwin init --mcp
dtwin plugin import

In Figma, open the imported development plugin and connect it to Claude Code using the token from dtwin token show. Restart Claude Code in the project directory and approve the MCP server when prompted. dtwin doctor checks the local setup and reports the next step for detected problems.

Bun 1.4.2 or later is required for the CLI, MCP server, and Claude Code plugin scripts.

Tools and capabilities

  • Read a Figma frame through the local plugin.
  • Expose Figma status through figma_status.
  • Perform limited Figma edits through figma_write after edits are enabled in the plugin.
  • Build screens using the project's components and token mappings.
  • Check component mappings against the live Figma catalog with drift-lint.
  • Measure web output node by node and compare native output as images.

Supported target stacks include web, React Native, SwiftUI, Jetpack Compose, Flutter, and custom project stacks.

Limitations and notes

Figma desktop is required; the workflow is not headless. The plugin is imported as a development plugin rather than installed from Figma Community. The local bridge accepts connections only from the configured localhost WebSocket range.

Design data is kept between the Figma plugin and the local coding agent, but files read by Claude Code are still sent to its model as project data. Write operations are intentionally narrow: figma_write can create a frame or text and set a fill or text, and requires the user to enable edits.

Web verification uses Chromium. Native verification uses the relevant stack's rendering tools. Generated Swift, Kotlin, and Dart token files are not compiled in CI. Windows quick suites run in CI, but live Figma testing has been performed on macOS; the Claude Code plugin's Windows startup check requires sh, such as through Git Bash.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Dtwin

@design-twin/dtwin is an MCP server that connects Claude Code to a Figma desktop plugin running locally. Its main tools include `figma_status` for connection state and `figma_write` for limited, user-approved edits, while related commands extract frames, build screens, and verify implementations against designs.

Install it with Homebrew or Bun, then run `dtwin init --mcp` in your project. Install the associated Claude Code plugin, import the Figma development plugin with `dtwin plugin import`, connect it using `dtwin token show`, and restart Claude Code.

Yes, it is designed to work with any Figma plan, including the free plan. It reads designs through the Figma Plugin API in the desktop app, so it does not require a Figma REST API key or a paid Dev seat.

Bun 1.4.2 or later is required. The CLI, MCP server, and Claude Code plugin scripts run with Bun; Node.js alone is not sufficient.

Yes, `/designtwin:verify` checks a running build against the Figma design. Web builds are measured node by node in Chromium, while native builds are rendered with their stack tools and compared as images.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDtwin AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/design-twin-dtwin?style=directory)](https://allmcps.com/mcp/design-twin-dtwin)
HTML Embed
<a href="https://allmcps.com/mcp/design-twin-dtwin"><img src="https://allmcps.com/api/badge/design-twin-dtwin?style=directory" alt="Dtwin on AllMCPs" /></a>