Configuration
Settings are environment variables. The server loads .env from the project root at startup (copy .env.example); variables set in the MCP client’s env block win.
| Variable | Default | Meaning |
|---|---|---|
PHOTOSHOP_ADAPTER |
auto |
auto (COM on Windows, AppleScript on macOS), com, applescript, or mock (also --mock) |
PHOTOSHOP_TIMEOUT_MS |
60000 |
Timeout per bridge call. Design plans use at least 120 s |
PHOTOSHOP_JOB_TIMEOUT_MS |
900000 |
Timeout per bridge call inside a background job (background: true) |
PHOTOSHOP_AUTO_LAUNCH |
true |
Start Photoshop on the first call if it is not running (false to fail with PHOTOSHOP_NOT_RUNNING) |
ALLOWED_PATHS |
output;%USERPROFILE%\Documents\PhotoshopMCP |
;-separated sandbox roots; relative paths resolve against the first |
MAX_BATCH_FILES |
200 |
Max files per batch tool |
MAX_DOWNLOAD_MB |
50 |
Max size of one image downloaded by the asset tools or place_image/import_image with url |
DOWNLOAD_TIMEOUT_MS |
30000 |
Timeout for one image download (all redirects included) |
ALLOW_PRIVATE_DOWNLOADS |
false |
Allow downloads from localhost/private-network addresses (blocked by default to prevent SSRF) |
ASSETS_DIR |
<first allowed path>/assets |
Asset library folder (must be inside ALLOWED_PATHS); see IMAGE_ASSETS |
UNSPLASH_ACCESS_KEY |
– | Enables Unsplash search |
PEXELS_API_KEY |
– | Enables Pexels search |
PIXABAY_API_KEY |
– | Enables Pixabay search |
SERPAPI_API_KEY |
– | Enables Google Images search via SerpApi (results have unverified licences) |
GOOGLE_CSE_API_KEY / GOOGLE_CSE_ID |
– | Google Images via the Custom Search JSON API (existing customers only; shuts down 2027-01-01) |
DOWNLOAD_RETRIES |
2 |
Retries for network errors, HTTP 429 and 5xx |
MAX_IMAGE_DIMENSION |
30000 |
Max width or height of a downloaded image |
MAX_IMAGE_MEGAPIXELS |
200 |
Max pixel count of a downloaded image |
IMAGE_SEARCH_TIMEOUT_MS |
15000 |
Timeout per provider search request |
MCP_TRANSPORT |
stdio |
stdio or http (also --transport http) |
MCP_HTTP_HOST |
127.0.0.1 |
HTTP bind address |
MCP_HTTP_PORT |
3333 |
HTTP port |
MCP_AUTH_TOKEN |
– | Bearer token for /mcp. Required off-loopback unless MCP_SECRET_PATH is set |
MCP_SECRET_PATH |
– | Also serve at /mcp/<secret> for connector UIs that cannot send headers (≥ 24 URL-safe chars; scripts\new-token.ps1) |
LOG_LEVEL |
info |
debug, info, warn, error |
LOG_DIR |
– | Also write JSON logs to this folder (e.g. logs) |
FIREFLY_CLIENT_ID, FIREFLY_CLIENT_SECRET |
– | Adobe Firefly Services credentials (optional) |
REMOVE_BG_API_KEY |
– | remove.bg key (optional) |
Command-line flags
| Flag | Effect |
|---|---|
--transport http |
Streamable HTTP instead of stdio |
--mock |
Mock Photoshop (results labelled source: "mock") |
--version |
Print name and version |
MCP clients the installers configure
installers/windows/install.ps1 and installers/macos/install.sh merge a photoshop server entry (with a backup) into
Claude Desktop, Cursor, Windsurf and Gemini CLI configs, and register it with the Claude Code and Codex CLIs when they are on PATH.
The entry sets PHOTOSHOP_ADAPTER=com (Windows) or applescript (macOS). Set PHOTOSHOP_MCP_CONFIGURE_CLIENTS=0 (or -NoClients / --no-clients)
to only print the snippet. See CLIENTS.md for manual setup.