Cursor + Substance 3D Painter: MCP Setup Guide
Cursor's Agent mode can call MCP tools, which means it can drive Adobe Substance 3D Painter while you keep your engine project open in the same window. This guide sets up MCP Pro for Painter in Cursor, explains the config file options, and shows prompts and project rules that keep the agent consistent.
Prerequisites
- Adobe Substance 3D Painter 11.0+ (Creative Cloud or Steam). Tested on 12.0.3 and 12.2.0.
- Python 3.10 to 3.12.
- Cursor with Agent mode available.
- The MCP Pro for Painter package from itch.io.
Nothing is installed inside Painter. The server talks to Painter's built-in remote scripting endpoint over HTTP on localhost:60041, and Cursor talks to the server over stdio.
Step 1: Start Painter with remote scripting
Painter only opens its scripting endpoint when launched with --enable-remote-scripting.
# Windows
"C:\Program Files\Adobe\Adobe Substance 3D Painter\Adobe Substance 3D Painter.exe" --enable-remote-scripting
# macOS
/Applications/Adobe\ Substance\ 3D\ Painter.app/Contents/MacOS/Adobe\ Substance\ 3D\ Painter --enable-remote-scripting
On Windows you can add the flag to a shortcut's Target field so you never forget it. Confirm the endpoint answers:
curl -s -X POST http://localhost:60041/run.json \
-H 'Content-Type: application/json' \
-d '{"command": "1+1", "type": "python"}'
Any JSON reply means Painter is listening. A refused connection means the flag is missing.
Step 2: Install the server
Unzip the package to a permanent location and install it into a virtual environment.
macOS and Linux:
cd ~/tools/mcp-pro-for-painter
python3 -m venv .venv
.venv/bin/pip install -e .
Windows (PowerShell):
cd C:\tools\mcp-pro-for-painter
python -m venv .venv
.venv\Scripts\pip install -e .
If you prefer uv, skip the venv entirely. uvx builds and caches the environment the first time Cursor starts the server.
Step 3: Add the server to Cursor
Where Cursor reads MCP config
| File | Scope | Use it when |
|---|---|---|
.cursor/mcp.json in the project | That workspace only | You want Painter tools only in your game or asset repo |
~/.cursor/mcp.json | Every workspace | You use Painter from many projects |
Automatic: painter-mcp-setup
From the activated venv, inside the project folder:
painter-mcp-setup configure --target Cursor
This writes the server entry into the first matching Cursor config, project-level first, then ~/.cursor/mcp.json. Run painter-mcp-setup paths to see every location it checks.
Manual: the uvx config
This is the sample shipped in examples/cursor_mcp_config.json:
{
"mcpServers": {
"mcp-pro-for-painter": {
"command": "uvx",
"args": [
"--from",
"/ABSOLUTE/PATH/TO/mcp-pro-for-painter",
"painter-mcp",
"--mode",
"default"
]
}
}
}
Manual: the venv config on Windows
Point command at the venv interpreter. Forward slashes work in JSON on Windows and avoid escaping backslashes:
{
"mcpServers": {
"mcp-pro-for-painter": {
"command": "C:/tools/mcp-pro-for-painter/.venv/Scripts/python.exe",
"args": ["-m", "server.main", "--mode", "full"]
}
}
}
On macOS and Linux the interpreter is .venv/bin/python.
Step 4: Choose a tool mode
Cursor's Dynamic Context Discovery means large tool lists no longer hit a hard limit, so --mode full is the recommended setting. If you notice the agent picking odd tools, or you are on an older Cursor build, step down:
defaultkeeps batch operations, baking, introspection, layer effects and project search, and drops the specialist modules such as shaders, color management and the smart material builder.litekeeps core layer, mask, material and export tools plus validation, engine export presets, anchors and events. It fits clients capped around 100 tools.minimalkeeps only the core texturing tools.
You can switch modes at any time by editing --mode and restarting Cursor.
Step 5: Restart and verify
- Quit Cursor completely and reopen it. Most clients only read MCP config at startup.
- Open Settings → MCP.
mcp-pro-for-paintershould be listed and enabled. If it shows an error, toggle it off and on once, then check the log. - Open an Agent chat and ask: "Call painter_connect and tell me the Painter version."
If the server is listed but painter_connect returns a ConnectionError, Cursor and the server are fine and Painter is the problem. Recheck Step 1.
painter-mcp-setup doctor runs every check from the terminal: Python version, mcp SDK, the server import, the Painter endpoint and the configs it finds.
Prompts that work well in Cursor
MCP tools are used by the Agent, not by inline edit or plain chat, so run these in Agent mode.
Read my Painter project and give me a table of texture sets with resolution, channel list and layer count.
Check every texture set against this budget: names starting with prop_ max 1024, weapon_ max 2048, char_ max 4096. List violations, then fix them after I confirm.
The second prompt uses validate_resolution_budget with {pattern, max_width, max_height} rules, then set_texture_set_resolution or batch_set_resolution for the fixes.
For each texture set, add a fill layer named BASE_Metal at the top, apply the smart material I name next, and rename any layer called "Layer N" to BASE_Untitled_N.
This combines add_fill_layer, apply_smart_material and batch_rename_layers. Use list_resources first if you are not sure of a smart material's exact shelf name.
Export all texture sets for Godot 4 into the textures/ folder of this workspace, using an absolute path.
Cursor knows your workspace path, so it can build the absolute output_path that export_for_godot requires.
Use project rules for texturing conventions
Cursor project rules, stored under .cursor/rules, are read by the agent in every chat in that workspace. They are a good place for the details you would otherwise repeat in every prompt:
Substance Painter conventions for this repo:
- Layer names must match ^(BASE|DETAIL|FX)_[A-Z][A-Za-z0-9]+$
- Resolution budget: prop_* 1024, weapon_* 2048, char_* 4096
- Export target: Unreal, packed ORM, TGA 8-bit, to D:/UE5/Project/Content/Textures/
- Always run audit_layer_stack before exporting and report problems first
- Never call execute_python unless I ask for it
With this in place, "export the weapons" is enough.
Painter and your engine project in one workspace
A big advantage of Cursor is that the agent can see your game project while it drives Painter. Open the engine project as the workspace, with a Unity Assets/ folder, a Godot project or an Unreal Content/ tree, and the agent can:
- read existing material or import files to see which texture names and channel layouts the project already expects;
- export from Painter straight into the right folder with an absolute path built from the workspace root;
- check the exported file list against what the engine side references, and tell you what is missing.
Look at how the existing crate material in this project references its textures, then export the Painter texture sets with the matching engine preset into the same folder and tell me if any exported file names differ from what the material expects.
The engine export guide covers which export tool matches each engine.
Safety settings
- Tool approval: Cursor can ask before running each MCP tool. Keep approval on for export tools, because they write to the absolute path they are given without a prompt in Painter.
--no-execute-arbitrary: removesexecute_pythonandexecute_js, the two tools that run raw code inside Painter. Every other tool keeps working.- Undo: layer changes are wrapped in scoped modifications, so each tool's edit is one Ctrl+Z step in Painter. Save before large batch prompts anyway.
Troubleshooting
Server not listed in Settings → MCP
Check that the JSON is valid. One trailing comma is enough to break the file. Confirm it is in the right place, either .cursor/mcp.json at the workspace root or ~/.cursor/mcp.json, then fully restart Cursor.
Server listed with an error
The command could not start. Run the exact command and args from your config in a terminal. A wrong interpreter path, or a venv without the package installed, shows up immediately. Add -vv to the args for debug logging.
Tools work, then time out
Painter is busy with a bake or export, or a modal dialog is open. Dismiss dialogs in Painter, use export_textures_async for long exports, and add --timeout 120 to the server args on slower machines.
Agent ignores the Painter tools
Make sure you are in Agent mode and the server is enabled. Naming a tool in the prompt, such as "use list_texture_sets", also nudges the agent toward MCP instead of searching your files.