Photoshop automation foundation
## Photoshop Python API MCP Server: Image Editing Automation The **Photoshop Python API MCP Server** integrates Adobe Photoshop into Google Antigravity, enabling image editing automation, batch processing, and asset generation directly from your development environment. ### Why Photoshop MCP? - **Industry Standard**: Professional image editing automation - **Python API**: Modern Python interface for Photoshop - **Batch Processing**: Process hundreds of images automatically - **Actions**: Run Photoshop actions programmatically - **Smart Objects**: Manipulate smart object layers ### Key Features #### 1. Document Operations ```python # Open document doc = await mcp.open_document(path="/images/photo.psd") # Get document info info = await mcp.get_document_info() print(f"Size: {info['width']}x{info['height']}") print(f"Layers: {len(info['layers'])}") # Create new document new_doc = await mcp.create_document( width=1920, height=1080, resolution=72, name="banner" ) ``` #### 2. Layer Operations ```python # List layers layers = await mcp.list_layers() for layer in layers: print(f"Layer: {layer['name']} - {layer['kind']}") # Create text layer await mcp.create_text_layer( name="Title", contents="Hello World", font="Arial", size=72, color="#FFFFFF" ) # Adjust layer await mcp.adjust_layer( layer="Background", brightness=10, contrast=15 ) ``` #### 3. Export Operations ```python # Export as JPEG await mcp.export_jpg( output_path="/exports/photo.jpg", quality=85 ) # Export for web await mcp.export_for_web( output_path="/exports/banner.png", format="PNG-24", width=800 ) # Export layers await mcp.export_layers( output_dir="/exports/layers/", format="png" ) ``` #### 4. Batch Processing ```python # Batch resize await mcp.batch_process( input_dir="/photos/raw/", output_dir="/photos/processed/", actions=["resize_1080p", "sharpen", "auto_color"] ) # Apply action await mcp.run_action( action_set="My Actions", action_name="Vintage Effect" ) ``` ### Configuration ```json { "mcpServers": { "photoshop": { "command": "python", "args": ["-m", "mcp_photoshop"], "env": { "PHOTOSHOP_PATH": "/Applications/Adobe Photoshop 2024" } } } } ``` ### Use Cases **E-commerce**: Batch process product images. **Marketing**: Generate marketing assets automatically. **Photography**: Apply consistent edits to photo sets. **Web Assets**: Generate responsive image sets. The Photoshop MCP enables image editing automation within your development environment.
{
"mcpServers": {
"photoshop": {
"mcpServers": {
"photoshop": {
"args": [
"photoshop-mcp"
],
"command": "uvx"
}
}
}
}
}