photoshop-mcp
Photoshop MCP 服务器
一个模型上下文协议(MCP)服务器,让AI助手(Claude、opencode、Cursor等)能够通过ExtendScript + COM自动化在Windows上驱动Adobe Photoshop。
专为**Photoshop 2020(v21.x)**构建,但也兼容更新版本。提供约122个工具,涵盖文档、图层、文本、滤镜、颜色调整、选区与蒙版、图层样式、导出、布局分析、设计QA以及Photoshop状态检查。
非官方社区项目。与Adobe无关联,也未获其认可。
工作原理
MCP client (opencode/Claude)
→ Node MCP server (server.js, stdio)
→ bridge.ps1 (PowerShell)
→ Photoshop COM (Application.DoJavaScriptFile)
→ ExtendScript DOMExtendScript,而非UXP — 通过COM进行外部自动化只能使用ExtendScript,它适用于所有Photoshop版本(2012–2025+)。UXP用于进程内插件,无法从外部调用。
Unicode安全 — 非ASCII文本(例如
£、—)在生成的JSX中被转义为\uXXXX,并预先添加UTF-8 BOM,因此价格/重音符号能正确往返。忙碌时重试 — 瞬态COM
RPC_E_SERVERCALL_RETRYLATER(“应用程序正忙”)错误会以退避方式重试。
Related MCP server: ImageMcp
要求
Windows
已安装Adobe Photoshop(在PS 2020 / v21.2上测试)
Node.js 18+
安装
npm install配置为MCP服务器
添加到您的MCP客户端配置中(例如~/.config/opencode/opencode.jsonc、Claude Desktop、Cursor):
{
"mcpServers": {
"photoshop": {
"command": "node",
"args": ["C:\\path\\to\\photoshop-mcp\\server.js"]
}
}
}更改后重启您的MCP客户端,以便加载更新的工具列表。
工具亮点
领域 | 工具 |
文档 |
|
图层 |
|
图层操作 |
|
文本 |
|
滤镜 |
|
颜色 |
|
选区与蒙版 |
|
图层样式 |
|
历史 |
|
布局/QA |
|
设计系统 |
|
状态检查 |
|
数据驱动 |
|
自动化 |
|
在您的MCP客户端中运行tools/list以查看全部约122个工具。
配置参考
| 临时JSX文件(自动创建) |
| 用于视觉回归的命名PNG快照( |
| 用于回滚的PSD备份( |
| 保存的设计系统( |
已知限制
生成式AI(Firefly) 和 Neural Filters 需要PS 24+ / UXP桥接插件,无法通过ExtendScript驱动。
select_subject需要PS 23+。export_asWebP/AVIF需要PS 23.2+。在PS 2020上,如果打开模态对话框,某些命令会提示“Photoshop正忙”——请关闭对话框并重试。
致谢
能力设计灵感来自:
两者均为MIT许可。本项目是独立实现,并增加了额外工具(布局分析、设计QA、设计系统、视觉回归)。
许可证
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for AI photo editing: nothing to install, no desktop photo editor needed.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server for controlling Adobe Photoshop from AI assistants, with Windows-first workflow, structured state, smoke-tested action playback, and a bundled Codex skill for image editing.5MIT
- FlicenseNot gradedqualityDmaintenanceA 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.-
- AlicenseAqualityDmaintenanceA professional MCP server that lets AI assistants directly control Adobe Photoshop for document creation, layer management, filters, adjustments, shapes, text, and design intelligence like palette generation and font pairing.322MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that lets AI assistants control Adobe Illustrator locally—running ExtendScript, capturing canvas screenshots, exporting artwork, and optionally remembering techniques—all without network activity.-