design
Figma MCP Gateway for AI Agents
Expose Figma tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.
20 functions 19 read 1 write Bearer token auth
Figma MCP Gateway
Expose Figma to MCP clients with `kosmokrator mcp:serve --integration=figma`.
If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash kosmokrator mcp:gateway:install --integration=figma --write=deny --json {
"mcpServers": {
"kosmokrator-figma": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=figma",
"--write=deny"
]
}
}
} Serve Manually
kosmokrator mcp:serve --integration=figma --write=deny MCP Tool Names
KosmoKrator exposes integration tools through the gateway with stable names:
MCP Tool Names (20 tools)
| MCP tool | Source function | Type |
|---|---|---|
integration__figma__figma_delete_comment | figma.figma_delete_comment | Write write |
integration__figma__figma_get_comments | figma.figma_get_comments | Read read |
integration__figma__figma_get_component | figma.figma_get_component | Read read |
integration__figma__figma_get_components | figma.figma_get_components | Read read |
integration__figma__figma_get_current_user | figma.figma_get_current_user | Read read |
integration__figma__figma_get_file | figma.figma_get_file | Read read |
integration__figma__figma_get_file_images | figma.figma_get_file_images | Read read |
integration__figma__figma_get_file_nodes | figma.figma_get_file_nodes | Read read |
integration__figma__figma_get_image_fills | figma.figma_get_image_fills | Read read |
integration__figma__figma_get_me | figma.figma_get_me | Read read |
integration__figma__figma_get_project_files | figma.figma_get_project_files | Read read |
integration__figma__figma_get_style | figma.figma_get_style | Read read |
integration__figma__figma_get_styles | figma.figma_get_styles | Read read |
integration__figma__figma_get_team_projects | figma.figma_get_team_projects | Read read |
integration__figma__figma_list_comments | figma.figma_list_comments | Read read |
integration__figma__figma_list_components | figma.figma_list_components | Read read |
integration__figma__figma_list_files | figma.figma_list_files | Read read |
integration__figma__figma_list_projects | figma.figma_list_projects | Read read |
integration__figma__figma_list_team_components | figma.figma_list_team_components | Read read |
integration__figma__figma_post_comment | figma.figma_post_comment | Read read |
Write Access
Start with --write=deny for read-only MCP clients. Use --write=ask or
--write=allow only when the client and workspace are trusted.