Step 1. Create a Project Folder.

Step 2. Get Your Figma API Key.

Step 3. Configure MCP Server.

Open mcp.json and paste the following configuration.

{
  "servers": {
    "figma-developer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "figma-developer-mcp",
        "--stdio"
      ],
      "env": {
        "FIGMA_API_KEY": "YOUR-FIGMA-API-KEY"
      }
    }
  }
}

Step 4. Start MCP Server Locally.

Step 5. Get the Figma Project URL.

Step 6. Use GitHub Copilot in Agent Mode.

Step 7. Generate a Web Page from Figma Design.

Step 8. Preview the Web Page.

Additional Tips

If the MCP server doesn’t start, try running.

npx figma-developer-mcp --figma-api-key=YOUR-KEY --stdio

This setup allows GitHub Copilot to fetch design elements from Figma and generate a structured web page automatically.

Note. Other Coding Assistants such as Cline, CursorAI, Windsurf, and Qodo use the same configuration.