ldraw-mcp
Render LDraw/LEGO models to images with real part geometry via headless Blender + ImportLDraw
Versions
0.1.1latestTools 6
check_renderer Report whether the LDraw rendering stack is available and why not.
render_ldraw_file Render an LDraw model file (.ldr/.mpd/.dat) to a PNG image. Views are rendered at each comma-separated azimuth (degrees) and stitched side by side. Higher samples = cleaner but slower. Bounds: resolution 32..2048 px per view, samples 1..1024, 1..8 azimuths, and resolution^2 x samples x views at most 2**27.
render_ldraw_text Render inline LDraw content (the text of a .ldr file) to a PNG. Useful for quick experiments without writing a file first. Same bounds as render_ldraw_file.
bill_of_materials Bill of materials for an LDraw model: part x colour x quantity rows. Give `path` (a .ldr/.mpd file) or `ldr` (inline LDraw text), not both. MPD sub-models are expanded with their multiplicity, and colour 16 inherits the colour of the line that referenced the sub-model. Part descriptions and colour names come from the LDraw library when one is installed; without it the counts are the same and those fields are null. A colour code that LDConfig.ldr does not define is listed in `unknown_color_codes`, and a part the library lacks in `parts_not_in_library`.
lookup_color Look up LDraw colours in the library's LDConfig.ldr. `query` is a colour code (`4`, or a direct colour `0x2FF8800`) or part of a name (`dark blue`, `Trans_Red`). Returns code, name, RGB, edge colour, alpha and finish for each match; an unknown code returns no matches.
search_parts Search the LDraw library's parts by description or file-name substring. Case-insensitive, runs of spaces collapsed (`brick 2 x 4` matches the header `Brick 2 x 4`). Returns at most `limit` parts (max 200) plus the total number of matches.
Permissions 4
network medium filesystem low shell high env_vars low