What does the `generate_pseudo_code_from_figma_frame` tool return?
It returns formatted text containing CSS styles, JSX component structure, and semantic HTML elements. The output is clean and readable.
@toddle-edu
基本信息
Use this Figma MCP Server to convert Figma Design to pseudo-code like structure - simple yet efficient for LLMs to understand design context. Connect to Figma API and get pseudo-code for the given Design. For visual context, can also fetch images.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"figma MCP Server": {
"command": "npx",
"args": [
"figma-codegen-mcp",
"--figma_api_key=${input:FIGMA_API_KEY}"
]
}
},
"inputs": [
{
"id": "FIGMA_API_KEY",
"type": "promptString",
"description": "Paste your Figma Personal access Token here"
}
]
}Fetches a PNG image of a Figma node or frame using the file key and node ID. Returns the image as base64.
It will generates JSX and CSS pseudo-code for a Figma frame or node, given its file key and node ID. Useful for converting Figma designs to code. Can also be used to generate code for specific components or frames in Figma.
Figma To Code Mcp Server connects to the Figma API and converts Figma designs into a pseudo-code-like structure (JSX and CSS) that is simple and efficient for LLMs to understand design context. It is aimed at developers and AI workflows that need to translate visual designs into code representations automatically.
Share a Figma Design URL with an MCP client; the server automatically extracts the file key and node ID, then calls the appropriate tools. Two tools are provided: fetch_figma_node_image (returns a base64 PNG of a node) and generate_pseudo_code_from_figma_frame (returns formatted JSX, CSS, and semantic HTML). No additional configuration is required beyond the MCP client setup.
It returns formatted text containing CSS styles, JSX component structure, and semantic HTML elements. The output is clean and readable.
It parses the Figma URL automatically: the file key is the part after `/design/` or `/file/`, and the node ID comes from the `node-id` URL parameter.
The README does not mention authentication details, but Figma API access typically requires a personal access token. The server likely expects one to be configured in the MCP client environment.
The `fetch_figma_node_image` tool returns a PNG image as base64-encoded data along with its MIME type.
Accuracy and quality of the generated pseudo-code depend on the Figma component library used in the design. The server does not produce production-ready code; it is meant as a helpful representation for LLMs.

Creates and manages quizzes, polls, surveys, personality tests, forms, predictors, minigames and leaderboards on Riddle.com – with branching logic, custom design, live stats and embed code.

Official JSON2Video MCP server. Video API for automated video production at scale: render videos from templates with AI voiceovers, subtitles and AI images. Remote server with OAuth (https://mcp.json2video.com/mcp) or lo

Remote MCP server for AI image, video, voice and music generation. Your agent creates and edits images with Nano Banana 2, GPT-Image 2 or FLUX 1.1 Pro, generates video with Veo 3.1 Fast, Seedance 2.5, Kling, MiniMax or W

InstantClips turns an e-commerce product into short-form vertical video for TikTok, Instagram Reels and Stories. Import a product from its page URL or photos, generate on-brand video ads, and manage brands/products throu

Break down any TikTok or Instagram Reels ad and rewrite it for your product, right inside Claude, Cursor, or ChatGPT. Hooks, UGC scripts, and CPM. Free, no API key.
评论