Build a homepage from Figma in Cursor with MCP
A developer linked Figma to Cursor through MCP and used it to turn a design slice into homepage code.
- What they did
- They set up a local Git repo, pushed it to GitHub, and opened the project in Cursor while using the free Pro trial. With Figma’s MCP connected, they copied the URL for the section they wanted from Figma Dev Mode and pasted it into a short Cursor request for HTML and CSS. Cursor then generated the code and marked it up so they could inspect it, keep it, or ask for another version.
- How it went
- One prompt gave them a thumbnail area with the right colours, layout, and button hover effects. It worked much better than Lovable’s attempt, but it still missed the font and font weights, probably because Rotis is not available as a free web font. They still needed more refinement after that.
- Tips
- This worked well for a focused section rather than an entire page at once. If you need strict visual accuracy, expect to clean up font choices and other details by hand.
Try it yourself with Cursor
I’m building [project name] from a Figma file. Use the Figma MCP connection to inspect the design section at [Figma URL] and generate the matching homepage code in HTML and CSS. Match spacing, layout, colours, and hover states as closely as you can, then show me the result and any code changes for review before I approve keeping them or trying another version. Stop and ask for my approval before you make any irreversible change, submit anything, or overwrite files I haven’t reviewed.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
1 more report of this
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Turn a short ticket into a landing page
Cursor’s background agent made a pricing page from a brief spec, opened a PR, and let the developer review it before shipping.
Copy an existing module’s structure into a new one
A commenter used Cursor to scaffold a second module, but it missed the pattern because it did not load the source module’s files.
Keep Cursor confined to a disposable dev environment
They used Cursor agent mode inside a throwaway container setup with extra approval checks so it could do real work without risking the host machine.
Split a Replit app into client and server
One builder moved a Replit prototype into Cursor, where an agent rewrote it as a standard frontend-backend app for deployment.
Use Cursor to inspect pod logs and fix compose files
A DevOps engineer used Cursor to read production pod logs through Kubernetes MCP and to repair a broken Docker Compose setup.
Use an agent to find missing database indexes
A developer had Cursor inspect a slow NestJS page and suggest database indexes to fix a production-only slowdown.