Figma plays an important role in website or application development. Recently, Figma added a feature in the Dev Mode called MCP Server beta. This game-changing addition is for the developers to integrate with AI coding tools. 

Dev Mode is built for developers and provides easy inspection and design-to-code tools.

This blog briefly covers how to use Figma’s MCP Server to convert Figma designs into code, resulting in faster and clearer outputs.

What is Figma MCP?

Model Context Protocol, or MCP, is an open-source standard for connecting AI applications to external systems. Which means, MCP allows AI applications to access external systems such as local files, databases, and even tasks to perform. 

The MCP Server from Figma is a feature that helps developers generate accurate code directly from Figma Design files, Figma Make prototypes, and FigJam diagrams.

Currently, code editors with AI capabilities, such as Cursor, Claude Desktop, VS Code, Windsurf, and Zed, are providing developers with MCP (Model Context Protocol) server access to streamline their operations. Essentially, AI-powered code editors will utilize the MCP client, which communicates via a two-way protocol with Figma’s MCP Server, enabling them to extract design context, variables, and components directly from frames or layouts.

Figma’s Design-to-code

Developers, especially front-end or UI developers, heavily depend on Figma for wireframes or mockups. By the end, they have to convert them into website pages or application UI.
Traditionally, they inspect the frames and layouts, then convert them to code manually. Normally, this process takes considerable time and often leads to UI inconsistencies due to human error during development.
Now, we can utilize the AI with Figma’s MCP to reduce these types of hurdles. Plus, we will get the accurate styling and structure since it will access the core files directly.
So, how do we do this? To understand that, we need to know how the Figma design works with MCP to provide the proper context to the code editor. 

Setup & Configuration

Unfortunately, Figma’s MCP is not available for the free version. You need at least a professional plan. However, users on the starter plan with view/collab seats can access 6 calls per month.
We can connect the Figma MCP server in two ways:

  • Remote MCP server – Connect Figma’s remote server (Cloud)
  • Desktop MCP server – Connect locally with the Desktop App.

1. How to Connect the MCP Server with the Desktop App?

Keep both the Figma desktop app and the editor with the AI agent open. Here, we’re showing with the cursor editor. You need to also ensure that both applications are updated with the latest version.

Figma Desktop App (Server):

  • Open the Figma Desktop application
  • Enable the Dev Mode toggle to activate
  • Enable the Desktop MCP Server from the right sidebar’s accordion.

Cursor (Client): 

  • Open the cursor application
  • Go to the cursor settings and find the Tools & MCP menu
  • After selecting Tools & MCP, the “Add Custom MCP” button will appear on the right side. Click that button, and it will redirect to the JSON file. Configure the local server URL as mentioned below. 
  • Once configured in the JSON, go to the cursor setting, and the MCP Server can be configured successfully.
  • As per the previous screenshot, “figma-desktop” has been configured. Here, you can toggle the MCP at any time.

2. How to connect the MCP Server with the remote URL?

Figma’s remote MCP server bridges the editor with its REST API. For this, the desktop app is not mandatory. 

  1. Go to the MCP Directory from the cursor docs. Click Here
  2. Many MCP servers have been listed on that page. Search “Figma” from the search bar.

3. Click the “Add to Cursor” button from the install column. Then it redirects to the cursor for the installation in the Tool & MCP section. Once hit the install button, the MCP server will be configured successfully.

Eventually, both options will provide the code editor with a rich context to generate the code efficiently.

Figma design-to-code workflow

This flowchart shows the workflow of Figma design-to-code with MCP. As per the flowchart, we can divide the flow into 6 parts.

  1. Code Editor Prompt: 

Once the prompt has been initiated from the code editor, the agent starts work with the Figma MCP server to access the design context. This can be made in two ways.

  1. You can select a frame or layout directly from the Figma desktop, then reference it with your prompt.
  2. Second, include the Figma link that points to the specific frame.
  3. Figma’s MCP work: 

