@nationaldesignstudio/agent-to-figma-mcp-server
v0.1.0
Published
MCP server for interacting with Figma through Claude Desktop and other MCP clients
Readme
@nationaldesignstudio/agent-to-figma-mcp-server
MCP server that enables AI agents (Claude, etc.) to manipulate Figma designs through the Model Context Protocol.
Installation
npx @nationaldesignstudio/agent-to-figma-mcp-serverClaude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"agent-to-figma": {
"command": "npx",
"args": ["@nationaldesignstudio/agent-to-figma-mcp-server"]
}
}
}Requirements
- Figma Desktop App with the Agent to Figma plugin installed
- Plugin connects to the MCP server via HTTP/SSE on port 3055
Architecture
Claude (MCP Client) <--stdio--> MCP Server <--HTTP/SSE (3055)--> Figma PluginAvailable Tools (~36)
| Category | Tools |
|----------|-------|
| Document | get_document_info, get_selection, create_page, set_current_page |
| Nodes | read_my_design, get_node_info, get_nodes_info, rename_node, set_node_parent |
| Shapes | create_shape, create_frame, create_section, create_slice, create_image |
| Text | create_text, set_text_content, set_text_properties, set_text_range_style, set_multiple_text_contents |
| Styling | set_style, get_local_styles, create_style |
| Transform | move_node, resize_node, delete_nodes, clone_node, group_nodes, boolean_operation, flatten_node, get_transform, set_relative_transform, rescale_node |
| Layout | set_layout, set_constraints, set_grid_layout, set_grid_child_position |
| Components | manage_component, create_instance, manage_instance, import_from_library, get_styles |
| Effects | set_effect, remove_effects |
| Annotations | manage_annotation |
| Export | export_node_as_image |
| Selection | set_focus, set_selections |
| Prototyping | get_reactions, set_default_connector, create_connections, set_reactions |
| Scanning | scan_text_nodes, scan_nodes_by_types |
| Variables | manage_variable_collection, manage_variable, manage_variable_mode, set_variable_value, manage_variable_binding, manage_extended_collection |
Environment Variables
| Variable | Default | Description |
|----------|---------|-------------|
| FIGMA_WS_PORT | 3055 | HTTP server port for Figma plugin |
| MCP_TIMEOUT_MS | 30000 | Command timeout in milliseconds |
| STANDALONE | false | Run HTTP server only (no MCP stdio) |
Links
License
MIT
