Figma mcp

From tdimino/claude-code-minoan · View interactive version

Figma mcp is an AI agent skill from the GitHub repository tdimino/claude-code-minoan. Convert Figma designs into production-ready code using MCP server tools. Use this skill when users provide Figma URLs, request design-to-code conversion, ask to implement Figma mockups, or need to extract design tokens and system values from Figma files. Works with frames, components, and entire des

How to use this skill

Skill file

Figma MCP

Overview

This skill enables accurate design-to-code conversion by leveraging Figma's MCP (Model Context Protocol) server to access structured design data directly from Figma files. Unlike screenshot-based approaches, the Figma MCP provides semantic information about every design element including exact spacing, colors, typography, component hierarchy, and design system tokens, resulting in significantly more accurate code generation.

When to Use This Skill

Trigger this skill when users:

Workflow

Step 1: Receive Figma Design Reference

When a user provides a Figma URL or requests design implementation:

  1. Identify the Figma link type:
  1. Confirm access:

Step 2: Fetch Design Data Using MCP Tools

Use the available Figma MCP tools to retrieve structured design data:

Key MCP Tools Available:

Best Practice: Start with get_figma_data for the specific frame or node the user referenced. This provides the complete structure, layout data, and styling information.

Example workflow:

User: "Implement this Figma design: [Figma URL with node-id]"

1. Extract file_key and node_id from URL
2. Call get_figma_data with file_key and node_id parameters
3. Receive structured JSON with:
   - Element hierarchy (frames, groups, components)
   - Layout properties (position, size, constraints, auto-layout)
   - Styling (fills, strokes, effects, typography)
   - Component instances and variants
   - Design tokens and variables

Step 3: Analyze Design Structure

Before generating code, analyze the fetched design data:

  1. Identify component hierarchy:
  1. Extract design system values:
  1. Determine layout approach:

Step 4: Generate Code

Generate production-ready code based on the design data:

Code generation principles:

  1. Use semantic HTML:
  1. Preserve design system values:
  1. Match layout behavior:
  1. Component-based architecture:
  1. Responsive considerations:

Example output structure:

// For React
import React from 'react';
import './styles.css';

export const ComponentName = () => {
  return (
    <div className="container">
      {/* Preserved hierarchy and styling */}
    </div>
  );
};

Step 5: Validate and Refine

After generating initial code:

  1. Verify accuracy:
  1. Check for improvements:
  1. Offer refinements:

Best Practices

Design-to-Code Accuracy

Code Quality

Design System Integration

Performance

For more detailed guidance, reference:

Common Patterns

Pattern 1: Landing Page from Figma

User provides: Figma link to landing page design
Process:
1. Fetch complete page structure with get_figma_data
2. Identify sections (hero, features, CTA, footer)
3. Generate semantic HTML with section elements
4. Extract colors/typography to CSS variables
5. Implement responsive behavior from constraints

Pattern 2: Component Implementation

User provides: Figma link to button component with variants
Process:
1. Fetch component definition with get_figma_components
2. Identify variants (primary, secondary, sizes)
3. Create React component with props for variants
4. Extract shared styles to base component
5. Implement variant-specific styles as props/classes

Pattern 3: Design System Extraction

User requests: Extract design tokens from Figma file
Process:
1. Fetch variables with get_figma_variables
2. Fetch text/color styles with get_figma_styles
3. Generate CSS custom properties or theme object
4. Document token naming and usage
5. Export as stylesheet or config file

Troubleshooting

MCP server not available:

Design data incomplete:

Code doesn't match design visually:

Resources

This skill includes reference documentation to support Figma MCP workflows:

references/setup-guide.md

Complete setup instructions for configuring Figma MCP server (official and community options) in Claude Code and other MCP clients. Reference when users need to set up the integration.

references/best-practices.md

Extended best practices, detailed examples, and advanced patterns for design-to-code conversion including component architecture, responsive design strategies, and design system integration.

Recent Updates

Community server rebranded (Apr 2026): The popular community MCP server by GLips has been rebranded from "figma-developer-mcp" to Framelink MCP for Figma (v0.11.0, 14.5k+ stars). It now supports stateless HTTP transport, VS Code layer generation, and prompt injection defense. The npm package name remains figma-developer-mcp for backward compatibility. See references/setup-guide.md for updated configuration.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.