MCP Server for Photoshop integration using photoshop-python-api
Project description
Photoshop MCP Server
⚠️ WINDOWS ONLY: This server only works on Windows operating systems due to its dependency on Windows-specific COM interfaces.
A Model Context Protocol (MCP) server for Photoshop integration using photoshop-python-api.
English | 简体中文
Overview
This project provides a bridge between the Model Context Protocol (MCP) and Adobe Photoshop, allowing AI assistants and other MCP clients to control Photoshop programmatically.
What Can It Do?
With this MCP server, AI assistants can:
- Create, open, and save Photoshop documents
- Create and manipulate layers (text, solid color, etc.)
- Get information about the Photoshop session and documents
- Apply effects and adjustments to images
- And much more!
Requirements
System Requirements
- 🔴 WINDOWS OS ONLY: This server ONLY works on Windows operating systems
- The server relies on Windows-specific COM interfaces to communicate with Photoshop
- macOS and Linux are NOT supported and CANNOT run this software
Software Requirements
- Adobe Photoshop: Must be installed locally (tested with versions CC2017 through 2024)
- Python: Version 3.10 or higher
Installation
Note: Remember that this package only works on Windows systems.
# Install using pip
pip install photoshop-mcp-server
# Or using uv
uv install photoshop-mcp-server
MCP Host Configuration
This server is designed to work with various MCP hosts. The PS_VERSION environment variable is used to specify which Photoshop version to connect to (e.g., "2024", "2023", "2022", etc.).
The recommended way to configure the server is using uvx as the command, which is the official standard format.
Standard Configuration (Recommended)
Add the following to your MCP host configuration (works with Claude Desktop, Windsurf, Cline, and other MCP hosts):
{
"mcpServers": {
"photoshop": {
"command": "uvx",
"args": ["--python", "3.10", "photoshop-mcp-server"],
"env": {
"PS_VERSION": "2024"
}
}
}
}
Configuration Options
- PS_VERSION: Specify the Photoshop version to connect to (e.g., "2024", "2023", "2022", etc.)
- command: Use
uvxfor the standard approach - args: Use
["photoshop-mcp-server"]to run the Photoshop MCP server- To specify a Python version explicitly, use
["--python", "3.10", "photoshop-mcp-server"](any version from 3.10 to 3.14 is supported)
- To specify a Python version explicitly, use
Key Features
Available Resources
photoshop://info- Get Photoshop application informationphotoshop://document/info- Get active document informationphotoshop://document/layers- Get layers in the active document
Available Tools
The server provides various tools for controlling Photoshop:
- Document Tools: Create, open, and save documents
- Layer Tools: Create text layers, solid color layers, etc.
- Session Tools: Get information about Photoshop session, active document, selection
Example Prompts for AI Assistants
Once configured in your MCP host, you can use the Photoshop MCP server in your AI assistant conversations. Here are some example prompts to get you started:
Basic Examples
User: Can you create a new Photoshop document and add a text layer with "Hello World"?
AI Assistant: I'll create a new document and add the text layer for you.
[The AI uses the Photoshop MCP server to:
1. Create a new document using the `create_document` tool
2. Add a text layer using the `create_text_layer` tool with the text "Hello World"]
I've created a new Photoshop document and added a text layer with "Hello World".
More Advanced Examples
User: Open my latest PSD file and tell me how many layers it has.
AI Assistant: I'll check your latest PSD file and count the layers.
[The AI uses the Photoshop MCP server to:
1. Get information about open documents
2. If no document is open, it can browse and open a PSD file
3. Retrieve and analyze the layer structure]
Your document has 12 layers, including 3 group folders and 2 adjustment layers.
User: Create a social media post with a gradient background and the text "Summer Sale" in a bold font.
AI Assistant: I'll create that social media post for you.
[The AI uses the Photoshop MCP server to:
1. Create a new document with appropriate dimensions for social media
2. Create a gradient fill layer with summer colors
3. Add a text layer with "Summer Sale" in a bold font
4. Position and style the text appropriately]
I've created your social media post with a gradient background and bold "Summer Sale" text.
License
MIT
Acknowledgements
- photoshop-python-api - Python API for Photoshop
- Model Context Protocol - MCP Python SDK
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file photoshop_mcp_server-0.1.7.tar.gz.
File metadata
- Download URL: photoshop_mcp_server-0.1.7.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
869b0e05ca5a3701d7d17031c188f91d1179a22af106dfdf6fc69b1ad602a3b4
|
|
| MD5 |
95b72ecbe9d23476f01743efe5822092
|
|
| BLAKE2b-256 |
a6dc66bdb14a33c12f9faf2fd8b685edd28460d23b24b17fb5dd049cc584c2b5
|
Provenance
The following attestation bundles were made for photoshop_mcp_server-0.1.7.tar.gz:
Publisher:
python-publish.yml on loonghao/photoshop-python-api-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photoshop_mcp_server-0.1.7.tar.gz -
Subject digest:
869b0e05ca5a3701d7d17031c188f91d1179a22af106dfdf6fc69b1ad602a3b4 - Sigstore transparency entry: 231979118
- Sigstore integration time:
-
Permalink:
loonghao/photoshop-python-api-mcp-server@796187d885b83d9b42d313c2fae582bd3a3294e9 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/loonghao
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@796187d885b83d9b42d313c2fae582bd3a3294e9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file photoshop_mcp_server-0.1.7-py3-none-any.whl.
File metadata
- Download URL: photoshop_mcp_server-0.1.7-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2b8253d8c194fd8e83195f5866e8c00a5fea472fe5a2b08be6e704955434474
|
|
| MD5 |
1cfc791eac217c1a5ce09609d8b19f5f
|
|
| BLAKE2b-256 |
f2a9e2cb17370676c4333cc67b150062c4da9cd647ce507cd6c9c24e07137d04
|
Provenance
The following attestation bundles were made for photoshop_mcp_server-0.1.7-py3-none-any.whl:
Publisher:
python-publish.yml on loonghao/photoshop-python-api-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photoshop_mcp_server-0.1.7-py3-none-any.whl -
Subject digest:
c2b8253d8c194fd8e83195f5866e8c00a5fea472fe5a2b08be6e704955434474 - Sigstore transparency entry: 231979122
- Sigstore integration time:
-
Permalink:
loonghao/photoshop-python-api-mcp-server@796187d885b83d9b42d313c2fae582bd3a3294e9 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/loonghao
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@796187d885b83d9b42d313c2fae582bd3a3294e9 -
Trigger Event:
push
-
Statement type: