Skip to content
MCP server

Figma Context MCP

MCP server that feeds compact, CSS-oriented Figma design data to AI coding tools

Runs locallyActively maintainedStatus and history

The repository was last updated 21 days ago and is published under MIT.

Install
Pricing
Open source
Platforms
CLI, API, vscode
Runs
Locally
GitHub stars
7
Last commit
21 days ago
Language
TypeScript

Similar MCP servers

About Figma Context MCP

Figma Context MCP is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.

The README says this server turns Figma files into a condensed JSON or YAML structure meant for language models that generate interface code. It drops Figma-internal metadata such as bounding boxes and constraints, keeps layout, typography, colour and effect values, and resolves variables into concrete values where the account allows it.

An AI client connected over stdio calls one of three tools: get_figma_design for the node tree with exported SVG assets and a 1x PNG render, get_image_fills for image fill URLs, and render_node_images for PNG renders of nodes. Component sets are written to separate files so large libraries can be read in parts. Responses are cached for five minutes for identical inputs.

It is aimed at developers and designers who use Cursor or similar agents to turn Figma frames into code, and who need a Figma personal access token with read scopes to run it.

Install

Run in a terminal

claude mcp add figma-context-mcp --env FIGMA_API_KEY='<FIGMA_API_KEY>' -- npx -y @tmegit/figma-developer-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "figma-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmegit/figma-developer-mcp"
      ],
      "env": {
        "FIGMA_API_KEY": "<FIGMA_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "figma-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmegit/figma-developer-mcp"
      ],
      "env": {
        "FIGMA_API_KEY": "<FIGMA_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "figma-context-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tmegit/figma-developer-mcp"
      ],
      "env": {
        "FIGMA_API_KEY": "<FIGMA_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "figma-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmegit/figma-developer-mcp"
      ],
      "env": {
        "FIGMA_API_KEY": "<FIGMA_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "figma-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tmegit/figma-developer-mcp"
      ],
      "env": {
        "FIGMA_API_KEY": "<FIGMA_API_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • FIGMA_API_KEYYour Figma Personal Access Token, learn more here: https://www.figma.com/developers/api#access-tokensRequired

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

get_figma_design
Fetches CSS-aligned, LLM-optimized design data and exports SVG assets and a PNG render.
get_image_fills
Retrieves image fill URLs from a Figma file.
render_node_images
Renders Figma nodes as PNG images.

What it does

Compact design output
Returns layout, style and text fields in a reduced format, which the README says cuts file size by about 99.5% on its test files.
Variable resolution
Resolves Figma variables to values when the account has the Enterprise variables scope, and can be turned off otherwise.
SVG and PNG export
Exports vector nodes as SVG files and renders the requested node as a PNG for visual comparison.
Component set handling
Writes component sets to their own files and can include other variants of library components.
Configurable transports
Runs over stdio by default, or as an HTTP server with Streamable HTTP and SSE endpoints.

Good for

  • Generating front-end code from a Figma frame inside an AI coding assistant
  • Exporting vector assets from a design file into a project's assets folder
  • Comparing a built page against its Figma reference render
  • Mapping Figma design tokens to CSS variables for a component library

Pricing

Open source

Free and MIT licensed; requires a Figma account and access token.

More servers for the same service

Figma Context MCP FAQ

What credentials does it need?

A Figma personal access token set as FIGMA_API_KEY, with file_content:read, library_content:read and library_assets:read scopes. The file_variables:read and file_comments:read scopes are optional.

Do I need an Enterprise plan?

Variable resolution requires an Enterprise plan. Setting resolveVariables to false avoids that requirement.

What Node.js version is required?

The README says Node.js 18 or later.

Is it free to use?

The repository is MIT licensed and runs locally; the README does not describe a paid hosted plan.

Is Figma Context MCP free?

Yes. Figma Context MCP is open source, so you can use and self-host it for free.

How do I add Figma Context MCP to Claude Code?

Run this command in your terminal: claude mcp add figma-context-mcp --env FIGMA_API_KEY='<FIGMA_API_KEY>' -- npx -y @tmegit/figma-developer-mcp

What are the best alternatives to Figma Context MCP?

The closest alternatives to Figma Context MCP are Figma To Code MCP, cursor-talk-to-figma-mcp, Figma CodeKit MCP, FigmaMCP and ready→made MCP.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers