AI & Machine Learning5 min read

Local LLMs Can Draft CAD Files. That's Not the Hard Part

Wiring a local LLM to FreeCAD via MCP is a genuinely useful prototyping trick, but calling the output mechanically good skips the physics entirely.

By Curious Technologist Editorial

The interesting part of the FreeCAD-via-MCP tutorial making the rounds on r/LocalLLaMA isn't the CAD, and it isn't the LLM. It's that Anthropic's Model Context Protocol has quietly become the universal adapter cable for agentic software, and nobody had to ask permission to plug a parametric modeling package into it. That's the actual story, and it's a better one than the headline gives itself credit for.

The glue is the story, not the geometry

What the workflow describes is unremarkable in isolation: run a quantized model (Qwen3-VL in the 27B class, small enough to fit on a single consumer GPU at 4-bit precision) behind llama.cpp, expose FreeCAD's Python console as a set of callable tools through an MCP server, and let a coding agent — pi or llama-server's own tool-calling loop — issue commands to it in response to natural-language prompts. None of the individual pieces are new. FreeCAD has had a scripting API for two decades. Local inference on consumer hardware has been viable for at least two years. What's new is that MCP gives all of this a common calling convention, so the same agent harness people use to write Python can, with a JSON config file and no custom integration code, drive a solid-modeling kernel instead. That's the pattern to watch, not this specific stack. Robotics simulators, EDA tools, GIS software — anything with a scriptable API is now one MCP server away from being agent-operable, and the barrier to building that server has dropped from "software project" to "weekend."

An LLM that has never touched a wrench does not know what mechanically good means; it knows what sentences about mechanically good things look like.

"Mechanically good" is doing unlicensed work

Here's where I'll push back on the framing, because it matters if anyone actually feeds these files to a printer or a mill. The tutorial's premise is that a vision-capable local model can look at a generated part, judge it against some internalized sense of sound mechanical design, and iterate toward something that "sounds mechanically good." But there is no physics in this loop. No stress analysis, no tolerance stack-up, no material model, no FEA pass — just a language model pattern-matching against the geometry and dimensions of parts it saw described in its training data, most of which came from tutorials, marketing copy, and forum posts rather than engineering validation. That's fine for a phone stand or a cable clip. It is not fine for anything load-bearing, anything that mates with a bearing or a shaft under tolerance, or anything that will be milled from metal rather than extruded in PLA, where a wrong wall thickness or fillet radius is the difference between a part and scrap stock. The gap between "an LLM approved this" and "an engineer verified this" is exactly the gap that FEA software has existed to close for sixty years, and nothing here closes it.

The catch: the workflow has no ground truth. FreeCAD can run its own FEM workbench, and a sufficiently ambitious version of this pipeline could pipe simulation results back into the agent's context so it iterates against actual stress data rather than its own aesthetic judgment. The tutorial as described doesn't do that. Until someone wires that loop closed, treat every part this pipeline produces as a first-draft geometry proposal, not a validated design — the same discipline that applies to LLM-generated code before it ships.

Who this actually serves

The framing as "9 easy steps" oversells the accessibility. Each step involves cloning a git repo, editing a JSON config by hand, and running a package manager (uv) from the command line — comfortably within reach for the LocalLLaMA crowd, a non-starter for the hobbyist machinist or product designer the workflow could theoretically serve. So this isn't democratizing CAD generation for non-technical makers, whatever the pitch implies. It's a productivity multiplier for people who already run local models and already know FreeCAD's quirks well enough to catch the agent's mistakes. That's a smaller and more specific audience than "anyone with a 3D printer," and it's worth being honest about who benefits: existing FreeCAD contributors and local-inference tinkerers, not first-time makers.

The upside for that narrower group is real, though. FreeCAD has a notoriously steep learning curve — its parametric constraint system trips up people coming from SolidWorks or Fusion 360 — and an agent that can translate "add a 4mm mounting boss with a countersink" into the correct sequence of sketch and pad operations removes a genuine point of friction, not a cosmetic one.

What it means if you're at a workbench, not a keyboard

For someone actually using this for work rather than writing about it: the economics are the strongest argument in its favor. A 27B model quantized to run on a 16–24GB consumer GPU means no per-token API bill and no proprietary CAD files leaving your machine — a genuine consideration if you're prototyping something you don't want indexed by a cloud vendor's logs. Use it for what it's good at: fast iteration on enclosures, brackets, jigs, and other non-critical geometry where a wrong first attempt costs you a re-prompt, not a failed part in service. Do not use it as a substitute for FEA or hand calculation on anything that will bear a real load, meet a tight tolerance, or fail in a way that matters. The moment a part needs to hold weight, seal against pressure, or survive vibration, hand it to a workbench — or an engineer — before it ever sees a nozzle or an end mill.

Sources & further reading

The analysis above is our own. The underlying reporting and primary documents are credited here.