Skip to main content
Glama

mcp-figma

Un servidor de Protocolo de Contexto de Modelo (MCP) para la integración de la API de Figma, diseñado para usarse con Claude y otros asistentes de IA compatibles con MCP.

versión npm

Características

Este servidor MCP proporciona acceso a la funcionalidad de la API de Figma:

  • Operaciones de archivo (obtener archivo, obtener nodos, obtener imágenes)

  • Gestión de comentarios

  • Gestión de equipos/proyectos

  • Acceso a componentes y estilos

  • Almacenamiento persistente de claves API

Related MCP server: Figma MCP Server

Instalación

Instalación de NPM

# Install globally
npm install -g mcp-figma

# Or install locally in a project
npm install mcp-figma

# Update to latest version
npm update -g mcp-figma

Uso con Claude

  1. Añade mcp-figma a tu configuración de Claude:

"mcp-figma": {
  "command": "npx",
  "args": [
    "-y",
    "mcp-figma"
  ]
}
  1. Cuando uses Claude, la primera vez deberás configurar tu clave API de Figma:

Please use mcp-figma to set my Figma API key: figd_xxxxxxxxxxxxxxxxxxxxxxx

Su clave API se almacenará en ~/.mcp-figma/config.json y se cargará automáticamente en futuras sesiones.

  1. Puedes verificar que tu clave API esté configurada:

Please use mcp-figma to check my API key status
  1. Luego use cualquiera de las funciones API de Figma disponibles:

Please use mcp-figma to get the file with key abc123

Herramientas disponibles

El servidor proporciona las siguientes herramientas:

  • set_api_key : Establezca su token de acceso personal a la API de Figma (guardado en la configuración)

  • check_api_key : Comprueba si ya está configurada una clave API

  • get_file : Obtener un archivo Figma por clave

  • get_file_nodes : Obtener nodos específicos de un archivo Figma

  • get_image : Obtener imágenes de los nodos en un archivo Figma

  • get_image_fills : Obtener las URL de las imágenes utilizadas en un archivo Figma

  • get_comments : Obtener comentarios en un archivo Figma

  • post_comment : Publicar un comentario en un archivo de Figma

  • delete_comment : Eliminar un comentario de un archivo Figma

  • get_team_projects : Obtener proyectos para un equipo

  • get_project_files : Obtener archivos para un proyecto

  • get_team_components : Obtener componentes para un equipo

  • get_file_components : Obtener componentes de un archivo

  • get_component : Obtener un componente por clave

  • get_team_component_sets : Obtener conjuntos de componentes para un equipo

  • get_team_styles : Obtener estilos para un equipo

  • get_file_styles : Obtener estilos de un archivo

  • get_style : Obtener un estilo por clave

Para ver ejemplos de uso detallados, consulte USAGE.md .

Licencia

Instituto Tecnológico de Massachusetts (MIT)

Available Tools

18 tools
check_api_keyA

Check if a Figma API key is already configured

Inputs: no named parameters.

delete_commentC

Delete a comment from a Figma file

Inputs: fileKey (required), comment_id (required).

get_commentsC

Get comments on a Figma file

Inputs: fileKey (required).

get_componentC

Get a component by key

Inputs: key (required).

get_fileC

Get a Figma file by key

Inputs: fileKey (required), version, depth, branch_data.

get_file_componentsC

Get components from a file

Inputs: fileKey (required).

get_file_nodesC

Get specific nodes from a Figma file

Inputs: fileKey (required), node_ids (required), depth, version.

get_file_stylesC

Get styles from a file

Inputs: fileKey (required).

get_imageC

Get images for nodes in a Figma file

Inputs: fileKey (required), ids (required), scale, format, +3 more.

get_image_fillsC

Get URLs for images used in a Figma file

Inputs: fileKey (required).

get_project_filesC

Get files for a project

Inputs: project_id (required), page_size, cursor, branch_data.

get_styleC

Get a style by key

Inputs: key (required).

get_team_componentsC

Get components for a team

Inputs: team_id (required), page_size, cursor.

get_team_component_setsC

Get component sets for a team

Inputs: team_id (required), page_size, cursor.

get_team_projectsC

Get projects for a team

Inputs: team_id (required), page_size, cursor.

get_team_stylesC

Get styles for a team

Inputs: team_id (required), page_size, cursor.

post_commentC

Post a comment on a Figma file

Inputs: fileKey (required), message (required), client_meta, comment_id.

set_api_keyA

Set your Figma API personal access token (will be saved to ~/.mcp-figma/config.json)

Inputs: api_key (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific Figma resources like files, comments, components, styles, and images. However, get_file_nodes and get_image_fills could potentially overlap in purpose since both deal with retrieving node-related data, though their descriptions clarify different focuses (nodes vs. image fills).

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, with clear actions like get, post, delete, set, and check. This uniformity makes the toolset predictable and easy for an agent to navigate without confusion.

    Tool Count4/5

    With 18 tools, the count is slightly high but reasonable for a Figma API server that needs to cover multiple resource types (files, comments, components, styles, images, projects, teams). It avoids being overwhelming while providing comprehensive functionality, though it could be trimmed slightly for tighter scoping.

    Completeness5/5

    The toolset offers complete coverage for core Figma operations, including CRUD for comments (get, post, delete), retrieval for files, components, styles, images, projects, and teams, and configuration for API keys. There are no obvious gaps, and agents can perform typical workflows without dead ends.

    Related MCP Connectors

    Related MCP Servers