Photos to materials, by asking
MCP Pro for Sampler connects Claude Code, Cursor and other MCP clients to Adobe Substance 3D Sampler. The AI turns photos into tileable PBR materials, builds and tunes layer stacks, weathers materials, makes variations and exports them for Unreal, Unity, Godot, Blender, glTF, Painter and Designer, and looks at the maps after each step. 65 tools, no code execution.
Early Access, buy once, updates included. Verified on Sampler 6.0.4, Windows 11.
recipe_photo_to_material output from the live test, as the model sees it. Input: a synthetic stone-wall test image. Unretouched.How it works
Two parts: a Python MCP server that your AI client starts, and a regular Sampler Python plugin that runs each command through Sampler's own Python API.
MCP client --stdio--> sampler-mcp (Python MCP server)
|
| HTTP JSON on 127.0.0.1:60071, per-session token
v
Sampler Python plugin "sampler_mcp_bridge"
-> commands run on a worker thread; every Sampler API call
is passed to Sampler's UI thread
-> Sampler 6.0 Python API + Qt for previews, command log
The plugin starts a localhost-only HTTP bridge inside Sampler with a per-session token. Commands run on a worker thread and every Sampler API call is passed to Sampler's UI thread, so Sampler stays fully interactive and you can watch and keep working by hand. Every command is written to a command log. There is no arbitrary-code tool.
What the AI can do in Sampler
Grouped by area. Tool names are the ones your AI client sees.
Sees the material
Map contact sheets come back to the model as images; Sampler's 3D view or window can be captured; texture stats report value ranges and tiling seam ratios per axis.
get_material_preview get_viewport_capture get_texture_statsPhoto to material
Sampler's AI Image to Material or classic B2M, multi-angle capture, HDR merge, environment images, bitmaps and channel sets, with resolution, crop, upscale and physical size options.
import_images import_textures recipe_photo_to_materialLayer stacks
All of Sampler's filters (delighters, content-aware fill, auto tiling, equalize, weathering, structures, finishes, blends) and catalogue materials; insert anywhere, replace, remove, flatten, presets, channel restrictions, blend modes.
add_filter add_material replace_layer apply_layer_preset set_layer_channels set_layer_blend_modeParameters
Typed get/set for every layer, blend and texture-generator parameter: sliders clamped to their range, colours as #rrggbb, vectors, options by name, toggles; random seeds; expose parameters to the exported .sbsar.
get_parameters set_parameters set_texture_generator set_random_seed expose_parameterSnapshots instead of undo
Sampler's API has no undo, so parameter values can be remembered and put back; destructive tools ask for confirm=true.
snapshot_parameters restore_parameters list_snapshotsCatalogue
Search filters (with categories), materials, texture generators and export presets; describe an item's parameters before using it; import .sbsar files.
search_filters search_materials search_texture_generators describe_catalog_item import_resourceProjects and assets
Create, open, save and save as (the file is checked); create assets (ASM / OpenPBR, presets, channels), select, rename, delete, resolution, channels, metadata.
create_project save_project_as create_asset set_asset_resolution set_asset_metadataExport
PNG, JPG, TGA, TIF and EXR maps, .sbsar, .sbs, all of Sampler's export presets, all assets at once, plus engine layouts the bridge builds itself (Godot and glTF ORM packing with OpenGL normals).
export_material export_all_assets recipe_engine_exportRecipes
Photo to tileable material, a folder of photos, weathering, variations and engine export, one call each.
recipe_photo_to_material recipe_batch_photos recipe_weathering recipe_variations recipe_engine_exportConnection and safety
Connection status (incl. visible Sampler dialogs), command log, Sampler's log, render cache; localhost only, per-session token, no code execution.
sampler_connect get_bridge_status get_audit_log get_sampler_logOne-call recipes
Common jobs in a single tool call. The pictures are the real output of the live test run on Sampler 6.0.4 (Windows 11), made from synthetic test images.


