loading…
Search for a command to run...
loading…
Converts Figma to Markdown. Strips out visual noise to drastically reduce LLM token consumption.
Converts Figma to Markdown. Strips out visual noise to drastically reduce LLM token consumption.
Current version: 3.0.2
figma-compaction-mcp is an MCP server for Figma-link workflows. It fetches upstream Figma design context internally, prunes it into compact plain-text context, and returns that reduced result to the calling agent instead of the full upstream payload.
This project is for teams that want agents to work from Figma node URLs without pushing raw upstream Figma MCP output into the caller model context whenever the bridge can safely handle the request.
The intended flow is simple:
get_figma_compact_context.The main reason to use this server is token reduction without losing implementation-critical facts.
Raw Figma MCP responses can be large enough to consume a meaningful part of the caller model context before implementation even begins. This bridge keeps that upstream payload inside the server whenever possible, compacts it first, and only returns the reduced result to the agent.
This server sits between your agent and the local Figma Desktop MCP server.
User prompt with Figma link
-> Agent calls get_figma_compact_context
-> figma-compaction-mcp connects to local Figma Desktop MCP
-> get_design_context / get_metadata
-> internal compaction
-> compact plain-text context returned to the agent
The public entrypoint is get_figma_compact_context.
figma_url: required full Figma node URLmode: optional compaction mode, one of minimal, balanced, debugtask: optional intent hint, one of implement, inspect, summarizeinclude_assets: optional, default trueinclude_text_specs: optional, default trueinclude_trace_ids: optional, default trueinclude_metadata: optional, default truemax_output_chars: optional explicit output budgetWhen the bridge succeeds, it returns compact plain-text context plus structured fields for stats, traceability, warnings, and diagnostics. When the bridge cannot safely fetch or compact the node, it returns a fallback handoff so the agent can continue with standard Figma MCP tools directly.
Example compact output:
src|figma|get_design_context|4:5100|FILE_KEY
sum|Example screen|frame|375x876|535,258
el|4:5107|field_card|w343;layout:column;r20;p:16,20,20,20;bg:#ffffff
tx|4:5106|Section title|t1
ty|t1|Inter|600|20|24|#333333
as|imgAsset|asset|4:5107|asset_slot|/assets/example-image.png
Example URL shape:
https://www.figma.com/design/FILE_KEY/FILE_NAME?node-id=NODE_ID&m=dev
To use the Figma-link bridge flow, you need:
Default upstream Figma MCP endpoint:
http://127.0.0.1:3845/mcp
Override with:
FIGMA_MCP_URL
Install globally:
npm install -g figma-compaction-mcp
Or run with npx:
npx figma-compaction-mcp
Register this server in your MCP client.
Example using npx:
{
"mcpServers": {
"figma-compaction": {
"command": "npx",
"args": ["-y", "figma-compaction-mcp"]
}
}
}
Example using a global install:
{
"mcpServers": {
"figma-compaction": {
"command": "figma-compaction-mcp",
"args": []
}
}
}
Your client may use JSON, TOML, or another config format, but the command registration model is the same.
figma-compaction-mcp in your MCP client.get_figma_compact_context first.In practice:
balanced mode is the default for normal implementation work.max_output_chars when you intentionally want a hard output budget.Выполни в терминале:
claude mcp add figma-to-markdown-mcp -- npx CSA PROJECT - FZCO © 2026 IFZA Business Park, DDP, Premises Number 31174 - 001
Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.