ldraw-mpd-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LDRAW_DIR | No | Path to local LDraw library containing parts/, p/, and LDConfig.ldr. | |
| GEMINI_API_KEY | No | API key for ldraw_verify_step using Google Gemini (default model: gemini-2.5-flash). | |
| OPENAI_API_KEY | No | API key for ldraw_verify_step with OpenAI or any OpenAI-compatible vision endpoint. | |
| LDRAW_CATALOG_PATH | No | Optional path to a custom JSON BOM catalog (array of part objects with datFile, ldrawDescription, optional colour, ldrawColorCode, bbox, studs, holes). | |
| LDRAW_VISION_MODEL | No | Override the vision QA model (e.g. gemini-2.5-pro, gpt-4o). | gemini-2.5-flash |
| LDRAW_VISION_BASE_URL | No | Custom OpenAI-compatible base URL (e.g. LiteLLM, OpenRouter, Ollama). | |
| LDRAW_VISION_PROVIDER | No | Vision provider for ldraw_verify_step: gemini (default) or openai. | gemini |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ldraw_library_statusA | Inspect the active LDraw parts library path, color table source, optional set catalog, and vision verifier configuration. |
| ldraw_lookup_partB | Search LEGO parts in the configured set catalog (if LDRAW_CATALOG_PATH is set) or across the entire local LDraw parts library by keyword, colour, or category. |
| ldraw_inspect_partA | Inspect a single LDraw .dat part at a given color and 3x3 rotation matrix. Returns its transformed LDU bounding box and a 2x-supersampled isometric 3D PNG with +X (Red), -Y Up (Green), and +Z (Blue) axis arrows. |
| ldraw_render_stepA | Render an LDraw .ldr or .mpd model up to a specific stepNumber into a 2x-supersampled 3D isometric PNG with bounding-box diagnostics, optional side-by-side reference stitching, and Sub-Build Isolation ( |
| ldraw_verify_stepA | Independently verify an LDraw step against a reference instruction image using a configured Vision LLM (Gemini or OpenAI-compatible). Returns compact JSON on PASS (zero image bloat) or LDU discrepancy diagnosis + side-by-side PNG on FAIL. |
| ldraw_pack_mpdA | Bundle an LDraw .ldr/.mpd file with LDConfig.ldr colours and all recursively referenced .dat parts/subparts/primitives into a single 100% offline-ready .mpd file compatible with Three.js LDrawLoader. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct stage of the workflow: config inspection, catalog search, single-part spec inspection, packing, model rendering, and vision-based verification. The only mild overlap is ldraw_inspect_part vs ldraw_render_step, since both emit isometric PNGs, but their scope (single .dat part vs multi-step model) is clearly stated.
All six tools share the ldraw_ prefix and snake_case, with a clear verb_noun pattern (pack_mpd, lookup_part, inspect_part, render_step, verify_step). ldraw_library_status is a noun-phrase outlier, but it reads naturally as a status query and does not break the scheme.
Six tools is a tight, well-scoped set covering the stated purpose of inspecting, packing, rendering, and verifying LDraw files. It is on the lean side—no file-assembly or step-enumeration tool—but nothing feels redundant.
The surface covers a solid pipeline: library check -> part lookup -> part inspect -> pack -> render -> verify. Minor gaps exist, such as listing/extracting the individual steps or sub-builds of an MPD, or writing/editing an MPD, which agents would have to work around externally.