A photo becomes a tileable PBR material
A new asset with AI Image to Material (or B2M), Delighter (AI Powered) and Equalize on the photo and Sampler's Tiling filter on top (or Auto Tiling, Make It Tile, none). It waits for the computation, measures the tiling seams, exports in an engine layout and returns a preview of the maps.
recipe_photo_to_material(image="D:/photos/wall.png",
name="M_Wall", resolution=1024,
engine="godot", export_dir="D:/game/materials")
Weather a material
Stacks dirt, dust, rust, moss, snow, corrosion, oxidation, cracks, scratches, splatter, stains, wet, erosion or gum filters, picks each filter's light or heavy preset for the strength, sets seeds and returns a preview. Tune afterwards with set_parameters.
recipe_weathering(effects=["dirt", "moss"],
strength="heavy", seed=5)
N variations, original restored
New seeds on every layer (and optional hue shifts), each variation exported if you ask, all shown as one contact sheet. The original parameters are restored afterwards and the seeds are reported so a variation can be reproduced.
recipe_variations(count=3, vary_color=True,
export_dir="D:/out/variations",
export_size=256, seed=3)
A folder of photos, one material each
The photo-to-material pipeline for every photo in a folder, with a naming template such as M_{stem}, one export folder per material and a contact sheet of the results.
recipe_batch_photos(folder="D:/scans/walls",
export_dir="D:/out", engine="gltf",
name_template="M_{stem}")
Engine-ready export
One or all assets as unreal, unity_hdrp, unity, blender, godot, gltf, painter (OpenGL maps + .sbsar), designer (.sbsar + .sbs) or sbsar. Shown: the Unreal layout from the live run.
recipe_engine_export(engine="unreal",
directory="D:/ue/Textures", size=256)Guides: Photo to tileable PBR material in Substance 3D Sampler with AI · Weathering, layer stacks and variations in Sampler with AI · Export Sampler materials for Unreal, Unity, Godot, Blender and glTF
Straight from the tools
Unretouched inputs and exports from the live test run. Each caption says which tool made it.



Demo
Screen recordings of the AI working in Sampler.
Modes and tool caps
Some clients cap or slow down with many tools. Pick a mode when you register the server. No mode has a code-execution tool.
| 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 | everything, plus reload_bridge |
Details: setup guide, modes.
Supported clients
Any MCP client that can start a local stdio server. Configs for the first three are in the setup guide.
claude mcp add sampler -- <path>/.venv/Scripts/sampler-mcp.exe~/.cursor/mcp.json or a project .cursor/mcp.jsonclaude_desktop_config.json--mode lite for tool caps.Install outline
About ten minutes. Full instructions ship in the download (INSTALL.md); the setup guide walks through every step.
Install the MCP server (Python 3.10+)
python -m venv .venv
.venv\Scripts\pip install .macOS: python3 -m venv .venv and .venv/bin/pip install .
Install the Sampler plugin and restart Sampler
powershell -ExecutionPolicy Bypass -File scripts\install_plugin.ps1It copies sampler_mcp_bridge into Documents\Adobe\Adobe Substance 3D Sampler\plugins\. Sampler loads plugins only at start-up.
Register the server with your AI client
claude mcp add sampler -- D:/tools/mcp-pro-for-sampler/.venv/Scripts/sampler-mcp.exeOpen a project in Sampler and ask
Try "Make a tileable material from D:/photos/wall.jpg and export it for Godot into D:/game/materials. Show me the maps."
Requirements: Adobe Substance 3D Sampler 6.0.x (verified on 6.0.4, Windows 11; macOS untested; Sampler has no Linux version) and Python 3.10 or later for the server.
What to expect in 0.1.0 (Early Access)
- Verified live on Sampler 6.0.4 on Windows 11 against the plugin installed from the release zip: all 65 tools called, every one succeeded at least once. macOS has an install script but is untested.
- No undo: Sampler's Python API has none. Use parameter snapshots, save before big changes; delete and flatten need
confirm=true. - No layer reorder or rename in the API; a blend-mode change replaces the layer and restores its parameters.
- Tools refuse while Sampler shows its Home screen, even if a project is loaded in the background. Import modes (AI, B2M, multi-angle, HDR merge, environment) apply to empty assets, so the tools create a new asset for them.
- Viewport capture is a screenshot of Sampler's UI, so dialogs and notifications on top are captured too.
- Assets made through the tools also appear in Sampler's material library (Sampler behaviour).
- AI filters and big exports take tens of seconds; raise your client's tool timeout if it is short.
- Later updates are included for buyers.
FAQ
What is MCP Pro for Sampler?
Does it add its own image AI?
Which Sampler versions and operating systems are supported?
Do I need my own Sampler licence?
Which AI clients work?
Can the AI see the material?
Can I undo what the AI did?
How long do the operations take?
Is it safe to run?
How much is it, and is there a subscription?
Questions, bug reports, feature requests: MCP Pro Discord.
Guides
Step-by-step articles. All guides
Buy once on itch.io. Every later update is included.
Buy MCP Pro for Sampler- MCP server with 65 tools in 10 areas
- Four modes: minimal 22, lite 52, default 64, full 65
- Sampler plugin for Sampler 6.0.x with a status panel
- 5 recipes: photo to material, batch photos, weathering, variations, engine export
- Install scripts, setup instructions and an example
- Updates included; licence terms are in the download
More MCP Pro tools
Same idea, other apps. Make the material in Sampler, paint with it in Painter, build procedural graphs in Designer, use it in your engine.