How to use Figma's MCP server to build designs from code

This workflow lets an AI agent create and edit frames on a Figma canvas straight from your terminal, using your published design system as the source of truth. It suits designers and developers who already work with components and code. You need the Figma desktop app, an MCP-capable AI client and a codebase to work in.

Figma tutorial: Code to canvas with your design system, by Figma on YouTube. 4 min 40 s.

6 chapters. Tap a step to jump to it.Chapters from the creator
Video length
4 min 40 s
Time to do it
20 minutes
Difficulty
Medium
Steps
8

What you need

Steps

  1. Open the Figma desktop app and switch on the MCP server in Preferences so your AI client can reach your files.

  2. Add the Figma MCP server to your AI client's config file, then start the agent from your project's terminal.

  3. Point the agent at your design system library so it reads your published components, styles and variables first.

  4. Prompt the agent to create or update a frame with the use_figma tool, naming the page, components and states you want.

  5. Open Figma Design and review what landed on the canvas: spacing, text styles and component variants.

  6. Keep iterating from the terminal, asking for smaller fixes like padding, alignment or a new variant.

  7. Leave comments on the frame to annotate what needs to change so the agent has written notes to work from.

  8. Send the approved design back to the codebase and read the diff before you commit or merge anything.

Tips and common mistakes

Commit or stash your code before you start so you can undo anything the agent writes.

Keep prompts small and specific, one frame or component at a time, or the output drifts from your system.

Publish your library before running the agent, since unpublished components often come back as loose layers.

Questions

What is the use_figma tool?

It is a tool in Figma's MCP server that lets an AI agent write to the canvas, not just read from it. That means the agent can build and edit frames directly in your file.

Do I need a paid Figma plan?

You need Dev Mode access and the desktop app, since the MCP server runs locally. Check your current seat against Figma's plan details before you start.

Can it use my own design system?

Yes, that is the point. Point the agent at your published library so it builds with your real components, styles and variables instead of raw shapes.

This guide was drafted from the video's details and general task knowledge. It has not been checked against the full video. Check the video and relevant product instructions before following a procedure. Report a correction.

More in Art & Design

See all