Figma Context MCP AIR
Give your AI coding agent access to Figma design data.
Implement designs in any framework with pixel-perfect accuracy — in one shot.
Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
npx -y [email protected]Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
FIGMA_API_KEY=<secret> claude mcp add io.github.compassalessandrolorenz-figma-context-mcp-air -- npx -y figma-context-mcp-air@2.0.2รันในเทอร์มินัล
{ "mcpServers": { "io.github.compassalessandrolorenz-figma-context-mcp-air": { "command": "npx", "args": [ "-y", "[email protected]" ], "env": { "FIGMA_API_KEY": "<secret>" } } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดfigma-context-mcp-air is a Model Context Protocol (MCP) server that gives AI coding tools (Cursor, Claude, Windsurf, etc.) direct access to your Figma design data.
It exposes 9 tools covering the full design-to-code workflow:
Before returning data to the AI, the server simplifies and filters the raw Figma API response — keeping only the layout and styling information that matters for code generation. This reduces noise and dramatically improves AI accuracy.
You need a Figma Personal Access Token to use this server.
How to create a Figma API access token →
Add this to your MCP client configuration file (e.g. ~/.cursor/mcp.json, claude_desktop_config.json):
{
"mcpServers": {
"Figma MCP AIR": {
"command": "npx",
"args": ["-y", "figma-context-mcp-air", "--figma-api-key=YOUR-KEY", "--stdio"]
}
}
}
{
"mcpServers": {
"Figma MCP AIR": {
"command": "cmd",
"args": ["/c", "npx", "-y", "figma-context-mcp-air", "--figma-api-key=YOUR-KEY", "--stdio"]
}
}
}
You can also set FIGMA_API_KEY in the env field instead of passing it as a flag:
{
"mcpServers": {
"Figma MCP AIR": {
"command": "npx",
"args": ["-y", "figma-context-mcp-air", "--stdio"],
"env": {
"FIGMA_API_KEY": "YOUR-KEY"
}
}
}
}
get_design_context (or get_figma_data) to fetch structured design data, then writes your code.For more advanced workflows, the AI can:
get_screenshot to visually inspect a node before implementing itget_variable_defs to extract your design tokens and map them to CSS variablesget_metadata for a quick layer overview before fetching full datacreate_design_system_rules to generate project-specific coding guidelinesget_figma_data / get_design_contextFetches and simplifies Figma design data for a file or specific node. Returns layout (flexbox/grid), typography, colors, borders, effects, and component metadata in YAML or JSON.
Parameters:
fileKey (required) — The key from your Figma URL: figma.com/design/<fileKey>/...nodeId (optional) — The node ID from the URL: ?node-id=<nodeId>. Use format 1234:5678.depth (optional) — How many levels deep to traverse. Only use if explicitly needed.download_figma_imagesDownloads PNG or SVG renders of Figma nodes to your local filesystem.
Parameters:
fileKey (required)nodes (required) — Array of { nodeId, fileName } objectslocalPath (required) — Directory to save imagespngScale (optional) — Scale factor for PNG exports (default: 1)svgOptions (optional) — SVG export options (outline text, include IDs, simplify strokes)get_screenshotCaptures a Figma node as a 2x PNG and saves it to disk. Useful for visual validation.
Parameters:
fileKey (required)nodeId (required)localPath (optional) — Save directory (default: ./screenshots)fileName (optional) — Output filename without extensionget_metadataReturns a sparse XML representation of the node hierarchy (depth=2). Use this for quick layer discovery before fetching full design context.
Parameters:
fileKey (required)nodeId (required)get_variable_defsFetches all design tokens from a Figma file — variable collections (colors, spacing, typography) and published styles (effects, text styles, fill styles). Returns data with CSS custom property syntax.
Parameters:
fileKey (required)whoamiReturns the authenticated user's Figma account information (name, email, plan tier). Useful for verifying your API key is working.
Parameters: None
create_design_system_rulesGenerates a comprehensive markdown template for project-specific design system rules. Tailored to your language and framework combination. Save the output to CLAUDE.md or your project's AI instructions file.
Parameters:
clientLanguages (required) — e.g. "typescript,javascript"clientFrameworks (required) — "react", "vue", "svelte", "angular", or "unknown"get_figjamExtracts content from a FigJam board — sticky notes, connectors, shapes, sections — as XML with screenshot URLs.
Parameters:
fileKey (required)nodeId (optional) — Specific section or frame within the FigJam board# Install dependencies
pnpm install
# Build
pnpm build
# Development mode (HTTP, with watch)
pnpm dev
# Development mode (stdio)
pnpm dev:cli
# Run tests
pnpm test
# Type check
pnpm type-check
# Lint
pnpm lint
Contributions are welcome! Please read CONTRIBUTING.md before submitting a pull request.
For major features, open an issue first to discuss the approach.
MIT — see LICENSE
This project is a fork of GLips/Figma-Context-MCP (the Framelink MCP server), extended with additional tools to match the full official Figma MCP tool surface.
Figma MCP server for AI agents. 9 tools: design context, variables, screenshots, and FigJam.
{ "mcpServers": { "io.github.compassalessandrolorenz-figma-context-mcp-air": { "command": "npx", "args": [ "-y", "[email protected]" ], "env": { "FIGMA_API_KEY": "<secret>" } } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ผู้เผยแพร่ระบุตัวแปรสภาพแวดล้อมเหล่านี้: FIGMA_API_KEY
Figma Context MCP AIR ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-11-09 Figma MCP server for AI agents. 9 tools: design context, variables, screenshots, and FigJam.