# Figma Context MCP

> Give your coding agent direct access to your Figma design data

- Category: Retrieval & Knowledge (RAG) / RAG Frameworks & Platforms
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/GLips/Figma-Context-MCP
- Website: https://www.framelink.ai/
- Canonical page: https://ai-tldr.dev/tools/figma-context-mcp/

## In short

Figma Context MCP, also known as Framelink MCP for Figma, is a Model Context Protocol (MCP) server that connects AI-powered coding tools to your Figma files. When a tool like Cursor can read the actual design data instead of a screenshot, it is far better at turning a design into working code in one pass. It sits in the RAG Frameworks & Platforms category of the Retrieval & Knowledge (RAG) tools and is open-source, written in TypeScript and licensed MIT.

## Overview

Figma Context MCP, also known as Framelink MCP for Figma, is a Model Context Protocol (MCP) server that connects AI-powered coding tools to your Figma files. When a tool like Cursor can read the actual design data instead of a screenshot, it is far better at turning a design into working code in one pass.

Instead of passing the full Figma API response to the model, the server first simplifies and translates it so only the most relevant layout and styling information is included. Sending less but more focused context helps the model stay accurate and keeps its responses on topic.

## What it does

- Exposes Figma file, frame, and group data to AI coding agents over the Model Context Protocol
- Simplifies and translates raw Figma API responses into compact layout and styling context
- Designed to work with Cursor and other MCP-compatible AI clients and code editors
- Reduces the amount of context sent to the model to improve accuracy and relevance
- Configured through a standard MCP server entry, run on demand with npx
- Uses a Figma personal access token, supplied as a CLI flag or the FIGMA_API_KEY environment variable

## Getting started

Most code editors and AI clients use a configuration file to manage MCP servers. You first need a Figma personal access token, then you add the figma-developer-mcp server to that config file.

1. Create a Figma access token

   You need a Figma API access token to use this server. Create a personal access token in your Figma account settings, following Figma's official instructions, and keep it ready to paste into your config.

2. Add the server on macOS or Linux

   Add the figma-developer-mcp server to your MCP configuration file, replacing YOUR-KEY with your Figma access token.

```json
{
  "mcpServers": {
    "Framelink MCP for Figma": {
      "command": "npx",
      "args": ["-y", "figma-developer-mcp", "--figma-api-key=YOUR-KEY", "--stdio"]
    }
  }
}
```

3. Add the server on Windows

   On Windows, wrap the same command with cmd /c. As an alternative to the CLI flag, you can set FIGMA_API_KEY and PORT in the env field instead.

```json
{
  "mcpServers": {
    "Framelink MCP for Figma": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "figma-developer-mcp", "--figma-api-key=YOUR-KEY", "--stdio"]
    }
  }
}
```

4. Use it from your editor

   Open your IDE's chat (for example agent mode in Cursor), paste a link to a Figma file, frame, or group, and ask the agent to do something with it, such as implement the design. The agent fetches the relevant Figma metadata and uses it to write your code.

## When to use it

- Implementing a Figma design as front-end code in one pass from inside Cursor or another AI coding tool
- Letting an AI agent read accurate layout and styling details from a frame instead of guessing from a screenshot
- Building a UI in any framework by pointing your coding agent at a specific Figma file, frame, or group
