glips_figma_context_mcp

glips_figma_context_mcp

by GLips
An MCP server that provides Figma layout information to AI coding tools like Cursor for enhanced design implementation.

Figma Layout Integration for AI Coding Agents

Overview

The Figma-Context-MCP server provides AI coding agents like Cursor, Windsurf, and Cline with access to Figma layout information. This integration allows AI tools to fetch and utilize Figma design data, significantly improving the accuracy of one-shot designs compared to traditional methods like pasting screenshots.

Demo Video

Watch a demo of building a UI in Cursor with Figma design data

Demo Video Thumbnail

How It Works

  1. Open Cursor's composer in agent mode.
  2. Paste a link to a Figma file, frame, or group.
  3. Ask Cursor to implement a design or perform another task.
  4. Cursor fetches relevant metadata from Figma and uses it to write your code.

The server simplifies and translates Figma API responses to provide only the most relevant layout and styling information, enhancing AI accuracy.

Installation

Running the Server Quickly with NPM

npx figma-developer-mcp --figma-api-key=<your-figma-api-key>

JSON Config for Tools That Use Configuration Files

{
  "mcpServers": {
    "Framelink Figma MCP": {
      "command": "npx",
      "args": ["-y", "figma-developer-mcp", "--figma-api-key=<your-figma-api-key>", "--stdio"]
    }
  }
}

Running the Server from Local Source

  1. Clone the repository.
  2. Install dependencies with pnpm install.
  3. Copy .env.example to .env and fill in your Figma API access token.
  4. Run the server with pnpm run dev.

Configuration

Environment Variables

  • FIGMA_API_KEY: Your Figma API access token (required).
  • PORT: The port to run the server on (default: 3333).

Command-line Arguments

  • --version: Show version number.
  • --figma-api-key: Your Figma API access token.
  • --port: The port to run the server on.
  • --stdio: Run the server in command mode.
  • --help: Show help menu.

Connecting to Cursor

Start the Server

npx figma-developer-mcp --figma-api-key=<your-figma-api-key>

Connect Cursor to the MCP Server

  1. Start the server.
  2. Connect Cursor to the MCP server in Cursor's settings under the features tab.

Connecting to MCP Server in Cursor

Start Using Composer with Your Figma Designs

Once connected, drop a link to a Figma file in the composer and ask Cursor to perform tasks.

Copy Link to Figma Selection

Inspect Responses

To inspect responses, run the inspect command:

pnpm inspect

Available Tools

get_figma_data

Fetches information about a Figma file or a specific node within a file.

download_figma_images (Work in Progress)

Downloads SVG and PNG images used in a Figma file.

About

MCP server to provide Figma layout information to AI coding agents like Cursor.

Topics

typescript | ai | mcp | cursor | figma

License

MIT License

Resources

Readme

Features & Capabilities

Categories
mcp_server model_context_protocol typescript javascript ai cursor figma api_integration design_to_code

Implementation Details

Stats

0 Views
0 Likes
3 GitHub Stars

Repository Info

GLips Organization

Similar Servers

continuedev_continue by continuedev
0
0
0