Back to MCP directory
publicPublicdnsLocal runtime

PsMCP-MCP-Server-for-Photoshop

一个用于Photoshop的MCP服务工具,通过Python脚本自动化PSD文件编辑任务,支持批量处理、动态调整图层和效果,并简化创意资产版本管理。

article

README

🚀 PsMCP-MCP-Server-for-Photoshop

PsMCP-MCP-Server-for-Photoshop 是一个用于 Photoshop 的服务器,可帮助用户自动化处理 Photoshop 任务,提升设计效率。通过它,用户能轻松实现批量编辑、快速生成创意素材等功能。

🎥 观看演示

点击下方图片观看演示视频:

Watch Demo Video

🚀 快速开始

📦 安装指南

激活 Python 环境并安装依赖:

pip install -r requirements.txt

💻 使用示例

基础用法

使用提供的 Gradio 客户端运行:

⚠️ 重要提示

我提供的 Gemini Gradio 客户端,由于某些原因,对于任何请求最多只进行一次工具调用,仅用于测试工具。实际使用请使用 Claude 或 Cursor。

Gradio Example

  1. .env 文件中设置 Gemini 密钥:
GEMINI_API_KEY = PASTE_YOUR_KEY_HERE
  1. 设置 PSD 文件、资源和导出文件的目录:
PSD_DIRECTORY = "D:\\Photoshop Files"
EXPORT_DIRECTORY = "D:\\PsMCP-Exports"
ASSETS_DIR = "D:\\PsMCP-Assets"
  1. 运行应用并连接到服务器:
python app.py
高级用法

使用任何 MCP 客户端(如 Claude、Cursor 等)配置服务器: 将服务器添加到配置文件中,以便访问工具:

{
    "mcpServers": {
        "PhotoshopAdv": {
            "command": "uv",
            "args": [
                "--directory",
                "Path/To/Directory",
                "run",
                "psMCP.py"
            ],
            "timeout": 60000 
        }
    }
}

✨ 主要特性

  • 自动化任务:自动执行重复性的 Photoshop 任务,如插入文本、调整大小、导出等。
  • 批量编辑:构建自定义设计管道,实现批量 PSD 编辑。
  • 快速创意生成:从模板快速生成营销创意素材。
  • 动态操作:通过 Python 脚本动态切换图层或应用效果。
  • 高效版本管理:简化创意资产的版本管理和导出流程。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client