Render LDraw/LEGO models to images with real part geometry via headless Blender + ImportLDraw
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Give your MCP client eyes for LEGOยฎ models.
Render LDraw files (.ldr / .mpd / .dat) to images with real part
geometry โ studs, slopes, window glass โ using headless Blender and the
ImportLDraw addon. The output looks like a BrickLink Stud.io render, with no
GUI anywhere in the loop.
A ~90-line .ldr rendered front-left and rear-right โ actual bricks, not a geometric proxy.
Point a vision-capable model at a build and it sees the actual bricks: crossed rotation matrices, floating plates, sunken windows โ the kinds of export bugs a geometric proxy render will happily hide.
Then ask things like "render output/build.ldr and tell me what looks wrong" โ the model sees the render, not just the text.
Blender is a prerequisite (see Requirements); it is not installed by
ldraw-mcp-setup.
| tool | what it does |
|---|---|
render_ldraw_file(path, azimuths="-60,120", resolution=640, samples=24) | Render a model file to a PNG (multi-view, stitched side by side) |
render_ldraw_text(ldr, azimuths="-60,120", resolution=640, samples=24) | Render inline LDraw content without writing a file first |
check_renderer() | Diagnose the Blender / addon / parts-library setup |
azimuths is a comma-separated list of view angles in degrees; each is
rendered and the views are stitched horizontally. Elevation is fixed at
22ยฐ. Higher samples = cleaner but slower.
PATH, or point LDRAW_MCP_BLENDER at the binary.
Install it yourself (package manager, blender.org, or a local build);
ldraw-mcp-setup does not install Blender.io_scene_importldraw) in Blender's addons dir โ
installed by ldraw-mcp-setup.~/.ldraw (or LDRAW_LIBRARY_PATH) โ
installed by ldraw-mcp-setup.| var | meaning |
|---|---|
LDRAW_MCP_BLENDER | Path to the blender binary (overrides PATH lookup) |
LDRAW_MCP_DISABLE | Set to 1 to force is_available() to False |
LDRAW_LIBRARY_PATH | Path to the LDraw parts library (community convention) |
If ldraw-mcp-setup can't detect things automatically:
~/.ldraw/parts/ exists.~/.config/blender/<version>/scripts/addons/io_scene_importldraw/.
(Launch Blender once first so the config directory exists.)check_renderer says NOT FOUND: run ldraw-mcp-setup, or set the
relevant env var above.LDRAW_LIBRARY_PATH.io_scene_importldraw
in Preferences > Add-ons.This renderer was extracted from the prompt2brick project, where it started life as the vision critic's "see the actual model" path. prompt2brick keeps its own vendored copy of the render wrapper and Blender script, but this repo is the canonical source going forward โ fixes and improvements to the renderer should land here first and be ported back into prompt2brick.
MIT โ see LICENSE.
LEGOยฎ is a trademark of the LEGO Group, which does not sponsor, authorize, or endorse this project. This tool is not affiliated with the LEGO Group, BrickLink, or the LDraw.org organization.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ldraw-mcp)<a href="https://allmcps.com/mcp/ldraw-mcp"><img src="https://allmcps.com/api/badge/ldraw-mcp?style=directory" alt="Ldraw MCP on AllMCPs" /></a>