MCP Server for Photoshop integration using photoshop-python-api
Project description
Photoshop MCP Server
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.
Requirements
- Windows OS only: This server uses COM interface which is only available on Windows
- Adobe Photoshop: Must be installed locally (tested with versions CC2017 through 2024)
- Python: Version 3.10 or higher
Installation
# 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": ["ps-mcp"],
"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
["ps-mcp"]to run the Photoshop MCP server
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
Basic Usage Example
Once configured in your MCP host, you can use the Photoshop MCP server in your AI assistant conversations.
Example conversation:
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".
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.1.tar.gz.
File metadata
- Download URL: photoshop_mcp_server-0.1.1.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bf5826a557dd25311ed8cbad597f0ab41f9b0d212bf304076b9d399f195ef94
|
|
| MD5 |
d58c42852c5d78e3d6ef1b76d6972f8a
|
|
| BLAKE2b-256 |
6b5b29d4fa7612608e5daee8d1036c82562c9f9d7844109b91505c5022312409
|
Provenance
The following attestation bundles were made for photoshop_mcp_server-0.1.1.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.1.tar.gz -
Subject digest:
0bf5826a557dd25311ed8cbad597f0ab41f9b0d212bf304076b9d399f195ef94 - Sigstore transparency entry: 195511941
- Sigstore integration time:
-
Permalink:
loonghao/photoshop-python-api-mcp-server@07e7f6600b7e668adfb7b2de036c1b1e9f99605f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/loonghao
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@07e7f6600b7e668adfb7b2de036c1b1e9f99605f -
Trigger Event:
push
-
Statement type:
File details
Details for the file photoshop_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: photoshop_mcp_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 26.3 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 |
44a5ef66a4dc4ace24e1797e18bbcd903b1661c76f0bf1001405bc842197ff2f
|
|
| MD5 |
0e2f070aaaa982547dce388a8f1c6a48
|
|
| BLAKE2b-256 |
3da6ec6e699a249f4649933915e94238dcc7b24b951d7a46692cd3241b59cde7
|
Provenance
The following attestation bundles were made for photoshop_mcp_server-0.1.1-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.1-py3-none-any.whl -
Subject digest:
44a5ef66a4dc4ace24e1797e18bbcd903b1661c76f0bf1001405bc842197ff2f - Sigstore transparency entry: 195511952
- Sigstore integration time:
-
Permalink:
loonghao/photoshop-python-api-mcp-server@07e7f6600b7e668adfb7b2de036c1b1e9f99605f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/loonghao
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@07e7f6600b7e668adfb7b2de036c1b1e9f99605f -
Trigger Event:
push
-
Statement type: