Skip to main content
Glama

An MCP server that gives game gun models real surface finishes, worn where use wears a gun.

  • A finish library with sources. Anodized aluminium, manganese and zinc phosphate, blued and nitrided steel, ceramic coatings (FDE, OD green, tungsten, graphite, coyote), stainless, polymer, rubber, brass, copper, lead, walnut. Each is a physically based value (linear colour, metallic, roughness) with what shows when it wears through and the sources of its numbers. Values reasoned from descriptions are marked as estimates.

  • Coating variants. A spec puts a finish on each material slot of a model, in as many variants as you want (an issued rifle, a two-tone FDE build, an abused one), each at a wear level: new, issued, worn or abused.

  • Wear from evidence, baked once. In Blender, into the model's vertex colours: exposed edges, where the hands work the gun (its grip, the support hand, the controls), where parts slide (a magazine in its well, a stock on its tube), and dirt where the surface is occluded and round the muzzle and the port. Every variant reads the same masks, so a new variant costs nothing.

  • Checks. Every finish against the rules physically based rendering rests on. Every variant's worn share against its level, and no wear inside corners.

  • One formula everywhere. The checks, the look-dev renders and an engine's material compute wear the same way (coat.py), so what passes is what the player sees.

Six AR-15 coatings on one Model Lab build

Model Lab (modellab-mcp) builds give their own slots (upper, lower, barrel and more), marks and parts: spec_for_modellab makes a coating spec from a build in one call.

Install

Python 3.10 or later and Blender 4.2 or later.

pip install coatinglab-mcp
{"mcpServers": {"coatinglab": {"command": "coatinglab-mcp"}}}

Setting

Meaning

COATINGLAB_OUT

The only folder Coating Lab writes to. ~/.coatinglab by default.

COATINGLAB_BLENDER

Blender, when it is not on the PATH or in the usual install folder.

COATINGLAB_LIBRARY

A finishes JSON of your own, merged over the built-in library.

COATINGLAB_WAIT_FOR

Process names that hold the machine. A bake waits for none of them to run.

Related MCP server: EnfusionTexKit

Tools

Tool

What it does

list_finishes, read_finish

The library, and one finish with its notes and sources.

check_library, check_finish

The library, or a finish of your own, against the physical rules.

list_wear_levels, list_templates

The wear levels, and the ready variant sets.

spec_for_modellab

A coating spec for a Model Lab build.

validate_spec

A spec's problems: a slot without a finish, a finish on the wrong material.

bake

Bakes the wear masks into a copy of the model.

check_coating

Each variant's wear against its level, and wear kept out of corners.

render_variants

Look-dev renders and a sheet.

engine_params

A variant's values by slot for an engine material.

The masks and the formula

The bake writes the vertex colour Col:

Channel

Meaning

R

Edge: 1 on flat ground, 0 on a sharp exposed edge

G

Handling: 1 where the hands work the gun

B

Rub: 1 along the lines parts slide on

A

Dirt: 1 where the surface is occluded, and round the muzzle and the port

An engine's material follows the formula in src/coatinglab/coat.py. A wear level is a threshold: the higher the level, the weaker the mask that already wears through. A grunge texture breaks wear up but never makes wear.

What is estimated

  • Every roughness value. No source maps a finish's surface to a rendering roughness.

  • The colours of the anodized, phosphate, blued, nitrided and most ceramic finishes. The standards set processes, not colours. OD green and coyote come from FED-STD-595 colour numbers.

  • The wear amounts. Sources say where guns wear, not how fast. Each level is set so Model Lab's M4A1 lands in the middle of its band.

  • A hand's zone is a sphere: on a round handguard the support hand's wear reaches its top as well as its underside.

License

MIT

Available Tools

13 tools
bakeC

Bakes the wear masks into a copy of the model (FBX for an engine, .blend for renders): about a minute.

Inputs: spec (required), name.

check_coatingD

Each variant against its wear level's band, wear kept out of corners, every finish physical.

Inputs: bake_folder (required).

check_finishC

A finish of your own against the rules before you add it.

Inputs: finish (required), finish_id.

check_libraryC

The library against the physical rules: the finishes that break one, and why (empty: all hold).

Inputs: no named parameters.

describe_modelA

Any model's meshes and material slots (an FBX), to write a coating spec for a model Model Lab did not make.

Inputs: fbx (required).

engine_paramsD

A variant's values by slot for an engine material that follows the shared wear formula.

Inputs: spec (required), variant (required).

list_finishesB

Every finish: name, process, colour (sRGB hex), metallic, roughness, what it wears to, measured or estimated.

Inputs: no named parameters.

list_templatesC

The ready variant sets (e.g. ar15: issued, new_black, fde_two_tone, odg_ceramic, tungsten_stainless, abused_parkerized).

Inputs: no named parameters.

list_wear_levelsB

The wear levels (new, issued, worn, abused): each mask's threshold and what the level looks like.

Inputs: no named parameters.

read_finishC

One finish in full, with its notes and sources.

Inputs: finish (required).

render_variantsC

Look-dev renders of the variants (labelled: not a game's view) and a sheet of them.

Inputs: bake_folder (required), views, variants.

spec_for_modellabC

A coating spec for a Model Lab build: a template's variants on the slots it has, the wear zones from its marks.

Inputs: build (required), template, variants.

validate_specC

Every problem with a coating spec: a slot without a finish, a finish that does not go on its material.

Inputs: spec (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools are cleanly separated by resource+action: discovery (list_finishes, read_finish, list_wear_levels, list_templates), production (spec_for_modellab, engine_params, bake, render_variants), and validation. The risk cluster is the four validation tools (check_library, check_finish, check_coating, validate_spec), which all sound like 'check' but operate on different objects; the descriptions mostly disambiguate them, though an agent may still hesitate between check_finish and check_library.

    Naming Consistency4/5

    Most names follow verb_noun (read_finish, list_finishes, check_library, validate_spec, render_variants), which is predictable. A few deviate into noun-only forms (engine_params, bake, spec_for_modellab), a minor inconsistency but nothing confusing.

    Tool Count5/5

    13 tools sit comfortably in the healthy range for a domain with discovery, validation, spec-generation, baking, and rendering stages. Each tool appears to earn its place without redundancy.

    Completeness4/5

    The workflow is covered end-to-end: inspect existing finishes/templates/wear levels, describe an external model, generate a spec, validate it, bake masks, and render look-dev sheets. The one gap is library mutation — check_finish validates 'a finish of your own... before you add it' but there is no add/update_finish tool, so that path dead-ends at manual editing.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables conversational control of Adobe Substance 3D Painter for look-dev iteration, including baking, smart materials, and generator parameter tuning.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables models to pose and measure first-person arms and a rifle in Blender, reporting positions in named frames, clearances, visibility, screen placement, and solving rifle moves against goals.
      17
      1
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Enables AI clients to track first-person weapon bugs as measurable cases, run a game's own probe to gather metrics and screenshots, and compare candidate fixes against a baseline before a change is approved. It also reads posed weapon parts dumps, rebuilds animation clips in Blender, and validates probe contracts.
      67
      2
      MIT