Who it is forA LEGO builder or designer who has a model idea and wants an AI agent to draft the construction as an editable file.
The problemTurning a rough model idea into a checked, editable LDraw file takes many manual placement and check steps.
The outcomeAn editable MPD model, a reviewed set of previews and checks, and the source plan kept for later repair.
What you need first
- Python 3.12 or newer
- An installed LDraw parts library and the LDRAW_DIR path to it
- Poppler (pdftotext) on PATH
- LeoCAD on PATH
- Git and Docker, only for the web app
Steps
- Give an agent your model idea together with instructions.md from the repository.
- Have the agent write a JSON plan following docs/agent/plans.md, using Python where calculations or loops help.
- Run
./ldraw-agent build output/my-model.plan.jsonto write output/my-model.mpd once source and geometry checks pass. - Run
./ldraw-agent review output/my-model.mpdand open the previews. - Repair the source plan where checks or previews show problems, then repeat the build and review.
Prompt for your agent
Using the ldraw-nova repository and its instructions.md, write a JSON plan for <model idea> and save it as output/<model-name>.plan.json. Run ./ldraw-agent build on that plan, then ./ldraw-agent review on the generated MPD. Report the path of the editable MPD, the checks that passed or were skipped, and the preview folder; verify that the MPD exists before reporting.
Caveat. The checks do not certify collision freedom, strength, motion or real part and colour availability, so every design needs human review.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for anteloc/ldraw-nova and "Build an editable LEGO MPD from a JSON plan"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer