Agent Academy

Agent Academy is a free, source-linked library of skills, prompts, MCP servers and bot templates, organised into courses by profession, for people who hand real work to AI agents: 1,467 live resources, each with its original link, license and safety tags.

MCP server

io.github.compassalessandrolorenz/Figma-Context-MCP-AIR

Figma MCP server for AI agents. 9 tools: design context, variables, screenshots, and FigJam.

Needs credentialsDoes not send

https://github.com/compassalessandrolorenz/Figma-Context-MCP-AIR

Needs credentials

FIGMA_API_KEY

Install
npx -y figma-context-mcp-air

Original content

Full originalMITSource

Republished in full under its license, with attribution. The source is authoritative.

Figma Context MCP AIR

Give your AI coding agent access to Figma design data.

Implement designs in any framework with pixel-perfect accuracy — in one shot.


What is this?

figma-context-mcp-air is a Model Context Protocol (MCP) server that gives AI coding tools (Cursor, Claude, Windsurf, etc.) direct access to your Figma design data.

It exposes 9 tools covering the full design-to-code workflow:

ToolDescription
get_figma_dataFull design data — layout, text, visuals, components (YAML/JSON)
get_design_contextAlias for get_figma_data matching the official Figma MCP tool naming
download_figma_imagesDownload PNG/SVG assets from Figma nodes to your local filesystem
get_screenshotCapture a Figma node as a base64 PNG for visual inspection by the AI
get_metadataSparse XML layer hierarchy for quick node discovery before full extraction
get_variable_defsAll design tokens — colors, typography, spacing, effects, and styles
whoamiVerify your Figma authentication and check your plan tier
create_design_system_rulesGenerate framework-specific design system documentation for your project
get_figjamExtract FigJam board content (sticky notes, connectors, shapes) as XML

Before returning data to the AI, the server simplifies and filters the raw Figma API response — keeping only the layout and styling information that matters for code generation. This reduces noise and dramatically improves AI accuracy.


Getting Started

You need a Figma Personal Access Token to use this server.

How to create a Figma API access token →

MacOS / Linux

Add this to your MCP client configuration file (e.g. ~/.cursor/mcp.json, claude_desktop_config.json):

{
  "mcpServers": {
    "Figma MCP AIR": {
      "command": "npx",
      "args": ["-y", "figma-context-mcp-air", "--figma-api-key=YOUR-KEY", "--stdio"]
    }
  }
}

Windows

{
  "mcpServers": {
    "Figma MCP AIR": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "figma-context-mcp-air", "--figma-api-key=YOUR-KEY", "--stdio"]
    }
  }
}

Using Environment Variables

You can also set FIGMA_API_KEY in the env field instead of passing it as a flag:

{
  "mcpServers": {
    "Figma MCP AIR": {
      "command": "npx",
      "args": ["-y", "figma-context-mcp-air", "--stdio"],
      "env": {
        "FIGMA_API_KEY": "YOUR-KEY"
      }
    }
  }
}

How it works

  1. Open your AI coding tool's chat (e.g. agent mode in Cursor).
  2. Paste a link to a Figma file, frame, or component.
  3. Ask the AI to implement the design.
  4. The AI calls get_design_context (or get_figma_data) to fetch structured design data, then writes your code.

For more advanced workflows, the AI can:

  • Call get_screenshot to visually inspect a node before implementing it
  • Call get_variable_defs to extract your design tokens and map them to CSS variables
  • Call get_metadata for a quick layer overview before fetching full data
  • Call create_design_system_rules to generate project-specific coding guidelines

Configuration Options

CLI FlagEnvironment VariableDefaultDescription
--figma-api-keyFIGMA_API_KEY_(required)_Your Figma Personal Access Token
--figma-oauth-tokenFIGMA_OAUTH_TOKEN—OAuth Bearer token (alternative to PAT)
--portPORT3333HTTP server port (HTTP mode only)
--jsonOUTPUT_FORMAT=jsonYAMLReturn JSON instead of YAML
--skip-image-downloadsSKIP_IMAGE_DOWNLOADSfalseDisable the download_figma_images tool
--image-dir——Custom directory for downloaded images
--stdioNODE_ENV=cli—Run in stdio mode (required for MCP clients)

Tool Reference

get_figma_data / get_design_context

Fetches and simplifies Figma design data for a file or specific node. Returns layout (flexbox/grid), typography, colors, borders, effects, and component metadata in YAML or JSON.

Parameters:

  • fileKey _(required)_ — The key from your Figma URL: figma.com/design/<fileKey>/...
  • nodeId _(optional)_ — The node ID from the URL: ?node-id=<nodeId>. Use format 1234:5678.
  • depth _(optional)_ — How many levels deep to traverse. Only use if explicitly needed.

