Skip to main content
Glama
README.md
<p align="center"><img src="icon.png" width="120" alt="TextureCraft Bridge icon"></p>

<h1 align="center">TextureCraft MCP Server</h1>

<p align="center">
  <b>English</b> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <a href="README.fr.md">Français</a> · <a href="README.de.md">Deutsch</a> · <a href="README.ru.md">Русский</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.ko.md">한국어</a>
</p>

<p align="center">
  Let Claude texture 3D models with the <b>TextureCraft</b> installed on your computer — <b>Windows, macOS and Linux</b>:<br>
  fills, procedural patterns, built-in materials, pictures and decals on your meshes, baked mesh maps, and textures for glTF, Unreal, Unity, Blender and Godot.
</p>

---

## Why

[TextureCraft](https://github.com/storytold/texturecraft) is an open-source, Substance Painter-class 3D texture painter with a headless CLI (`texturecraft-cli`), GPU baking and path tracing, and an MCP mode. This [Model Context Protocol](https://modelcontextprotocol.io) server turns it into **file-in / file-out tools** for Claude, so you can ask things like:

> *"Texture this crate.glb with painted blue metal and rust, and export glTF textures and the GLB."*
> *"Bake ambient occlusion and curvature for this mesh and export Unreal packed maps."*
> *"Put this logo on the box with a triplanar projection."*
> *"Render this .tcraft project from the front and the side."*

Sibling of [designcraft-mcp-server](https://github.com/jhonsu01/designcraft-mcp-server), [effectcraft-mcp-server](https://github.com/jhonsu01/effectcraft-mcp-server), [lightcraft-mcp-server](https://github.com/jhonsu01/lightcraft-mcp-server), [photocraft-mcp-server](https://github.com/jhonsu01/photocraft-mcp-server), [vectorcraft-mcp-server](https://github.com/jhonsu01/vectorcraft-mcp-server), [filmcraft-mcp-server](https://github.com/jhonsu01/filmcraft-mcp-server), [pdfcraft-mcp-server](https://github.com/jhonsu01/pdfcraft-mcp-server), [wordcraft-mcp-server](https://github.com/jhonsu01/wordcraft-mcp-server), [soundcraft-mcp-server](https://github.com/jhonsu01/soundcraft-mcp-server), [deckcraft-mcp-server](https://github.com/jhonsu01/deckcraft-mcp-server), [gridcraft-mcp-server](https://github.com/jhonsu01/gridcraft-mcp-server), [figcraft-mcp-server](https://github.com/jhonsu01/figcraft-mcp-server), [anicraft-mcp-server](https://github.com/jhonsu01/anicraft-mcp-server), [materialcraft-mcp-server](https://github.com/jhonsu01/materialcraft-mcp-server), [solidcraft-mcp-server](https://github.com/jhonsu01/solidcraft-mcp-server), [mailcraft-mcp-server](https://github.com/jhonsu01/mailcraft-mcp-server) and [audacity-mcp-server](https://github.com/jhonsu01/audacity-mcp-server).

## Platforms

| OS | TextureCraft package to install | Where the server finds it (no setup needed) | Status |
| --- | --- | --- | --- |
| **Windows** 10/11 (x64, x86, arm64) | MSI or portable zip | `C:\Program Files\TextureCraft`, `C:\Program Files\ArtCraft\TextureCraft`, `%LOCALAPPDATA%\Programs\TextureCraft`, `PATH` | ✅ Verified (Windows 11) |
| **Linux** (x86_64, aarch64, riscv64) | `.deb`, `.rpm` or `.tar.gz` | `/usr/bin`, `/usr/local/bin`, `/opt/texturecraft/bin`, `~/.local/bin`, `PATH` | ✅ Verified (Debian 12, headless) |
| **macOS** 11+ (Apple silicon and Intel) | `.dmg` (the app) **plus** `texturecraft-cli-<version>-macos-universal.zip` | `/Applications/TextureCraft.app`, `/usr/local/bin`, `/opt/homebrew/bin`, `~/.local/bin`, `~/bin`, `PATH` | 🟡 Supported, not yet tested on a Mac |

All downloads: [TextureCraft releases](https://github.com/storytold/texturecraft/releases) (there is also a FreeBSD tar.gz; set `TEXTURECRAFT_DIR` to it). Anywhere else: set `TEXTURECRAFT_DIR` (folder, `.tar.gz` root or `TextureCraft.app`) or `TEXTURECRAFT_CLI`.

- **macOS:** the DMG contains only the app. Unzip the separate `texturecraft-cli` zip and move `texturecraft-cli` to `/usr/local/bin` (or point `TEXTURECRAFT_CLI` at it). The first run checks Apple's notarization online.
- **Linux:** the AppImage and Flatpak contain only the app, not `texturecraft-cli`; use the deb, rpm or tar.gz. For an AppImage app, set `TEXTURECRAFT_APP` so `open_in_texturecraft` can start it. On a server without a GPU, the verified setup used `libxkbcommon0 libvulkan1 libegl1 mesa-vulkan-drivers libasound2 fontconfig`.

## How it works

| Part | What it is |
| --- | --- |
| **TextureCraft engine** (`texturecraft-cli mcp`) | TextureCraft's own engine: mesh import, texture sets, the layer stack (fills, materials, images, decals, masks), GPU bakers, the real-time and path-traced renderers and the texture exporters. Started fresh for each job, confined to a private temporary folder, and never touches the TextureCraft app. |
| **MCP server** (Node.js) | 8 high-level tools. Textures a mesh from a list of layers, bakes, exports with an engine preset and the mesh, and returns a 3D render. |

## Tools

| Tool | What it does |
| --- | --- |
| `texture_model` | A built-in mesh, your mesh or a .tcraft project, then layers from the bottom up: fills (colour, roughness, metallic, procedural patterns), built-in materials or .tcmat / .mcmat / .mcraft files, projected pictures and decals; optional baking; saved as .tcraft, textures (engine preset) and glb / obj / usdz |
| `export_textures` | One project, a list or a folder → textures with a preset (glTF, Unreal, Unity, Blender, Godot, OpenPBR, separate maps, mesh maps) and the mesh (glb, obj, usdz, usda, usdc) |
| `render_model` | Pictures from up to 4 angles, real-time or path traced, or the UV view |
| `get_model_info` | Mesh (triangles, vertices, materials), texture sets, baked maps and the layer stack |
| `list_texturecraft_catalog` | Engine commands, built-in materials, patterns, export presets and meshes |
| `run_texturecraft_commands` | Any engine command plus `project_new`, `paint_stroke`, `bake`, `material_load`... in one session (`$steps[N].field` references), then save |
| `open_in_texturecraft` | Open projects and meshes in the TextureCraft app |
| `get_texturecraft_status` | Platform, installation, version, commands and materials |

| | |
| --- | --- |
| **Reads** | .tcraft, glb, gltf, fbx, dae, usd / usda / usdc / usdz, abc, obj, ply, stl; pictures (png, jpg, tga, tif, webp, exr, hdr); .tcmat, .mcmat, .mcraft materials |
| **Writes** | .tcraft, textures (png, jpg, tga, tif, exr) with engine presets, glb, obj, usdz, usda, usdc |

TextureCraft 0.6.1 reads MaterialCraft materials up to version 1; .mcmat files from MaterialCraft 0.4.1 (version 2) need a newer TextureCraft.

## Example

```json
{
  "mesh_path": "C:\\Models\\crate.glb",
  "resolution": 2048,
  "bake": ["ambientOcclusion", "curvature"],
  "layers": [
    { "type": "fill", "name": "Paint", "color": "#3B6EA5", "roughness": 0.45,
      "procedurals": [{ "channel": "height", "kind": "Grunge", "scale": 4 }] },
    { "type": "material", "material": "Rust", "name": "Rust" },
    { "type": "image", "image_path": "C:\\Models\\logo.png", "channel": "baseColor", "projection": "triplanar" }
  ],
  "formats": ["tcraft", "textures", "glb"],
  "preset": "glTF PBR Metal Roughness",
  "output_dir": "C:\\Models\\out"
}
```

## Requirements

- **TextureCraft** with `texturecraft-cli` (tested with **0.6.1**); see [Platforms](#platforms)
- Node.js ≥ 20 (bundled with Claude Desktop for `.mcpb` installs)

## Installation

### Claude Desktop (recommended, all platforms)

1. Download `texturecraft-mcp-server.mcpb` from the [latest release](https://github.com/jhonsu01/texturecraft-mcp-server/releases/latest).
2. Double-click it (or drag it into Claude Desktop → *Settings → Extensions*) and click **Install**.
3. Optional: if TextureCraft is not in a standard location, fill in its folder or the `texturecraft-cli` path in the extension settings.

### Claude Code and Cowork (plugin)

Add the marketplace `jhonsu01/sunsam-plugins` (in Claude Code: `/plugin marketplace add jhonsu01/sunsam-plugins`; in the Claude app: *Plugins → Add → Add marketplace*) and install **texturecraft-bridge**.

### Sunsam Code

Install **TextureCraft Bridge** from the [Sunsam Code marketplace](https://github.com/jhonsu01/marketplace-SunsamCode), or drop the `.mcpb` into *MCP → Install extension*.

### Codex (OpenAI)

**Recommended — the marketplace (gets updates):** *Plugins → Add → Add marketplace*, source `jhonsu01/craft-marketplace`, reference `main`, then install **TextureCraft Bridge** from **Craft Bridges** ([craft-marketplace](https://github.com/jhonsu01/craft-marketplace)). New versions arrive by refreshing the marketplace. Or upload the zip (Codex then keeps it in your account and refuses a newer zip with the same name):

1. Download `texturecraft-mcp-server-<version>-codex.zip` from the [latest release](https://github.com/jhonsu01/texturecraft-mcp-server/releases/latest).
2. In Codex: *Plugins → Add → New plugin*, choose the zip and click **Add plugin**.
3. Codex starts the server with `node`, so Node.js ≥ 20 must be on `PATH`. If TextureCraft is not in a standard location, set `TEXTURECRAFT_DIR` or `TEXTURECRAFT_CLI` as system environment variables (Codex has no settings form for local plugins).

### DeepSeek Harness

1. *Plugins → Add plugin*, enter `github:jhonsu01/craft-marketplace#path:/plugins/texturecraft-mcp-server` and click **Install**, then **Enable now**.
2. Harness runs the server with its own MCP client and `node` (Node.js ≥ 20 on `PATH`); the tools appear as `mcp__texturecraft__<tool>` and the output files as cards that open in Harness.
3. Harness does not update plugins by itself yet: to upgrade, uninstall the plugin and install it again with the same address.

### Claude Code / other MCP clients

```bash
git clone https://github.com/jhonsu01/texturecraft-mcp-server.git
cd texturecraft-mcp-server
npm install
npm run build
```

Windows:

```bash
claude mcp add texturecraft -- node "%CD%\dist\bundle.cjs"
```

macOS / Linux:

```bash
claude mcp add texturecraft -- node "$PWD/dist/bundle.cjs"
```

## Configuration

| Variable | Meaning |
| --- | --- |
| `TEXTURECRAFT_DIR` | TextureCraft folder, one of its executables, a `.tar.gz` root (with `bin/`) or `TextureCraft.app`. Default: auto-detect |
| `TEXTURECRAFT_CLI` | Path of `texturecraft-cli` / `texturecraft-cli.exe` (wins over `TEXTURECRAFT_DIR`) |
| `TEXTURECRAFT_APP` | Path of the desktop app when it lives elsewhere (e.g. a Linux AppImage) |
| `TEXTURECRAFT_MCP_TIMEOUT` | Maximum seconds per engine call (default 3600) |

## Safety

- Files are **never overwritten** unless `overwrite: true`: a free name (`_2`) is used in folders and an existing `output_path` is an error. Inputs are only read; an edited file is saved only as a new copy (`_edited`).
- All paths must be absolute. The engine runs headless, confined to a private temporary folder for each job (the inputs are copied in, the outputs moved out), and never touches the TextureCraft app.
- Everything runs locally with no network access. Each job uses a private engine in a temporary folder that is deleted at the end.

## Development

```bash
npm run build       # TypeScript + single-file bundle (dist/bundle.cjs)
npm test            # unit tests (Windows, macOS and Linux path logic)
npm run test:e2e    # 20 end-to-end checks over real MCP stdio (synthetic meshes and pictures)
npm run pack:mcpb   # texturecraft-mcp-server.mcpb
npm run pack:codex  # Codex / DeepSeek Harness plugin zip
```

Linux test in Docker (unpack `texturecraft-<version>-linux-x86_64.tar.gz` first):

```bash
docker run --rm -v "$PWD:/work:ro" -v "/path/to/texturecraft-0.6.1-linux-x86_64:/opt/texturecraft:ro" -e TEXTURECRAFT_DIR=/opt/texturecraft -w /work node:22-bookworm bash -c "apt-get update && apt-get install -y libxkbcommon0 libvulkan1 libegl1 mesa-vulkan-drivers libasound2 fontconfig && node scripts/e2e.mjs"
```

## License

Apache-2.0. TextureCraft is © its authors (Storytold), MIT or Apache-2.0.
This project is not affiliated with or endorsed by TextureCraft or Storytold. Substance 3D Painter is a trademark of Adobe.

TDQS

A3.5/5.0

Scored across 8 tools

Disambiguation4/5

Most tools have clearly separated roles: create/paint (texture_model), export (export_textures), render (render_model), inspect (get_model_info), install check (get_texturecraft_status), capabilities (list_texturecraft_catalog), open in app (open_in_texturecraft). The main overlap is between texture_model and run_texturecraft_commands, which both paint/build projects (one high-level, one raw), and texture_model's built-in saving partially overlaps export_textures. Also three 'information' tools (status, model_info, catalog) risk mild confusion but descriptions differentiate them well.

Naming Consistency4/5

All names are snake_case and start with a verb (texture, run, open, get, export, render, get, list), which is predictable. Minor deviations: open_in_texturecraft uses a verb_place form rather than verb_noun, and the noun side varies in shape (texturecraft_status vs model_info vs catalog), but overall the convention holds.

Tool Count5/5

Eight tools is well-scoped for a 3D texturing server: one creation pipeline, one advanced escape hatch, one export, one render, plus inspection/status/catalog/open helpers. Each tool has a clear reason to exist and none feels redundant enough to remove.

Completeness4/5

Core lifecycle is covered: texturing/building a project, advanced command automation, export with presets, rendering, reading project contents, opening in the desktop app, and capability discovery. Minor gaps exist around incremental layer editing on an already-textured project and deletion/cleanup of projects, but run_texturecraft_commands largely provides an escape hatch for these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues