Figma-Context
MCP server to provide Figma layout information to AI coding agents like Cursor
claude mcp add --transport stdio glips-figma-context-mcp npx -y figma-developer-mcp --figma-api-key=YOUR-KEY --stdio \ --env PORT="Optional: if the server requires a specific port" \ --env FIGMA_API_KEY="Your Figma API access token"
How to use
This MCP server provides a Framelink implementation that fetches and translates Figma design data into a concise, model-friendly context for your coding agent (e.g., Cursor). It exposes Figma metadata such as frames, components, and styling information in a streamlined format, making it easier for your AI agent to interpret layouts and styles when generating code. To use it, configure the server in your MCP client configuration with your Figma API token and optional port, then run the server. Connect your editor or agent (like Cursor) to the MCP server, paste a Figma file/frame/link, and ask the agent to implement the design. The server will return a compact, structured context that emphasizes layout, typography, colors, and component relationships rather than raw API data.
The workflow typically involves: adding a Figma file link to your chat or agent command, triggering an implementation request, and receiving code scaffolds or components that mirror the design. This server is tailored for Cursor but can be used with any MCP-compatible client that consumes the provided context. Ensure you provide your Figma API key so the MCP can fetch necessary metadata from Figma and then translate it for the model to use effectively.
How to install
Prerequisites:
- Node.js and npm installed on your system
- Internet access to fetch the MCP server
- A Figma personal access token (for API access)
Step-by-step installation:
-
Verify Node.js and npm are installed:
- node -v
- npm -v
-
Install or run the Framelink Figma MCP via npx (no global install required):
- npx -y figma-developer-mcp --figma-api-key=YOUR-KEY --stdio
-
If you want to use a local configuration file, create a config.json with the example below and adjust the API key and port as needed: { "mcpServers": { "Framelink MCP for Figma": { "command": "npx", "args": ["-y", "figma-developer-mcp", "--figma-api-key=YOUR-KEY", "--stdio"] } } }
-
Alternative: set environment variables instead of passing the API key on the command line:
- FIGMA_API_KEY=YOUR-KEY
- PORT=3000 Then run the MCP as per your client configuration.
Notes:
- Replace YOUR-KEY with your actual Figma API token.
- If you run behind a proxy or firewall, ensure the necessary ports are open for the MCP server to communicate.
Additional notes
Tips and common issues:
- Ensure you provide a valid FIGMA_API_KEY; without it, the server cannot fetch Figma data.
- If you encounter port conflicts, specify PORT in env or configuration to an unused value.
- The mcp_config example uses npx for on-demand execution; you can adapt to cmd (Windows) if needed, or run via your MCP client.
- For best results, restrict the Figma file links to the necessary frames or groups to reduce context size.
- If the server returns empty context, verify the Figma file permissions and token scopes.
- The npm package name to reference is figma-developer-mcp; you can also check for updates or documentation at the Framelink site.
Related MCP Servers
git
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
figma-console
Your design system as an API. Connect AI to Figma for extraction, creation, and debugging.
mcp-probe-kit
一个强大的 MCP (Model Context Protocol) 服务器,提20个实用工具,覆盖代码质量、开发效率、项目管理、生成skills文档全流程。
create
CLI to set up and deploy MCP Servers to Cloudflare Workers in seconds. Just write TypeScript functions to make Cursor MCP tools.
attio
Model Context Protocol server for Attio CRM - enables Claude Desktop and Cursor to interact with your Attio workspace
GameMaker
GameMaker MCP server for Cursor - Build GM projects with AI