This MCP server implementation adds Photoshop host integration to the broader Model Context Protocol ecosystem. It allows Photoshop to communicate with LLM providers via the MCP protocol, enabling Photoshop to request text completions and other model services while preserving context about the user's current work environment.
You can install the MCP Photoshop server using npm:
npm install -g @adobe/mcp-photoshop
Alternatively, you can clone the repository and build the server locally:
git clone https://github.com/adobe/mcp-photoshop.git
cd mcp-photoshop
npm install
npm run build
The MCP Photoshop server uses environment variables for configuration:
PORT
: The port number on which the server will listen (default: 3000)OPENAI_API_KEY
: Your OpenAI API key (if using OpenAI as the model provider)ANTHROPIC_API_KEY
: Your Anthropic API key (if using Anthropic as the model provider)AZURE_OPENAI_API_KEY
: Your Azure OpenAI API key (if using Azure as the model provider)AZURE_OPENAI_ENDPOINT
: Your Azure OpenAI endpoint URLYou can set these variables in a .env
file in the root directory of the project or use your system's method for setting environment variables.
Alternatively, you can configure the server using a JSON configuration file. Create a config.json
file:
{
"port": 3000,
"providers": {
"openai": {
"apiKey": "your-api-key"
},
"anthropic": {
"apiKey": "your-api-key"
},
"azure": {
"apiKey": "your-api-key",
"endpoint": "your-endpoint-url"
}
}
}
To start the server, run:
mcp-photoshop
If you've cloned the repository locally:
npm start
With a custom configuration file:
mcp-photoshop --config=/path/to/config.json
The server accepts the following command-line options:
--port, -p
: Specify the port to listen on--config, -c
: Path to a configuration file--verbose, -v
: Enable verbose loggingExample:
mcp-photoshop --port=4000 --verbose
Once the server is running, you can configure Photoshop to connect to it:
http://localhost:3000
)After connecting Photoshop to the MCP server, you can access LLM features in Photoshop:
If Photoshop can't connect to the MCP server:
http://localhost:3000/health
in your browserIf you encounter API authorization errors:
The server logs can be helpful for troubleshooting:
--verbose
flag, more detailed logs will be displayedThere are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.