Figma Console MCP is a Model Context Protocol server that lets AI assistants access Figma as an interface for working with design systems. It supports extracting, creating, debugging, and synchronizing design tokens between Figma and codebases. The catalogue commands and instruction help agents use this workflow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add southleft/figma-console-mcp --skill generate-code-with-design-systemgit clone --depth 1 https://github.com/southleft/figma-console-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/southleft/figma-console-mcp/generate-code-with-design-system)<a href="https://agentmods.dev/skills/southleft/figma-console-mcp/generate-code-with-design-system"><img src="https://agentmods.dev/badge/skills/southleft/figma-console-mcp/generate-code-with-design-system/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/southleft/figma-console-mcp/generate-code-with-design-system"><img src="https://agentmods.dev/badge/skills/southleft/figma-console-mcp/generate-code-with-design-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00105 | $0.01631 |
| Opus 5.5 | $0.00042 | $0.00652 |
| Sonnet 5.5 | $0.00021 | $0.00326 |
| Haiku 4.5 | $0.00011 | $0.00163 |
Grade A, and why
generate-code-with-design-system scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate code with the design system
Tools (Local Mode): this skill uses tools outside the core set. If they aren't in your tool list, call
figma_enable_toolsets({ toolsets: ["inspect", "parity"] })once at the start; if they still don't appear, call them throughfigma_call({ tool, arguments }). Cloud Mode lists every tool, so skip this there.
This works like generating in Figma, just in code. Use the system's components and tokens, and report what's missing. Don't write a local <Button>, a styled <div> card, or a new CSS variable because the system lacks one. Tell the person and let them decide.
1. Discover the code design system (read only)
Find all three of these, and note where each came from:
- Component source. The import specifier(s) that count as the design system, e.g.
@acme/uior@/components/ui.- Check
package.jsondependencies, workspace packages, path aliases intsconfig.json, and existing imports in nearby files. - List the components it exports from the package entry (
index.ts,exportsin itspackage.json,dist/index.d.ts) or from the component directory.
- Check
- Props and variants of each component you might use: the TypeScript props,
cva/variant maps, and stories (*.stories.*) if present. - Tokens. These might be CSS custom properties (
:root { --color-… }), a Tailwind theme (@themeblock in v4,theme.extendin v3), atokens.jsonor*.tokens.json, or a TS tokens module. Note the token file path.
If the repo has no identifiable design system, say so and ask before writing anything. Don't make one up.
When the code library mirrors a Figma library, the Figma side can help:
figma_get_component_for_development({ nodeId, codebasePath: "<components dir>" })returns specs plus a registry of existing code components, so you don't recreate one.figma_get_component_for_development_deep({ nodeId, depth: 0 })is for deeply nested components (tables, menus, date pickers).figma_analyze_component_set({ nodeId })maps variant axes and states to props and pseudo-classes.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 104 lines · 105 tokens per session scan A 5153b24f278c
generate-code-with-design-system is a skill published in the GitHub repository southleft/figma-console-mcp (3,455 stars, last pushed today), licensed MIT. It adds 105 tokens to every session and 1,631 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.
generate-code-with-design-system compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| generate-code-with-design-systemsouthleft/figma-console-mcp | Skill | 3.5k | today | MIT | A | 105 | Claude Code, Codex |
| design-to-code-checkmurphytrueman/design-system-ops | Skill | 226 | 2mo ago | MIT | A | 71 | Claude Code |
| memoire-design-toolingmemi-design/design-skills | Skill | 8 | 2mo ago | MIT | A | 57 | Claude Code, Codex |
| better-uimemi-design/design-skills | Skill | 8 | 2mo ago | MIT | A | 82 | Claude Code, Codex |
| token-architecturememi-design/design-skills | Skill | 8 | 2mo ago | MIT | A | 39 | Claude Code, Codex |
| design-to-code-handoffmemi-design/design-skills | Skill | 8 | 2mo ago | MIT | A | 48 | Claude Code, Codex |
| analyze-component-set-figmasouthleft/skills-for-figma | Skill | 22 | 5mo ago | MIT | A | 180 | Claude Code |