Set up MCP Pro for Sampler with Claude Code, Cursor or Claude Desktop
MCP Pro for Sampler has two parts: the MCP server sampler-mcp, a Python program your AI client starts, and the Sampler plugin sampler_mcp_bridge, a regular Substance 3D Sampler Python plugin that runs the commands inside Sampler. This guide installs both and connects your client. It follows INSTALL.md from the download and takes about ten minutes.
Requirements
- Adobe Substance 3D Sampler 6.0.x, licensed from Adobe. Verified: Sampler 6.0.4 on Windows 11. macOS: the install script follows Sampler's documented plugin folder but has not been tested. Sampler has no Linux version.
- Python 3.10 or later for the server (
python --version). The plugin itself runs on Sampler's embedded Python. - An MCP client: Claude Code, Cursor, Claude Desktop, Windsurf, Cline, or another client that can start a local stdio server.
Unzip the download to a permanent place, for example D:\tools\mcp-pro-for-sampler. The AI client runs the server from there.
mcp-pro-for-sampler-v0.1.0/
server/ MCP server (Python package)
plugin/sampler_mcp_bridge/ Sampler plugin
scripts/ plugin install scripts
examples/ scripted use without an AI client
README.md INSTALL.md CHANGELOG.md SECURITY.md LICENSE
1. Install the MCP server
Create a virtual environment in the unpacked folder and install the package into it:
python -m venv .venv
.venv\Scripts\pip install .
.venv\Scripts\sampler-mcp --version
macOS:
python3 -m venv .venv
.venv/bin/pip install .
.venv/bin/sampler-mcp --version
This also installs sampler-cli, a small command-line client for checking the connection.
2. Install the Sampler plugin
Sampler loads plugins only at start-up, from <Documents>\Adobe\Adobe Substance 3D Sampler\plugins\. The install script copies the plugin there:
powershell -ExecutionPolicy Bypass -File scripts\install_plugin.ps1
Your Documents folder is resolved through Windows, so a OneDrive-redirected Documents folder works. Options: -PluginsDir <path>, -Dev (a junction for plugin development), -Uninstall. On macOS (untested): bash scripts/install_plugin.sh, which copies to ~/Documents/Adobe/Adobe Substance 3D Sampler/plugins/.
By hand: copy the folder plugin/sampler_mcp_bridge with everything inside into the plugins folder, so that plugins/sampler_mcp_bridge/sampler_mcp_bridge.py exists. Then restart Sampler; there is no plugin hot reload.
3a. Claude Code
Use the absolute path of sampler-mcp in your virtual environment:
claude mcp add sampler -- D:/tools/mcp-pro-for-sampler/.venv/Scripts/sampler-mcp.exe --mode default
On macOS the path ends in .venv/bin/sampler-mcp. Run claude mcp list to see the entry.
3b. Cursor
Cursor reads ~/.cursor/mcp.json, or .cursor/mcp.json in a project:
{
"mcpServers": {
"sampler": {
"command": "D:/tools/mcp-pro-for-sampler/.venv/Scripts/sampler-mcp.exe",
"args": ["--mode", "default"]
}
}
}
3c. Claude Desktop
Add the same mcpServers entry to claude_desktop_config.json and restart Claude Desktop.
3d. Windsurf, Cline and others
Most MCP clients use the same command + args shape. They have not been individually tested. Two things matter for Sampler:
- Tool caps. If your client caps or warns about the number of tools, use
--mode lite(52 tools) or--mode minimal(22 tools). - Timeouts. AI image-to-material, batch recipes and big exports can take minutes. If your client has a short tool timeout, raise it.
4. Check the connection
Start Sampler. Then:
~/.sampler_mcp_pro/bridge.jsonappears (port, token, pid)..venv\Scripts\sampler-cli statusprints Sampler's version and whether a project is open.curl http://127.0.0.1:60071/healthreturns{"ok": true, ...}.- Optional: in Sampler, the
sampler_mcp_bridgepanel (Window > Plugins) shows the bridge status. The bridge runs whether the panel is open or not.
In your client, ask it to call sampler_connect. It reports Sampler's version, the bridge version, whether a project is open and any visible Sampler dialogs.
NoProject, even if a project is loaded in the background. Create or open one (create_project / open_project) or switch back to it in Sampler.5. Pick a mode
| Mode | Tools | For |
|---|---|---|
minimal | 22 | project, catalogue, layers, parameters, import, preview, export, the two main recipes |
lite | 52 | everyday work; well under the ~100-tool cap of some clients |
default | 64 | everything except plugin-development tools |
full | 65 | adds reload_bridge |
The mode is a server argument (--mode lite, or "args": ["--mode", "lite"]). There is no code-execution tool in any mode. Other options: --port N (default from bridge.json, else 60071), --timeout S (default 120 s per call; long tools use more), -v / -vv for logs on stderr.
6. First prompts
- "Make a tileable material from
D:/photos/wall.jpgand export it for Godot intoD:/game/materials. Show me the maps." - "Turn every photo in
D:/scans/barkinto a material namedM_Bark_<n>and export them for Unreal." - "Take the Concrete Cast material, add heavy dirt and cracks, show it, then give me four variations."
- "The roughness looks too uniform - add a Dirt filter only on roughness and check the tiling seams."
Sampler's Python API has no undo. Save the project before big experiments and ask the AI to take a snapshot_parameters first.
Updating and uninstalling
Update: install the new server (pip install . again) and the new plugin (run the install script again), then restart Sampler. sampler_connect shows bridge.bridge_version.
Uninstall: scripts\install_plugin.ps1 -Uninstall (or delete the plugins\sampler_mcp_bridge folder), delete the .venv, optionally ~/.sampler_mcp_pro, and remove the server entry from your client.
Troubleshooting
- "Cannot reach the Sampler bridge": Sampler is not running, or it was started before the plugin was installed (restart it), or the plugin folder is not where Sampler looks. Sampler's log (
%LOCALAPPDATA%\Adobe\Adobe Substance 3D Sampler\log.txt) shows plugin load errors; a plugin folder without its.qmlfile fails to load. - NoProject: Sampler shows its Home screen. Create or open a project, or switch back to it.
- "Sampler did not write the project file": Sampler does not save a project without assets, and refuses
save_projectwhile the selected asset has no layers. Add a layer, then save. - Port in use: the bridge moves to 60072-60080 automatically; if you pinned
SAMPLER_MCP_PORT, pass the same--porttosampler-mcp. - TimeoutError: AI filters and big exports take time;
get_bridge_statusshows what is running. If Sampler shows a dialog, answer it in Sampler. - After a Sampler crash, Sampler asks at the next start whether to restore the previous project. The dialog does not block the tools, but answer it.
Get MCP Pro for Sampler
$12 once on itch.io (Early Access), updates included.