download_figma_images

Downloads PNG or SVG renders of Figma nodes to your local filesystem.

Parameters:

  • fileKey _(required)_
  • nodes _(required)_ — Array of { nodeId, fileName } objects
  • localPath _(required)_ — Directory to save images
  • pngScale _(optional)_ — Scale factor for PNG exports (default: 1)
  • svgOptions _(optional)_ — SVG export options (outline text, include IDs, simplify strokes)

get_screenshot

Captures a Figma node as a 2x PNG and saves it to disk. Useful for visual validation.

Parameters:

  • fileKey _(required)_
  • nodeId _(required)_
  • localPath _(optional)_ — Save directory (default: ./screenshots)
  • fileName _(optional)_ — Output filename without extension

get_metadata

Returns a sparse XML representation of the node hierarchy (depth=2). Use this for quick layer discovery before fetching full design context.

Parameters:

  • fileKey _(required)_
  • nodeId _(required)_

get_variable_defs

Fetches all design tokens from a Figma file — variable collections (colors, spacing, typography) and published styles (effects, text styles, fill styles). Returns data with CSS custom property syntax.

Parameters:

  • fileKey _(required)_

whoami

Returns the authenticated user's Figma account information (name, email, plan tier). Useful for verifying your API key is working.

Parameters: None


create_design_system_rules

Generates a comprehensive markdown template for project-specific design system rules. Tailored to your language and framework combination. Save the output to CLAUDE.md or your project's AI instructions file.

Parameters:

  • clientLanguages _(required)_ — e.g. "typescript,javascript"
  • clientFrameworks _(required)_ — "react", "vue", "svelte", "angular", or "unknown"

get_figjam

Extracts content from a FigJam board — sticky notes, connectors, shapes, sections — as XML with screenshot URLs.

Parameters:

  • fileKey _(required)_
  • nodeId _(optional)_ — Specific section or frame within the FigJam board

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Development mode (HTTP, with watch)
pnpm dev

# Development mode (stdio)
pnpm dev:cli

# Run tests
pnpm test

# Type check
pnpm type-check

# Lint
pnpm lint

Contributing

Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) before submitting a pull request.

For major features, open an issue first to discuss the approach.


License

MIT — see [LICENSE](LICENSE)


Acknowledgements

This project is a fork of GLips/Figma-Context-MCP (the Framelink MCP server), extended with additional tools to match the full official Figma MCP tool surface.

DescriptionFigma MCP server for AI agents. 9 tools: design context, variables, screenshots, and FigJam.
Version2.0.2
Packagesnpm · figma-context-mcp-air@2.0.2 · stdio
Environment variablesFIGMA_API_KEY required secret
Your Figma Personal Access Token, learn more here: https://www.figma.com/developers/api#access-tokens

Related

Design systemDesign

Apple Human Interface Guidelines

Apple's platform design guidance: foundations, patterns, components, inputs, technologies.

Sourcedeveloper.apple.com/design/human-interface-guidelines

No credentialsDoes not sendApple terms; link only
Style libraryDesign

UI Hub (Incidental AI UI resource hub) — llms.txt / api

Curated multilingual directory of ~2,391 public UI resources with visual-style (vs) facets, design KB (specs, skills), JSON endpoints and a recommended design-skill workflow.

Sourcesiinxu.github.io/ui-resource-hub/llms.txt

No credentialsDoes not sendaggregator; per-item license
WorkflowDesign

UI Hub skills.json (recommended design workflow)

Workflow: pick ONE direction skill (frontend-design or taste-skill) → search resources by style/kind → build with emil-design-eng → audit with impeccable + web-design-guidelines + accessibility → verify in browser light+dark, mobile.

Sourcesiinxu.github.io/ui-resource-hub/api/skills.json

No credentialsDoes not sendaggregator
SkillDesign

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

Sourcegithub.com/anthropics/skills/blob/main/skills/algorithmic-art/SKILL.md

No credentialsDoes not sendApache-2.0
SkillDesign

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

Sourcegithub.com/anthropics/skills/blob/main/skills/canvas-design/SKILL.md

No credentialsDoes not sendApache-2.0
CaseDesign

Multimodal Design Agent Team

A Streamlit application that provides comprehensive design analysis using a team of specialized AI agents powered by Google's Gemini model.

Sourcegithub.com/Shubhamsaboo/awesome-llm-apps/tree/main/advanced_ai_agents/multi_agent_apps/agent_teams/multimodal_design_agent_team

No credentialsDoes not sendApache-2.0