Skip to main content

MCP Server for Photoshop integration using photoshop-python-api

Project description

Photoshop MCP Server

PyPI Version PyPI Downloads Build Status License Python Version Platform GitHub stars GitHub issues GitHub last commit

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": ["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 uvx for the standard approach
  • args: Use ["photoshop-mcp-server"] to run the Photoshop MCP server

Key Features

Available Resources

  • photoshop://info - Get Photoshop application information
  • photoshop://document/info - Get active document information
  • photoshop://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.

Photoshop MCP Server Demo

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

photoshop_mcp_server-0.1.2.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

photoshop_mcp_server-0.1.2-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file photoshop_mcp_server-0.1.2.tar.gz.

File metadata

  • Download URL: photoshop_mcp_server-0.1.2.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

Hashes for photoshop_mcp_server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cfffa7e14ef17c6365e91a743e4b9bd17a1805c0a3d70b31deee473fb88dee3c
MD5 f07f2dac8835ce6fe78ed827376350f6
BLAKE2b-256 ce368fc74cd3703e1efb6fd966213b059baf5dbbf07ef809991e76ec717256dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for photoshop_mcp_server-0.1.2.tar.gz:

Publisher: python-publish.yml on loonghao/photoshop-python-api-mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file photoshop_mcp_server-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for photoshop_mcp_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b3141e794c06a39f66fe17bc414e9d39623ee2eedf6ba31b81e7ed1f5492fa5
MD5 82dcc985b3c280ed57f396b9fedab804
BLAKE2b-256 5e8c64441ae7a974766471e792a4a57a247a1131faec4b75caf2ea492c678525

See more details on using hashes here.

Provenance

The following attestation bundles were made for photoshop_mcp_server-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on loonghao/photoshop-python-api-mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page