Logo vun Substance Designer MCP

Substance Designer MCP

Communautéit
matthieuhuguet

The first MCP (Model Context Protocol) integration for Adobe Substance 3D Designer. Control SD from Claude, Cursor, or any MCP client.

Editeurmatthieuhuguet
Repositorysubstance-designer-mcp
SproochPython
Forks
12
Stären
59
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Substance Designer MCP stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    59 Stären an 12 Forks aus dem verlinkte Repository.

Substance Designer MCP

The first MCP (Model Context Protocol) integration for Adobe Substance 3D Designer.

Control Substance Designer from any MCP-compatible AI client (Claude Code, Claude Desktop, Cursor) — create graphs, build nodes, connect them, set parameters, generate full PBR material graphs from a single prompt.


What it does

  • Natural language → SD graph: "Create a cracked concrete material" → 44-node PBR graph with height, normal, roughness, AO, baseColor, metallic outputs
  • 79 built-in material recipes: pro-grade materials using the same node architecture as professional SD artists
  • 16 MCP tools: get scene info, create/delete graphs, create nodes, connect nodes, set parameters, build full materials in one call
  • Library node support: Clouds, Cells, Perlin Noise, Polygon, Edge Detect, Flood Fill, Multi-Directional Warp, etc.
  • Thread-safe: All SD API calls dispatched to Qt main thread via Signal/Slot queued connection

Architecture

AI Client (Claude / Cursor)
        │  stdio (MCP protocol)
        ▼
sd_mcp_bridge.py  (FastMCP server, Python 3.12)
        │  TCP localhost:9881 (length-prefix framing)
        ▼
SD Plugin __init__.py  (Python 3.11, runs inside SD)
        │  sd.api
        ▼
Adobe Substance 3D Designer 15.x

The bridge and plugin communicate with a simple length-prefix framing protocol: [4-byte big-endian length][JSON payload]. Each command uses a fresh TCP socket — no persistent connection, no stale state.


Requirements

  • Adobe Substance 3D Designer 15.x (tested on 15.0.3)
  • Python 3.12+ for the bridge (managed via uv)
  • uv package manager: pip install uv or winget install astral-sh.uv
  • An MCP-compatible client: Claude Code, Claude Desktop, or Cursor

Installation

Step 1 — Install the SD Plugin

Copy the plugin/ folder contents to your SD user scripts directory:

Windows:

%USERPROFILE%\Documents\Adobe\Adobe Substance 3D Designer\python\sduserplugins\sd_mcp_plugin\

The directory must contain:

sd_mcp_plugin/
├── __init__.py    ← main plugin (TCP listener, all MCP tools)
└── recipes.py     ← 79 material recipes

SD auto-loads all plugins from sduserplugins/ on startup. No additional configuration needed.

Step 2 — Install the Bridge Server

bash
cd server/
uv sync   # installs mcp[cli] into .venv

Or with pip:

bash
pip install "mcp[cli]>=1.4.1"

Step 3 — Configure Your MCP Client

Claude Code (~/.claude/settings.json):

json
{
  "mcpServers": {
    "substance_designer": {
      "command": "C:\\Users\\YOUR_USERNAME\\.local\\bin\\uv.exe",
      "args": [
        "run",
        "--directory",
        "C:\\PATH\\TO\\substance-designer-mcp\\server",
        "python",
        "sd_mcp_bridge.py",
        "--port",
        "9881"
      ]
    }
  }
}

See config/ folder for Claude Desktop and Cursor examples.

Step 4 — Start SD before your AI client

SD must be running before the MCP bridge starts. The plugin binds TCP port 9881 on SD startup. If SD is not running when Claude/Cursor launches, the bridge will fail to connect.


Usage

Once connected, you can ask your AI client to:

Build a weathered steel material with surface oxidation
Create a cliff heightmap with high detail and disorder
Make a new graph called MyRock, add a clouds node and a slope blur, connect them
List all available material recipes

Available MCP Tools

ToolDescription
get_scene_infoList all open packages and graphs
create_graphCreate a new compositing graph
get_graph_infoGet all nodes and connections in a graph
list_node_definitionsSearch available node types
create_nodeCreate an atomic node (blend, levels, blur, etc.)
create_instance_nodeCreate a library node (Clouds, Cells, Perlin, etc.)
create_output_nodeCreate a PBR output (baseColor, normal, height, etc.)
connect_nodesConnect two nodes via their ports
disconnect_nodesRemove a connection
set_parameterSet a node parameter
get_node_infoGet ports and parameters of a node
delete_nodeDelete a node
move_nodeReposition a node
duplicate_nodeDuplicate an atomic node
delete_graphDelete a graph from a package
open_graphOpen a graph in the SD editor
save_packageSave the package to disk
execute_sd_codeExecute arbitrary Python in SD's context
build_material_graphBuild a full PBR material in one call
build_heightmap_graphBuild a heightmap-only graph in one call
list_recipesList all 79 available material recipes
get_recipe_infoGet details about a specific recipe
apply_recipeApply a recipe to an existing graph

Material Recipes

python
build_material_graph(graph_name="MySteel", recipe_name="pro_steel")
# → 37-node PBR graph: height + normal + roughness + AO + baseColor + metallic

build_heightmap_graph(graph_name="CliffHM", style="cliff", detail_level=3, scale=5.0, disorder=0.5)
# → 9-node heightmap graph

Pro recipes (37–44 nodes, professional architecture): pro_granite, pro_limestone, pro_sandstone, pro_basalt, pro_slate, pro_steel, pro_iron, pro_copper, pro_concrete, pro_concrete_aged, pro_concrete_smooth

Core materials: steel, iron, copper, gold, silver, aluminum, brass, granite, marble, sandstone, limestone, slate, basalt, wood, wood_oak, moss, bone, leather, fabric_cotton, fabric_silk, fabric_wool, fabric_denim, fabric_burlap, sand, mud, gravel, clay, soil, ice, snow, frost, water, diamond, ruby, sapphire, emerald, amethyst, concrete, brick, lava, asphalt, plaster, tile, painted_metal, carbon_fiber, terracotta, obsidian, ...

Heightmap styles: cliff, rock, sand, cracked, mud, mountain, cobblestone, terrain


Critical Rules (SD 15.x)

These are hard constraints of the SD 15.x API — violating them hangs or crashes SD:

  • ONE tool call at a time — never parallel calls to SD tools
  • SDUsage.sNew() hangs SD 15 permanently — removed from plugin
  • newNode(unknown_definition) hangs SD 15 permanently — plugin validates before calling
  • arrange_nodes() destroys all connections — use move_node() instead
  • Library node outputs are never "unique_filter_output" — always call get_node_info first
  • directionalwarp warp-map port = "inputintensity" (NOT inputgradient)
  • Wrong port ID in connect_nodes = crash — plugin validates before calling SD

Known Library Node Ports (SD 15.0.3)

NodeOutputKey Inputs
clouds_2outputscale, disorder
cells_1outputscale, disorder
perlin_noiseoutputscale, disorder
polygon_2outputSides, Scale, Gradient
gradient_linear_1Simple_GradientTiling, rotation
gradient_axialoutputpoint_1, point_2
slope_blur_grayscale_2Slope_BlurSamples, Source, Effect
blur_hq_grayscaleBlur_HQIntensity, Source
non_uniform_blur_grayscaleNon_Uniform_BlurIntensity, Anisotropy, Source
edge_detectoutputedge_width, tolerance, input
flood_filloutputmask
flood_fill_to_gradient_2outputangle, input, angle_input
flood_fill_to_grayscaleoutputluminance_random, input
multi_directional_warp_grayscaleoutputintensity, directions, input, intensity_input
highpass_grayscaleHighpassRadius, Source
histogram_scanOutputPosition, Contrast, Input_1
invert_grayscaleInvert_GrayscaleSource
crystal_1outputscale, disorder

Troubleshooting

Bridge can't connect to SD:

  • Make sure SD is running and fully loaded before launching your AI client
  • Check SD logs: %LOCALAPPDATA%\Adobe\Adobe Substance 3D Designer\log.txt (look for [SD-MCP])
  • Verify the plugin is in the correct sduserplugins directory

SD hangs after a command:

  • A bad node definition was likely used. Restart SD.
  • The plugin validates node definitions before calling SD, but library nodes need correct pkg:// URLs.

Wrong port:

  • Plugin listens on 9881 by default. Bridge must use --port 9881.

Plugin not loading:

  • Delete __pycache__/ in the plugin directory and restart SD.

License

MIT License — see LICENSE


Author

Built by matthieuhuguet / ZenRay — first MCP integration for Substance Designer.

Pro recipe architecture based on deep analysis of professional Substance Designer node graph patterns: clouds_2 → slope_blur → edge_detect → flood_fill → multi_directional_warp → directionalwarp chains.


Contributing

PRs welcome. Key areas for improvement:

  • More material recipes
  • Color graph support (currently height/grayscale focused)
  • Windows + macOS path handling for plugin install
  • Auto-install script for the SD plugin

Installatioun

TypingMind
{
  "mcpServers": {
    "substance-designer-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "{{config.SERVER_PATH}}",
        "python",
        "sd_mcp_bridge.py",
        "--port",
        "9881"
      ],
      "env": {
        "SERVER_PATH": "<SERVER_PATH>"
      }
    }
  }
}

Substance Designer MCP MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Substance Designer MCP verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Substance Designer MCP als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Substance Designer MCP an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "substance-designer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Substance Designer MCP. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Substance Designer MCP.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Substance Designer MCP?
Substance Designer MCP
Jo. Ech hunn et gelies.
Dat hunn ech mat Substance Designer MCP fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Substance Designer MCP benotzt?

Substance Designer MCP ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Substance Designer MCP MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Substance Designer MCP mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Substance Designer MCP MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Substance Designer MCP verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Substance Designer MCP MCP mat TypingMind?

Substance Designer MCP leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Substance Designer MCP MCP an TypingMind zur Verfügung?

Substance Designer MCP stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Substance Designer MCP MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Substance Designer MCP eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