loading…
Search for a command to run...
loading…
An AI-driven integration server that enables natural language control of Adobe Photoshop through the Model Context Protocol. It automates design workflows by fa
An AI-driven integration server that enables natural language control of Adobe Photoshop through the Model Context Protocol. It automates design workflows by facilitating smart asset slicing, layer analysis, and the future generation of UI code from design files.
PS-MCP 是一个基于 Model Context Protocol (MCP) 的 Photoshop 集成服务器,旨在通过 AI 大模型(如 Claude、GPT 等)实现对 Adobe Photoshop 的智能控制。
本项目目前处于早期开发阶段,核心目标是实现设计稿的智能切图与资源导出,并计划在未来演进为 「设计稿分析 → 智能切图 → UI 代码生成」 的一站式工作流解决方案。
┌─────────────────────────────────────────────────────────────┐
│ AI 大模型 (Claude/GPT) │
└───────────────────────┬─────────────────────────────────────┘
│ MCP Protocol
┌───────────────────────┼─────────────────────────────────────┐
│ ▼ │
│ ┌────────────────┐ │
│ │ PS-MCP Server │ ← 本项目 │
│ │ (Python) │ │
│ └───────┬────────┘ │
│ │ │
│ ┌───────────┴───────────┐ │
│ │ │ │
│ ▼ ▼ │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ Photoshop │ │ Export │ │
│ │ JSX/Script │ │ Assets │ │
│ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────┘
| 组件 | 技术 | 说明 |
|---|---|---|
| MCP Server | FastMCP | Python MCP 服务端框架 |
| 通信协议 | stdio/sse | 标准输入输出 / HTTP 流 |
| PS 交互 | ExtendScript / UXP | Adobe Photoshop 脚本接口 |
| 构建工具 | uv | 现代 Python 包管理器 |
# 克隆仓库
git clone https://github.com/pangxie231/ps-mcp.git
cd ps-mcp
# 使用 uv 安装依赖
uv sync
# 或使用 pip
pip install -e "."
在 Claude Desktop 配置文件中添加:
{
"mcpServers": {
"ps-mcp": {
"command": "python",
"args": ["/path/to/ps-mcp/server.py"]
}
}
}
# 开发模式
python server.py
# 或使用 uv
uv run server.py
| 功能模块 | 状态 | 说明 |
|---|---|---|
| MCP 服务框架 | ✅ | 基础服务搭建完成 |
| 工具注册 | ✅ | 测试工具可用 |
| PS 连接层 | 🚧 | 开发中... |
| 切图功能 | 📋 | 计划中 |
| 图层分析 | 📋 | 计划中 |
| UI 生成 | 📋 | 计划中 |
图例: ✅ 已完成 | 🚧 进行中 | 📋 计划中
⚠️ 注意:以下工具列表将随开发进度持续更新
| 工具名 | 描述 | 参数 |
|---|---|---|
hello |
测试连接 | 无 |
本项目欢迎贡献!由于处于早期阶段,API 和架构可能会有较大变动,建议先通过 Issue 讨论后再提交 PR。
git checkout -b feature/amazing-feature)git commit -m 'feat: add some amazing feature')git push origin feature/amazing-feature)MIT © 2026 ps-mcp Contributors
⚠️ 免责声明:本项目目前处于早期开发阶段,API 可能不稳定,不建议用于生产环境。
Made with ❤️ for better design-to-code workflow
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"ps-mcp": {
"command": "npx",
"args": []
}
}
}