Cursor + Substance 3D Painter: MCP Setup Guide

Updated 2026-11-27 · MCP Pro for Painter v1.2 · Tested with Substance 3D Painter 12.0.3 and 12.2.0

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

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

FileScopeUse it when
.cursor/mcp.json in the projectThat workspace onlyYou want Painter tools only in your game or asset repo
~/.cursor/mcp.jsonEvery workspaceYou 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:

You can switch modes at any time by editing --mode and restarting Cursor.

Step 5: Restart and verify

  1. Quit Cursor completely and reopen it. Most clients only read MCP config at startup.
  2. Open Settings → MCP. mcp-pro-for-painter should be listed and enabled. If it shows an error, toggle it off and on once, then check the log.
  3. 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:

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

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.