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.

Sprite Fusion lets your AI assistant make the pixel art for your game. Describe a character, item, or tile and get sprites at the exact size you need, ready to drop into your project. Match your existing art, turn charac
Connect Claude, ChatGPT, and other AI assistants to your social media content, reviews, and UGC aggregated via EmbedSocial.

A library of conversion components for e-commerce, built on A/B tested mechanics and handed straight to your coding agent. 65 pieces drawn from mechanics that have been A/B tested in real stores: cart drawer with the ups

Create greetings and personalized PNG cards for 30 occasions in 15 languages, including Hindi, Greek and Hebrew. Free remote MCP with curated phrases, occasion-matched backgrounds and four styles, including motivational.

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
评论