MCP Photoshop Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Photoshop ServerGenerate a photorealistic image of a mountain lake at sunset"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Photoshop Server
A local MCP (Model Context Protocol) server that combines Photoshop-style image editing with AI image generation powered by ComfyUI.
Designed for use with Cline — an AI-powered coding assistant. This server integrates as an MCP tool provider to enable image generation and editing directly from your Cline workflow.
Features
Canvas Management
new_canvas— Create a blank canvas with custom dimensions and background coloropen_image— Load an existing image fileexport— Save to PNG/JPG/WEBP or return base64 dataget_info— View canvas dimensions, layers, undo/redo state
AI Image Generation & Editing
generate_image— Text-to-image via Flux2 (photorealistic) or ANIMA (anime)img2img— AI instructed editing via Flux Kontextcharacter_transform— Pose/expression/action transforms with identity preservationinpaint— AI fill masked region (requires mask from select_rect/select_ellipse)outpaint— AI extend canvas in a direction (left, right, top, bottom)
AI-Guided Generation
controlnet_generate— Generate image guided by current canvas (depth/canny/pose)style_transfer— Generate image with style of a reference image (Redux StyleModel)
Deterministic Editing (Pillow — no GPU needed)
crop,resize,rotate,flip— Transform operationsadjust— Brightness, contrast, saturation, hue, sharpnesslevels— Black point, mid point (gamma), white point adjustmentcurves— Per-channel tone curves (R/G/B) with control pointsapply_filter— 17 filters: blur, gaussian_blur, sharpen, contour, detail, edge_enhance, edge_enhance_more, find_edges, smooth, smooth_more, emboss, pixelate, posterize, solarize, invert, grayscale, sepiaadd_text— Text overlay with font, color, stroke support
Upscaling
upscale— AI upscaling via ComfyUI (ESRGAN/SUPIR models)
Layer System
add_layer,select_layer,delete_layer,merge_down,reorder_layerset_blend_mode— 12 modes: normal, multiply, screen, overlay, darken, lighten, color_dodge, color_burn, hard_light, soft_light, difference, exclusionset_layer_opacity— Per-layer transparency
Selections & Masks
select_rect— Rectangular maskselect_ellipse— Elliptical maskselect_object— Heuristic color/region selection (red, blue, sky, dark, etc.)clear_mask— Remove layer mask
History
undo/redo— Full operation history (up to 20 steps)
System
get_comfyui_status— Check ComfyUI connectionclear_vram— Free GPU memory
Related MCP server: fal-mcp
Installation
Prerequisites
Python 3.10+
ComfyUI running locally on port 8188
⚠️ VRAM Warning: Running ComfyUI without auto-kill causes major OOM on shared GPUs (e.g., 32GB GPU with vLLM). Set
COMFYUI_AUTO_KILL=1to enable idle timeout (60s) which frees VRAM after inactivity while still allowing tool chaining.Required models installed in ComfyUI:
Flux2 Klein (photorealistic generation):
flux-2-klein-9b.safetensors(diffusion_models) — IMPORTANT: use 4-6 steps max. Image quality actively diminishes after ~6 steps (artifacts, over-smoothing) and latency increases linearly with each additional step.qwen_3_8b_fp8mixed.safetensors(text_encoders) — Flux2 Klein text encoderflux2-vae.safetensors(vae) — Flux2 Klein VAE
ANIMA (anime generation):
anima-aesthetic-v1.1.safetensors(diffusion_models)qwen_3_06b_base.safetensors(text_encoders)qwen_image_vae.safetensors(vae)
Flux Kontext (img2img, inpaint, outpaint):
flux1-dev-kontext_fp8_scaled.safetensors(diffusion_models)
Install Dependencies
cd mcp-photoshop-server
pip install -r requirements.txtConfigure MCP Client
Add to your MCP client configuration (e.g., Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"photoshop": {
"command": "python",
"args": ["<path-to-server>/server.py"],
"env": {
"COMFYUI_URL": "http://127.0.0.1:8188",
"COMFYUI_PYTHON": "<path-to-comfyui>/python_embeded/python.exe",
"COMFYUI_MAIN": "<path-to-comfyui>/ComfyUI/main.py",
"COMFYUI_AUTO_KILL": "1",
"COMFYUI_IDLE_TIMEOUT": "60",
"VRAM_PRESSURE_THRESHOLD_MB": "8192"
}
}
}
}Environment Variables
See .env_example for a complete reference. Key variables:
Variable | Default | Description |
|
| ComfyUI API endpoint |
| (optional) | Path to ComfyUI start .bat (alternative to COMFYUI_PYTHON + COMFYUI_MAIN) |
| (required for auto-start) | Path to ComfyUI's embedded |
| (required for auto-start) | Path to ComfyUI's |
|
| Extra startup arguments |
|
| Kill after generation ( |
|
| Seconds of inactivity before auto-kill (when AUTO_KILL=1) |
|
| Seconds to wait for ComfyUI to start |
|
| Kill ComfyUI if free VRAM drops below this (MB) |
|
| Seconds to wait for workflow completion |
|
| Maximum undo history entries |
|
| Logging verbosity ( |
Architecture
mcp-photoshop-server/
├── server.py # MCP server + 36 tool registrations
├── config.py # Configuration & model names
├── comfy_client.py # ComfyUI API client (REST + WebSocket)
├── canvas.py # Layered document with blend modes + undo/redo
├── session.py # Per-session document management
├── requirements.txt # Python dependencies
├── MEMORY.md # Project memory bank
├── .env_example # Environment variable template
├── .gitignore # Git ignore rules
└── README.mdDesign Philosophy
AI operations (generation, inpainting, transforms, ControlNet, style) → routed through ComfyUI
Deterministic edits (crop, resize, adjustments, filters) → executed locally with Pillow (fast, no GPU)
Layered document model → mirrors Photoshop's mental model with blend modes, masks, and undo history
Usage Examples
Generate and Edit
1. generate_image(prompt="a cat wearing sunglasses on a beach")
2. adjust(brightness=1.2, saturation=1.3)
3. apply_filter(name="sharpen")
4. export(path="output/cat.png")Layer Compositing
1. open_image(path="background.jpg")
2. add_layer(name="overlay", source_path="overlay.png")
3. set_blend_mode(mode="multiply")
4. set_layer_opacity(opacity=0.7)
5. export(path="output/composite.png")AI Edit Workflow
1. open_image(path="portrait.jpg")
2. img2img(prompt="change background to a forest at sunset")
3. undo # if not satisfied
4. img2img(prompt="make the lighting warmer and softer")
5. adjust(contrast=1.1)
6. export(path="output/edited.jpg", format="JPG")Inpainting Workflow
1. open_image(path="photo.jpg")
2. select_rect(x=100, y=50, width=200, height=150)
3. inpaint(prompt="a red rose bouquet")
4. export(path="output/inpainted.png")Upscaling
1. open_image(path="small_photo.jpg")
2. upscale(model="4x_NMKD-Siax_200k.pth")
3. export(path="output/upscaled.png")ControlNet Guided Generation
1. open_image(path="sketch.png")
2. controlnet_generate(prompt="a detailed cityscape", controlnet="canny", strength=0.8)
3. export(path="output/cityscape.png")Style Transfer
1. open_image(path="photo.jpg")
2. style_transfer(prompt="the same scene", style_path="painting.jpg", strength=0.8)
3. export(path="output/styled.png")Future Work
SAM-based semantic selection (replace heuristic with real segmentation model)
Batch processing / multi-session support
Additional ComfyUI custom nodes integration
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP Server that integrates with Stability AI's API to provide high-quality image generation, editing, and manipulation capabilities including background removal, outpainting, search-and-replace, and upscaling.5185MIT
- FlicenseAqualityDmaintenanceAn MCP server that integrates fal.ai's image generation and editing capabilities into MCP-compatible clients. It enables text-to-image generation, style application via LoRAs, and image editing using natural language instructions.6
- AlicenseAqualityCmaintenanceMCP server for AI image generation, transformation, and style management via the Recraft API. Provides tools for text-to-image, image-to-image, inpainting, background operations, vectorization, upscaling, and custom style creation.163410MIT
- Flicense-qualityCmaintenanceA full-featured image processing MCP server for AI assistants, exposing ~55 tools across 11 categories for editing, layers, conversion, AI segmentation/cleanup/generation, design analysis, and screenshot-to-code.
Related MCP Connectors
MCP server for Flux AI image generation
MCP server for NanoBanana AI image generation and editing
MCP server for Producer/Riffusion AI music generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sliang07/MCP-photoshop-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server