DesignxCode MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GITHUB_TOKEN | No | GitHub PAT with `repo` scope for PR generation and code scanning. Optional. | |
| FIGMA_ACCESS_TOKEN | Yes | Figma personal access token with file read access. Required. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| extract_tokensA | Extract design tokens (variables) from a Figma file and convert to standard formats. Fetches all Figma Variables from the specified file and converts them to the requested format. Supports W3C Design Token Community Group format, Style Dictionary input format, or raw Figma API response. Args:
Returns: JSON with token data and summary statistics including counts by type and collection. Examples:
|
| sync_tokens_to_codeA | Generate platform-specific design token files from Figma variables. Extracts tokens from Figma, transforms them through Style Dictionary into platform-specific code (CSS custom properties, SCSS variables, Tailwind config, Swift UIColor, Kotlin Compose, or JSON). This tool does NOT commit files — it returns the generated file contents for review. Use generate_sync_pr to commit and create a PR. Args:
Returns: JSON with generated files (path + content) and a summary of what was generated per platform. Examples:
|
| audit_component_parityA | Compare Figma components against code components to find coverage gaps. Fetches components from Figma and compares against a Storybook manifest or component mapping from GitHub. Uses fuzzy name matching (normalizes casing, strips spaces/hyphens) to find matches. Args:
Returns: Coverage report with: matched components, missing in code, missing in Figma, coverage percentage, and Figma links. Examples:
|
| audit_system_healthA | Run a comprehensive health check on your design system, combining token drift analysis and component parity into a single sync score. This is an orchestrator tool that calls extract_tokens + audit_component_parity internally and merges the results into a unified health report. Args:
Returns: Health report with:
Examples:
|
| generate_sync_prA | Create a GitHub pull request to sync design token changes from Figma to code. Takes an array of file updates (typically from sync_tokens_to_code output) and creates a branch, commits the files, and opens a PR. Supports dry_run mode to preview without creating. Args:
Returns: For dry_run: PR preview with branch name, title, body, and files. For real: Created PR URL, number, branch, and commit SHA. Examples:
|
| extract_stylesA | Extract typography, fill, effect, and grid styles from a Figma file with resolved values. Unlike variables/tokens, styles contain visual properties like font families, colors, shadows, and grid layouts. This tool fetches style metadata AND resolves the actual property values from document nodes. Args:
Returns: JSON with styles grouped by type, including resolved property values and summary statistics. Examples:
|
| export_assetsA | Export SVG/PNG/JPG/PDF assets from Figma components. Renders component nodes as images via the Figma Image API. Can export specific nodes by ID, filter by component name or page, and optionally fetch SVG content inline. Args:
Returns: JSON with asset URLs (and optional inline SVG content) for each exported component. Examples:
|
| detect_unused_tokensA | Scan a GitHub repository for design token usage and identify unused tokens. Extracts tokens from a Figma file, derives CSS/SCSS/Tailwind variable names, and searches the GitHub repo for references. Reports which tokens have zero references in the codebase. Args:
Returns: JSON report with total/used/unused token counts, usage map, and list of unused tokens. Examples:
|
| get_design_contextA | Load design system context (tokens, components, patterns, rules) from a Figma file. Call this before generating UI code to ensure the output uses correct design tokens, reuses existing components, and follows established patterns. Args:
Returns: Markdown document with design system tokens, components, patterns, and rules. Examples:
|
| set_design_rulesA | Define explicit design rules that the AI should follow when generating code. Rules supplement auto-inferred patterns and take precedence over them. Stored locally and persist across sessions. Args:
Returns: Confirmation with total rule count. Examples:
|
| generate_theme_configA | Extract multi-theme configurations from Figma Variable modes. Generates theme-aware output files (CSS custom properties with theme selectors, Tailwind config, or TypeScript ThemeProvider) from Figma Variable modes (Light/Dark/etc). Args:
Returns: JSON with generated file(s) and summary of modes/token counts. |
| generate_coded_componentsA | Generate production-ready, pixel-perfect coded components from Figma. Extracts layout, colors, typography, spacing, effects from Figma node trees, resolves variable bindings to design tokens, diffs variants for state/dimensional overrides, detects nested components, and emits framework-specific code. Args:
Returns: JSON with generated component files, props, dependencies, and summary. |
| implement_designA | Convert a Figma frame into production code using design system tokens and components. Every visual value (color, spacing, typography, shadow) is matched against the project's design system tokens. Matched values use token references (e.g., var(--primary)); unmatched values use raw Figma values and are flagged in the mapping report. Args:
Returns: Three content blocks: generated code, token/component mapping report, and a Figma screenshot. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| use-design-system | Load your Figma design system context for AI-assisted code generation. Ensures generated code uses correct tokens, components, and patterns. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 13 tools
The tools are mostly cleanly separated across extraction, auditing, context/rules, code generation, and PR syncing. The main potential confusion is between generate_coded_components and implement_design, since both generate code from Figma, but the descriptions distinguish component-set generation from single-frame implementation with token mapping.
All tool names use consistent snake_case and are almost entirely verb-led noun phrases such as extract_tokens, audit_component_parity, and generate_sync_pr. There are no mixed camelCase or vague utility names.
The server has 13 tools, which fits comfortably in the ideal 3-15 range for a design-system-to-code integration. Each tool maps to a recognizable phase of the workflow, with no obvious filler tools.
The surface covers token and style extraction, asset export, platform-specific token generation, theme configs, parity and health audits, unused-token detection, design context and rules, component generation, frame implementation, and PR creation. For a Figma design-system-to-code server, this is a comprehensive lifecycle with no obvious blocking gap.