Script execution in Adobe Illustrator
## Adobe Illustrator MCP Server: Vector Graphics Integration The **Adobe Illustrator MCP Server** integrates Adobe Illustrator into Google Antigravity, enabling vector graphics automation, asset extraction, and design system management directly from your development environment. ### Why Illustrator MCP? - **Vector Automation**: Automate vector graphics tasks - **Asset Export**: Export assets in multiple formats - **Script Execution**: Run ExtendScript automations - **Design Systems**: Manage design tokens and components - **Batch Processing**: Process multiple files efficiently ### Key Features #### 1. Document Operations ```python # Open document doc = await mcp.open_document(path="/designs/logo.ai") # Get document info info = await mcp.get_document_info(document=doc["id"]) print(f"Artboards: {len(info['artboards'])}") print(f"Layers: {len(info['layers'])}") # Save document await mcp.save_document( document=doc["id"], path="/exports/logo-updated.ai" ) ``` #### 2. Export Operations ```python # Export artboards as PNG await mcp.export_artboards( document=doc["id"], format="png", scale=2, output_dir="/exports/icons", artboards=["icon-home", "icon-settings"] ) # Export for web await mcp.export_for_screens( document=doc["id"], formats=[ {"format": "svg", "prefix": ""}, {"format": "png", "scale": 1, "suffix": "@1x"}, {"format": "png", "scale": 2, "suffix": "@2x"} ] ) ``` #### 3. Layer Management ```python # List layers layers = await mcp.list_layers(document=doc["id"]) for layer in layers: print(f"Layer: {layer['name']} - Visible: {layer['visible']}") # Toggle layer visibility await mcp.set_layer_visibility( document=doc["id"], layer="Background", visible=False ) ``` #### 4. Color and Style ```python # Extract colors colors = await mcp.extract_colors(document=doc["id"]) for color in colors: print(f"Color: {color['hex']} - Used {color['count']} times") # Apply color replacement await mcp.replace_color( document=doc["id"], find="#FF0000", replace="#0066FF" ) ``` ### Configuration ```json { "mcpServers": { "illustrator": { "command": "npx", "args": ["-y", "@anthropic/mcp-illustrator"], "env": { "ILLUSTRATOR_PATH": "/Applications/Adobe Illustrator 2024/Adobe Illustrator.app" } } } } ``` ### Use Cases **Asset Generation**: Batch export icons and graphics. **Design Automation**: Automate repetitive design tasks. **Design Systems**: Extract tokens from design files. **CI/CD Integration**: Generate assets in pipelines. The Illustrator MCP enables vector graphics automation within your development environment.
{
"mcpServers": {
"illustrator": {
"mcpServers": {
"illustrator": {
"args": [
"-y",
"illustrator-mcp"
],
"command": "npx"
}
}
}
}
}