After receiving the request form from the AI tool, it will start executing the referencing design elements that need to be processed.
Step 1: It will parse the node ID, which is a unique identifier assigned to the Figma element. Then it will identify the element located on the page or file. Finally, it will validate that the requester has the appropriate access.
Step 2: After validation, the MCP server initiates a parallel data extraction task across multiple domains simultaneously. This approach gathers design structure, components (properties, variants, states), code mapping (Mappings to existing codebase components and patterns), variables (including colors, typography, and spacing scales), and a Screenshot (for visual reference of design appearance). Then it will ensure the complete design context is captured efficiently and passed to the AI agent.
Step 3: The extracted information has been processed and structured into a comprehensive JSON object that includes design data from all domains with a screenshot for visual context.
Step 4:  Both the JSON object and the screenshot have been transmitted to the AI agent a complete context through the MCP protocol.
Step 5: Finally, AI is ready to generate the production-ready code with the received context and data.

  1. AI Processing & Generation:

At this stage, AI agents will hold rich context, and with that context code generation process will start.

  • It will understand the context first, then generate code by matching design patterns and applying required rules.  
  • During this process, it will add a component structure with styling and interactivity. 
  • The final output code will depend on your configuration or the prompt instruction. The most common output could be React components with Tailwind as the default. However, it will also support Vue, HTML,
Svelte, and Angular as alternative frameworks.
  1. Developer Review & Quality Check

AI successfully generated the code with the MCP server’s support. However, AI is not always perfect or correct. Typically, AI achieves 70%-90% accuracy for common designs, but the percentage can vary significantly for complex designs. 

So, the developer review is always recommended. Make the quality checklists and execute them in every prompt output.

  1. Finalize for Production

After the quality check has passed and if all steps are fulfilled with no errors or refinements needed, the code is ready for production deployment consideration.

  1. Refinement & Update Cycle

At times, AI doesn’t produce what you expect during complex scenarios. Either you can do it manually or refine it with AI again. In some scenarios, if new changes are made, we can upgrade the UI with the update prompt.
If you prompt for any refinements or updates, the process will start again from step 1 to 6 as a cycle until the output is achieved as expected.
Let’s dive into some practical examples in the next section.
1. Generate Code from Figma MCP through Desktop AppSelected frame from Figma before executing the prompt

The final output has been given by the AI tool, which is responsive.

Used Prompt:
Implement the code for the selected frame in Figma using
– HTML 5
– Tailwind 4 CSS for Styling
– Design tokens from Figma variables
– Responsive design (mobile-first)

 Generate Code from Figma MCP through remote URL

  • This is the frame selected for design-to-code conversion with a remote URL.
  • We can find the URL in the MCP accordion tab from Dev mode after enabling.

The final output has been given by the AI tool.

Used Prompt:
Implement the code for the selected frame in Figma using@https://www.figma.com/design/IAtzHx0uHzWeFRzJoozUJ2/Test-Landing-Page?node-id=1-67&m=dev
– HTML 5
– Tailwind 4 CSS for Styling
– Design tokens from Figma variables
– Responsive design (mobile-first)
– Add it next to the “Feature Section” block
– Keep images inside the @assets folder

3.  How does the AI-generated code look?

Conclusion


Currently, several major design tools have MCP integration, including Figma (Official), Sketch (community-built), Penpot (Official), and Adobe XD (Experimental, community-built, but not officially supported). MCP is a new protocol from Anthropic, and the adoption is still in its early stages, but it is growing rapidly.
Among these tools, Figma is well-documented by the Figma team and used widely with AI-powered editors in the industry.

For more help on eCommerce design and development, you can reach out to our experts now!

Picture of Sridharan C

Sridharan C

Sridharan C is a Senior Front-End Developer at Klizer and holds an Adobe certification. He has over 8 years of experience in crafting fast and efficient user-focused web applications. He specializes in Magento, Shopify, Bigcommerce, WordPress, and React platforms, especially delivering clean and scalable code across e-commerce and enterprise platforms.

Get in Touch

Fix What’s Holding You Back

With 20+ years behind us, we build AI-powered ecommerce experiences that help businesses scale faster and stand out online.

© Copyright 2026 Klizer. All Rights Reserved

Scroll to Top