Figma & Augment Code

v1.0.0Developer Toolsstable

Example integration of a Figma MCP server with Augment Code, using Node.js and figma-js.

mcp-figma-augmentcode-integrationmcpai-integration
Share:
9
Stars
0
Downloads
0
Weekly
0/5

What is Figma & Augment Code?

Figma & Augment Code is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to example integration of a figma mcp server with augment code, using node.js and figma-js.

Example integration of a Figma MCP server with Augment Code, using Node.js and figma-js.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Example integration of a Figma MCP server with Augment Code,

Use Cases

Integrate Figma designs with Augment Code through MCP.
Automate design workflows with Node.js and Figma API.
shedytee

Maintainer

LicenseNOASSERTION
Languagejavascript
Versionv1.0.0
UpdatedApr 14, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-figma-augmentcode-integration

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Figma & Augment Code

The Figma and Augment Code MCP integration bridges Figma's design API with AI coding assistants through the Model Context Protocol. Built with Node.js and the figma-js library, it exposes Figma file contents, component listings, and design data as MCP tools so that agents like Claude can read design specifications directly and translate them into code. Developers configure a Figma API token and file ID once, then query components, extract style properties, and hand off design context to their AI without leaving their coding environment.

Prerequisites

  • Node.js 18 or later with npm
  • A Figma account with a personal access token (Settings > Personal Access Tokens)
  • The Figma file ID you want to expose (found in the file's URL after /file/)
  • Augment Code or another MCP-compatible client installed
1

Clone the repository

Clone the integration repository to your local machine. There is no published npm package, so a local clone is required.

git clone https://github.com/shedytee/mcp-figma-augmentcode-integration.git
cd mcp-figma-augmentcode-integration
2

Install dependencies

Install the MCP SDK, figma-js client, zod for schema validation, and dotenv for environment variable loading.

npm install @modelcontextprotocol/sdk figma-js zod dotenv
3

Configure environment variables

Copy the provided example file and fill in your Figma credentials. The FIGMA_TOKEN and FIGMA_FILE_ID are both mandatory.

cp .env.example .env
# Edit .env:
# FIGMA_TOKEN=your_figma_personal_access_token
# FIGMA_FILE_ID=your_figma_file_id
# MCP_PORT=3000
4

Ensure package.json uses ES modules

The server uses ES module syntax. Make sure your package.json includes the module type declaration and a start script.

{
  "type": "module",
  "scripts": {
    "start:mcp": "node figma-mcp-server.js"
  }
}
5

Start the MCP server

Launch the server. It will connect to the Figma API using your token and expose Figma data as MCP tools on the configured port.

npm run start:mcp
6

Connect via Augment Code

In Augment Code, open your workspace settings and navigate to the MCP section. Add the server URL (e.g., http://localhost:3000) to register the Figma tools.

Figma & Augment Code Examples

Client configuration

Claude Desktop configuration to run the Figma MCP server locally with credentials passed as environment variables.

{
  "mcpServers": {
    "figma-augmentcode": {
      "command": "node",
      "args": ["figma-mcp-server.js"],
      "cwd": "/path/to/mcp-figma-augmentcode-integration",
      "env": {
        "FIGMA_TOKEN": "figd_your_personal_access_token",
        "FIGMA_FILE_ID": "your_figma_file_id",
        "MCP_PORT": "3000"
      }
    }
  }
}

Prompts to try

After connecting the server, use these prompts to pull design data into your coding workflow.

- "Fetch the latest Figma file and list all top-level components."
- "Find the ButtonPrimary component and give me its properties and color values."
- "Generate a React component based on the Hero section in my Figma file."

Troubleshooting Figma & Augment Code

Server fails with 'Cannot use import statement' error

Ensure 'type': 'module' is set in package.json. Without it, Node.js treats .js files as CommonJS and ES module syntax will fail.

Figma API returns 403 Forbidden

Verify your FIGMA_TOKEN is a valid personal access token with read access to the file. Tokens can be generated in Figma under Account Settings > Personal Access Tokens.

Path with spaces causes the node command to fail

Wrap the script path in quotes: node "/path with spaces/figma-mcp-server.js". Alternatively, move the project to a path without spaces.

Frequently Asked Questions about Figma & Augment Code

What is Figma & Augment Code?

Figma & Augment Code is a Model Context Protocol (MCP) server that example integration of a figma mcp server with augment code, using node.js and figma-js. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Figma & Augment Code?

Follow the installation instructions on the Figma & Augment Code GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Figma & Augment Code?

Figma & Augment Code works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Figma & Augment Code free to use?

Yes, Figma & Augment Code is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-figma-augmentcode-integration": { "command": "npx", "args": ["-y", "mcp-figma-augmentcode-integration"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Figma & Augment Code?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides