A Go-based HTTP proxy server that enhances Model Context Protocol (MCP) tool calls by automatically adding Figma file parameters and opening Figma designs when processing tool calls.
A Go-based HTTP proxy server that enhances Model Context Protocol (MCP) tool calls by automatically adding Figma file parameters and opening Figma designs when processing tool calls.
👉 Bitovi can help you integrate this into your own SDLC workflow: AI for Software Teams
What it does
This proxy acts as an intermediary between MCP clients and MCP servers, providing the following functionality:
1. Tool Schema Enhancement
When a client requests the list of available tools (tools/list), the proxy:
Identifies tools that have a nodeId parameter in their input schema
Automatically adds two additional parameters to these tools:
fileKey: The Figma file identifier (extracted from URLs like https://figma.com/design/1234/5678?node-id=1-2)
fileName: The Figma file name (extracted from the same URL format)
Updates tool descriptions to explain how to extract these parameters from Figma URLs
2. Automatic Figma Design Opening with Smart Retry and Verification
When processing tool calls that include both fileKey and fileName parameters, the proxy uses an optimized approach with verification:
First attempt: Forwards the request immediately without opening any files (instant response if file already open)
Error detection: Monitors response for errors indicating the file isn't open ("No node could be found", "AppStateTsApi is null", etc.)
Automatic retry with verification: If file-not-open error detected:
Opens the design using the figma:// URL scheme
Waits initial delay (configurable via FIGMA_OPEN_INITIAL_DELAY_SECONDS, default 10 seconds)
Polls the Figma MCP server every 5 seconds to verify file is actually loaded (up to 60 seconds)
Retries the original request once verified
Supports macOS, Windows, and Linux operating systems
Performance: Zero delay for files already open, adaptive waiting when switching files based on actual load time
Thread-safe: Uses mutex to prevent concurrent file opening operations
Configuration
The proxy can be configured using environment variables:
TARGET_URL: The MCP server to proxy requests to (default: http://localhost:3845)
PORT: The port to run the proxy server on (default: 3846)
FIGMA_OPEN_INITIAL_DELAY_SECONDS: Initial time to wait after opening a Figma file before starting verification (default: 10 seconds). Increase this if files take longer to start loading on slow VMs.
Problem: Some Figma MCP tools (particularly get_design_context) stop working after disconnecting from the RDP session, even though Figma remains running.
Cause: When you close RDP normally, Windows marks the session as "Disconnected", which changes how the desktop/graphics context is maintained. Figma continues running, but tools requiring an active graphics session fail.
TARGET_URL=http://localhost:3000 PORT=8080 go run main.go
F
Figma MCP Proxy
bitovi·4 ดาว·
A Go-based HTTP proxy server that enhances Model Context Protocol (MCP) tool calls by automatically adding Figma file parameters and opening Figma designs when processing tool calls.
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
Figma MCP Proxy ต้องใช้ API key ไหม?
ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
Figma MCP Proxy ใช้ทรานสปอร์ตแบบใด?
Figma MCP Proxy ทำงานแบบโลคัลผ่าน stdio
Figma MCP Proxy ถูกตรวจสอบล่าสุดเมื่อใด?
ตรวจสอบล่าสุดเมื่อ 2026-10-27 A Go-based HTTP proxy server that enhances Model Context Protocol (MCP) tool calls by automatically adding Figma file parameters and opening Figma designs when processing tool calls.