photoshop-mcp
AGENTS.md566 starsChanged 2 months agoMITView on GitHub
Navigation map, not a reference manual. Start with llms.txt or the site index llms.txt, then follow links as needed. Prerequisites: Photoshop running on Windows or macOS, Node.js 18+. This is unofficial and not affiliated with Adobe. Tool surface: 127 MCP tools — 111 atomic photoshop_* + 16 recipe photoshop_recipe_*; 23 MCP prompt templates (ps.*). Deep dive: docs/architecture.md. Follow the server instructions advertised on MCP initialize (src/prompts/instructions.ts). Plugin installs also load skills/photoshop-remove-background and skills/photoshop-recipes when the request matches; those hold the…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- llms.txtllms.txt
- photoshop-recipesSkill
- photoshop-remove-backgroundSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Follow the server instructions advertised on MCP initialize (src/prompts/instructions.ts).
- Very specific: line 133
Before PR: npm run lint, npm run build:server, npm run verify:photoshop-prompts, npm run verify:pack.
- Distinctive: line 134
Do not add AI-attribution footers to commits or PR descriptions.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — photoshop-mcp
Navigation map, not a reference manual. Start with llms.txt or the site index llms.txt, then follow links as needed.
Entry strategy
| Scenario | Path |
| Cursor | Install the photoshop-mcp plugin (Customize → Plugins / Marketplace) so the Photoshop logo appears in the MCP list. Fallback: mcpServers → npx -y @alisaitteke/photoshop-mcp (stdio, generic icon) |
| Claude Desktop / VS Code | Configure mcpServers → npx -y @alisaitteke/photoshop-mcp (stdio) |
| Claude Code | Install this repo as a plugin (skills + MCP). Tools only: claude mcp add photoshop -- npx -y @alisaitteke/photoshop-mcp |
| Standalone chat UI (no IDE) | npx -p @alisaitteke/photoshop-mcp ui |
| Local development | npm install && npm run build && node dist/index.js — see docs/development.md |
Prerequisites: Photoshop running on Windows or macOS, Node.js 18+. This is unofficial and not affiliated with Adobe.
Tool surface: 127 MCP tools — 111 atomic photoshop_* + 16 recipe photoshop_recipe_*; 23 MCP prompt templates (ps.*).
Architecture (agent view)
AI host (Cursor / Claude / UI)
│ MCP stdio
▼
PhotoshopMCPServer (Node.js)
│ ExtendScript via AppleScript (macOS) or COM (Windows)
▼
Adobe Photoshop
Optional: UXP bridge plugin (uxp-plugin/) on 127.0.0.1:38452 for Neural Filters only.Deep dive: docs/architecture.md.
Recommended workflow
Follow the server instructions advertised on MCP initialize (src/prompts/instructions.ts). Plugin installs also load skills/photoshop-remove-background and skills/photoshop-recipes when the request matches; those hold the phrase-to-tool glossary. The initialize text stays the session contract.
1. DISCOVER: tools/list + prompts/list (or get_capabilities once per session)
2. STATE: photoshop_get_state before mutating; photoshop_get_preview after major steps
3. ACT: prefer photoshop_recipe_* for multi-step outcomes (single undo step)
4. RECOVER: on error, read structured envelope (code, suggested_next_tool) → get_state → retry one stepTool selection
| Need | Use |
| Multi-step outcome (remove BG, export for web, portrait enhance) | photoshop_recipe_* |
| Single precise edit | atomic photoshop_* |
| Vague user intent | MCP prompt prompts/get (e.g. ps.remove_background) then call linked recipe/tool |
| Generative AI (Fill, Remove, Expand) | photoshop_generative_* — requires Adobe account + credits |
| Neural Filters (skin smooth, colorize, …) | photoshop_neural_filter — requires UXP bridge loaded |
| Version / feature check | photoshop_get_capabilities |
| Tracking, leading, paragraph box | photoshop_set_text_style (or those fields on photoshop_create_text_layer) |
| Mixed fonts/colors in one text layer | photoshop_set_text_ranges |
Full catalog: docs/available-tools.md. Prompt layer: docs/prompt-layer.md.
MCP client configuration
Cursor: prefer the photoshop-mcp plugin (Customize → Plugins) so the Photoshop logo appears in the MCP list. Other hosts and the install-mcp deeplink use:
{
"mcpServers": {
"photoshop": {
"command": "npx",
"args": ["-y", "@alisaitteke/photoshop-mcp"],
"env": { "LOG_LEVEL": "1" }
}
}
}Examples: examples/cursor-config.json, examples/claude-desktop-config.json.
Environment variables
| Variable | Purpose |
LOG_LEVEL | 0=DEBUG, 1=INFO, 2=WARN, 3=ERROR |
PHOTOSHOP_PATH | Optional custom Photoshop install path |
PHOTOSHOP_SCRIPT_TIMEOUT | Default ExtendScript timeout in ms (default 30000, max 600000) |
PSMCP_UI_TOKEN | Pin standalone UI API token (see README) |
PSMCP_FEEDBACK | Set 0 to disable the product-feedback ping question (on by default) |
PSMCP_UPDATE_CHECK | Set 0 to disable the daily npm version check and the UPDATE_AVAILABLE ping notice (on by default; also off with NO_UPDATE_NOTIFIER or CI) |
Troubleshooting (common agent blockers)
| Symptom | Fix |
| Photoshop not found | Start Photoshop; set PHOTOSHOP_PATH if non-standard install |
| Tool times out | Retry photoshop_ping until it succeeds. Ping runs a short script and returns extendscript_timeout while Photoshop is still busy; only then call get_state. Pass timeout_ms on photoshop_execute_script (max 600s), or set PHOTOSHOP_SCRIPT_TIMEOUT; batch recipes already use 600s. |
| Scratch disk full | scratch_disk_full means Photoshop froze or refused the command because the scratch disk is full. Free at least 100 GB on the OS drive (the default scratch disk), then restart Photoshop. Ping again only after that restart. |
| Font not in the list | font_not_found. Photoshop only lists fonts installed for this user. photoshop_install_font copies a .ttf/.otf/.ttc the user already has into the current-user font folder and calls app.refreshFonts() so an open Photoshop sees it. Use the returned postScriptName. |
generative_unavailable / version_unsupported | Call get_capabilities; feature may need newer Photoshop or Adobe login |
| Neural filter fails | Add Plugin → uxp-plugin/manifest.json → Load in UXP Developer Tools — see docs/development.md |
| No active document | Ask user to open/create a document, then get_state |
More: docs/troubleshooting.md.
Distribution
| Channel | Identifier |
| npm | @alisaitteke/photoshop-mcp |
| MCP Registry | io.github.alisaitteke/photoshop-mcp |
| GitHub | https://github.com/alisaitteke/photoshop-mcp |
| Cursor Marketplace | plugin photoshop-mcp (submit via CONTRIBUTING.md) |
Key files
| File | Purpose |
| llms.txt | LLM-oriented project summary |
| README.md | Human docs, install, example prompts |
| server.json | MCP Registry metadata |
| src/core/server.ts | MCP server entry |
| src/tools/ | Tool implementations |
| src/prompts/ | MCP prompt templates |
| CONTRIBUTING.md | PR and release workflow |
.cursor-plugin/plugin.json | Cursor Plugin manifest (MCP list logo) |
.claude-plugin/plugin.json | Claude Code plugin manifest (same skills/) |
skills/ | Plugin skills: remove-background hard rule detail and recipe routing |
mcp.json | Cursor Plugin stdio server config |
Contributing (agents editing this repo)
- Canonical language for code, comments, commits, and PRs: English.
- Before PR:
npm run lint,npm run build:server,npm run verify:photoshop-prompts,npm run verify:pack. - Do not add AI-attribution footers to commits or PR descriptions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

