ForgeKit Figma MCP
Generates Chakra UI theme configuration from Figma tokens, supporting both Chakra v3 (createSystem with tokens.ts, semanticTokens.ts and an exported system object) and Chakra v2 (classic extendTheme objects).
Pulls design tokens (Figma variables) from a specified Figma file using a Figma Personal Access Token, resolving aliases and mapping Figma modes (light/dark) to semantic tokens, then syncing them into the project's theme files, CSS variables, and documentation.
Generates Shadcn/Tailwind theming artifacts from Figma tokens, writing :root and .dark CSS variables into globals.css along with a tailwind.theme.json snippet importable into tailwind.config.ts.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ForgeKit Figma MCP
The bridge between Figma and your Codebase.
ForgeKit is a powerful CLI tool and MCP Server that syncs Figma variables (design tokens) directly into your project. It supports multiple frameworks, handles complex alias resolution, and manages light/dark modes automatically.
π Why ForgeKit?
Universal Support: Works with Chakra UI (v2 & v3), Shadcn/Tailwind, and generates Documentation.
Smart Onboarding: Just paste your Figma URL. ForgeKit detects your framework and sets everything up.
Starter Kits: Don't have a design system? ForgeKit provides starter files for Chakra and Shadcn.
Semantic Tokens: Automatically maps Figma Modes (Light/Dark) to CSS variables or theme objects.
Secure: Automatically manages your
FIGMA_ACCESS_TOKENin.envand adds it to.gitignore.
Related MCP server: figma-console-mcp-autodocs
π¦ Installation
npm install forgekit-figma-mcpβ‘ Quick Start
The easiest way to get started is with the interactive init command.
1. Initialize
npx forgekit initWhat happens next?
Paste your Figma URL: You don't need to find the File ID. Just paste the whole link.
Tip: If you provide a URL, ForgeKit will analyze it and auto-select the correct framework for you.
Enter your Token: If you don't have one, we'll guide you. It's saved securely to
.env.Choose Outputs: Select one or more:
Chakra UI v3(NewcreateSystemformat)Chakra UI v2(ClassicextendTheme)Shadcn/Tailwind(Generatesglobals.cssvars & config)Documentation(Markdown & JSON)
2. Sync
Once configured, run this command whenever your design team updates Figma:
npx forgekit syncYour theme files, CSS variables, and documentation are now up to date!
π¨ Supported Frameworks
Shadcn UI / Tailwind CSS
ForgeKit generates the CSS variables required for Shadcn's theming system.
Output:
globals.css: Contains:rootand.darkvariables (e.g.,--primary,--muted-foreground).tailwind.theme.json: A config snippet you can import intotailwind.config.ts.
Configuration:
{
"format": "shadcn",
"dir": "./src/theme",
"cssPath": "./src/app/globals.css"
}Chakra UI v3
Generates the modern createSystem configuration.
Output:
tokens.ts: Primitive tokens (colors, spacing).semanticTokens.ts: Mode-aware tokens.index.ts: Exports thesystemobject.
Chakra UI v2
Generates the classic extendTheme object.
Output:
colors.ts,space.ts, etc.index.ts: Exports thethemeobject.
Documentation
Perfect for Storybook or internal documentation sites.
Output:
tokens.md: A visual Markdown representation of your colors, spacing, and radii.tokens.json: The raw token data for building custom views.
βοΈ Configuration (forgekit.json)
You can handle complex setups (like sourcing different tokens from different files) using the configuration file.
{
// Global source file (optional if overridden below)
"figmaFileId": "12345abcdef...",
"outputs": [
{
"format": "chakra-v3",
"dir": "./src/theme"
},
{
"format": "shadcn",
"dir": "./src/theme",
"cssPath": "./src/app/globals.css",
// Optional: Source Shadcn tokens from a specific file
"figmaFileId": "98765zyxw..."
},
{
"format": "docs",
"dir": "./docs/design-system"
}
]
}π€ MCP Server Usage
ForgeKit is also a Model Context Protocol (MCP) server. This allows AI assistants (like Cursor or Claude Desktop) to directly interact with your design system.
Add this to your MCP client configuration:
{
"mcpServers": {
"forgekit": {
"command": "npx",
"args": ["forgekit-figma-mcp"],
"env": {
"FIGMA_ACCESS_TOKEN": "your_figma_access_token"
}
}
}
}What can the AI do?
"Sync my design tokens."
"Check if the code matches the Figma design."
"Generate a new component using the latest tokens."
π CLI Reference
Command | Description |
| Interactive setup. Optionally pass a Figma URL to auto-detect settings. |
| Fetch tokens and generate files based on |
Sync Arguments (Overrides config):
Flag | Description |
| Figma Personal Access Token |
| Figma File ID or URL |
| Output directory (Legacy single-mode) |
|
|
π€ Contributing
Clone the repo
Install dependencies:
npm installBuild:
npm run buildRun locally:
node dist/cli.js init
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Build and manage your design system with AI: tokens, themes, components, icons, Figma and code.
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
Design System Manager for shadcn/ui: tokens, fonts, radius, components, icons, blocks, Figma sync.
Access and maintain design system docs, tokens, components, skills, and contexts across any project.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to extract design systems, analyze components, and maintain design-code consistency from Figma files, providing intelligent component analysis and accessibility compliance.103 npm27MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to read, create, and modify Figma designs, synchronize design tokens bidirectionally, and auto-document component-variant sets via Obra Autodocs integration.7 npmMIT
- AlicenseNot gradedqualityBmaintenanceBridges AI assistants with Figma for design system extraction, bidirectional token sync, visual debugging, and design creation.47 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables seamless integration with Figma API for extracting design tokens, generating production-ready code in multiple frameworks, capturing screenshots, and managing design assets directly from Figma.5MIT