All posts
Platform migrations

Claude Code + Figma MCP: Building a Landing Page From a Figma File

Use Claude Code with the Figma MCP server to turn a Figma frame into a Next.js landing page, and see where a human still fixes spacing, layout and copy.

By Mehdi Hassan8 min read

The short answer

To use Claude Code with the Figma MCP server, connect Figma's remote MCP server to Claude Code, sign in, then paste a link to a Figma frame and ask Claude Code to build it in your Next.js project. The agent reads the frame's structure, variables and a screenshot. A developer still fixes spacing, responsiveness, copy and accessibility.

Key takeaways

  • Figma's remote MCP server connects to Claude Code with a plugin or one claude mcp add command, then a browser sign-in.
  • Build one section at a time from frame links, not the whole page in one prompt.
  • The output is only as good as the file: auto layout, variables and named layers make the biggest difference.
  • Expect to fix responsive behavior yourself, because a Figma frame shows one width, not the rules between widths.
  • Treat the copy in the file as a draft. The agent builds exactly what's there, placeholder text included.

Part of Figma to Website: Framer, Webflow or Next.js?

How do you use Claude Code with the Figma MCP server?

You use Claude Code with the Figma MCP server by adding Figma's server to Claude Code, authenticating with your Figma account, and prompting with links to specific frames. The server gives the agent structured design context, and Claude Code writes the page inside your existing repo.

This setup sits between plugin converters and hand-coding. Our guide to Figma to code with AI compares it with Figma Make and plugins, and our hub on Figma to website covers when Next.js is the right destination at all. This article is the hands-on version: one landing page, built section by section, with notes on where the agent stops being enough.

Both tools change quickly. We describe only the setup that Figma and Anthropic document, and we point you to their docs for anything that may have moved since this was written in 2026.

What do you need before you start?

You need a Figma file you can open, Claude Code installed, and a Next.js project for the page to land in. The Figma file's quality matters more than any prompt, so prepare it first.

  • Figma access. Figma's MCP server docs list which plans and seats can use the remote and desktop servers, plus usage limits. Check their plans and permissions page before you rely on it for a deadline.
  • Claude Code. Installed and working in the repo you'll build in. Anthropic's Claude Code docs cover installation and MCP configuration.
  • A Next.js project. Ideally with your fonts, colors and spacing already set up as tokens, and a few base components such as buttons and containers. The Next.js docs cover project setup with the App Router.
  • A prepared Figma file. Auto layout on every section, colors and type defined as variables or styles, named layers and real copy. Our guide to preparing Figma files for development has the full checklist.

How do you connect the Figma MCP server to Claude Code?

Connect them with Figma's remote MCP server, which Figma's docs recommend over the desktop server for most users. Figma documents two routes for Claude Code: installing its plugin, or adding the server by hand.

  1. Install the plugin

    Figma's docs give the command claude plugin install figma@claude-plugins-official. Then open /plugin, select figma under the Installed tab and allow access in the browser.

  2. Or add the server manually

    Run claude mcp add --transport http figma https://mcp.figma.com/mcp, adding --scope user if you want it in every project. Figma notes the manual route doesn't install its skills.

  3. Authenticate

    In a new Claude Code session, open /mcp, choose figma and authenticate. A browser page opens; allow access and return to the terminal.

  4. Confirm the connection

    Open /mcp again and check that figma shows as connected before you prompt.

The desktop server runs through the Figma desktop app and works from your current selection instead of a link. Figma's docs still recommend the remote server, because the desktop server supports fewer features, including no writing to the canvas. If your team uses it, follow Figma's desktop server instructions, because the setup differs.

How do you build a Figma MCP landing page step by step?

Build a Figma MCP landing page one section at a time: link the agent to a single frame, ask it to build that section with your existing components and tokens, review it, then move to the next. Small, linked prompts produce code you can actually review.

  1. Set the rules first. Ask Claude Code to read your repo's components and tokens, and write a short project rules file. Figma's server also offers a create_design_system_rules prompt for this.
  2. Copy a frame link. In Figma, right-click the hero frame and copy a link to the selection.
  3. Prompt with the link. Ask Claude Code to build the hero as a component in your app, using existing components and tokens, with no hard-coded colors or font sizes.
  4. Let it gather context. The agent calls tools such as get_design_context for code and structure, get_variable_defs for variables and styles, and get_screenshot to compare visually.
  5. Pull assets. Ask it to export images and icons from the frame into your public folder, and to use the Next.js Image component.
  6. Review and commit. Run the page locally, compare with the frame, fix what's off, and commit before the next section.
  7. Assemble the page. Once each section works alone, compose them into the route and add metadata.

Figma's server returns a code representation of the frame, which the agent adapts to your stack. If your repo uses Tailwind, CSS Modules or a component library, say so in the rules file, or you'll get a different styling approach than the rest of your code.

Where does a human still need to fix the code?

A human still needs to fix spacing, responsive behavior, copy and accessibility, because the Figma file either doesn't contain that information or contains it ambiguously. The agent builds what it can see, and these four live partly outside the frame.

Area

What the agent tends to do

What the developer fixes

Spacing

Copies exact pixel values, sometimes off-scale

Snaps values to the spacing tokens and section rhythm

Responsiveness

Matches the frame's single width

Defines breakpoints, stacking order and fluid type

Copy

Builds placeholder or draft text exactly

Swaps in final copy and checks it fits at every width

Accessibility

Uses divs where buttons or headings belong

Fixes semantics, heading order, alt text and focus states

Motion

Skips it or adds generic transitions

Builds the interactions the design intends

SEO

Leaves metadata out

Adds titles, descriptions, Open Graph and schema

Spacing errors usually trace back to the file: frames without auto layout come through as absolute positions, which break as soon as text changes length. Copy is the most overlooked. If the hero in Figma says something generic, the landing page will too, and no agent will rewrite it into a stronger offer. Our AI landing page hero examples show what a clear one looks like.

For example, suppose a five-section AI product landing page

Hypothetical example: a team has a Figma file with a hero, logo strip, feature grid, pricing and FAQ, each with desktop and mobile frames. Claude Code builds each section from its frame link, reusing the team's button and container components.

The hero and FAQ come out close to the design. The feature grid needs its gaps snapped to the spacing scale, the logo strip needs a wrapping rule for narrow screens, and pricing needs real button elements and focus styles. The developer also rewrites the hero headline, which was still placeholder text in Figma. The agent saved the typing; the review decided the quality.

Is Claude Code with Figma MCP good enough for production?

Claude Code with Figma MCP is good enough for production when a developer reviews every section, and not before. It removes most of the typing in turning a frame into components, but it doesn't make decisions the design file leaves open.

Pros

  • Builds inside your repo with your components and tokens
  • Reads structure and variables, not just a screenshot
  • Fast for well-prepared files and repeated sections
  • Output is plain code you own and can review

Cons

  • Quality drops sharply with messy Figma files
  • Responsive rules and motion still need a developer
  • Copy is built as-is, including placeholders
  • Plans, seats and usage limits apply on Figma's side

It fits teams that already have a Next.js codebase and a clean Figma library. It's a weaker fit for a founder with no codebase and one marketing page, where a visual builder may be faster. Our guide to Figma to Next.js covers the full production workflow, and our Next.js development and landing page design services cover the build if you'd rather hand it off.

Frequently asked questions

Does the Figma MCP server need the Figma desktop app?
The remote server doesn't. It connects to Figma's hosted endpoint and works from frame links, and Figma's docs recommend it for most users. The desktop server does run through the desktop app and reads your current selection instead. Check Figma's MCP server docs for which plans and seats each option needs, since those requirements differ.
Can Claude Code write designs back into Figma?
Figma's remote server documents tools that create and edit content in Figma files, which need the remote server. Figma's docs say writing requires edit access to the file and a supported plan, and describe the feature as a beta that will eventually become a usage-based paid feature. For a landing page build, you mostly need the read side: design context, variables, screenshots and assets.
Does Code Connect improve the output?
Yes, when you have it. Code Connect maps Figma components to the real components in your codebase, so the agent uses your button instead of rebuilding one from scratch. It takes setup time, so it pays off most for teams with a shared component library and frequent builds, less for a single marketing page.
Can I use the Figma MCP server with Framer or Webflow?
The MCP server is built for coding agents working in a codebase, so it fits Next.js, React and similar stacks. For Framer or Webflow, the usual routes are Figma import plugins or a manual rebuild inside the builder. If a visual builder is your destination, compare those workflows before setting up an agent at all.
Is it safe to give Claude Code access to my Figma files?
Access runs through Figma's own sign-in, and the connection uses your account's permissions, so the agent can reach files you can reach. Review what you allow during authentication, use it in repos you trust and avoid pasting links to files with sensitive client material. Your company's security policy should decide whether it's allowed on work files.

· CEO & Design Director

Copywriter, designer and developer, and founder of Designify Studio. Over five years, 60+ projects across 14+ industries, for startups that have raised $300M+.

Want this done for you? Landing page, $6,000.

One conversion-focused page, designed by us, developed in Next.js and animated. $6,000, one-time, fixed price. Book a free 30-minute call to see if it fits.

Schedule Call