Build123d MCP logo

Build123d MCP

by pzfreo

Build and inspect parametric 3D CAD models with build123d, then render, measure, validate, and export them through MCP.

Install Build123d MCP

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
http://localhost:8000/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

The pzfreo/build123d-mcp MCP server exposes build123d parametric CAD operations to AI applications through MCP. It lets an assistant construct geometry incrementally, render PNG or SVG previews, inspect measurements, validate results, and export STEP, STL, SVG, or DXF files. It normally runs as a local stdio subprocess launched with uv, so reach for it when an MCP-compatible coding assistant needs an iterative CAD workflow rather than a standalone modeling interface. It also supports inspecting imported STEP parts and making constrained edits to recognized plain through holes.

Use cases

  • Build parametric parts incrementally with an AI assistant
  • Render CAD previews for visual inspection
  • Measure and validate geometry before export
  • Export models as STEP, STL, SVG, or DXF
  • Resize recognized plain through holes in imported STEP parts

Key features

  • build123d parametric CAD operations over MCP
  • Incremental geometry creation and repair
  • PNG and SVG rendering
  • Geometry measurement and validation
  • STEP, STL, SVG, and DXF export
  • Constrained editing of recognized imported holes

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

10/13 checks healthy over the last 78d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars132Stargazers on the source repository.
Last commit12d agoMost recent push to the default branch.
Directory activity13 viewsConfig copies, upvotes, and views on AllMCPs.

How Build123d MCP works

What pzfreo/build123d-mcp does

The pzfreo/build123d-mcp MCP server connects an MCP-compatible AI application to build123d, a Python-based parametric CAD library. It provides a tool-driven workflow for creating 3D parts, checking intermediate results, correcting modeling mistakes, and producing exchange files. The assistant can work in smaller construction steps instead of generating an entire CAD script without feedback.

Typical results include rendered PNG or SVG views, geometry measurements, validation checks, and STEP or STL exports. SVG and DXF export are also supported. The server is intended to be used by an AI application such as Claude, Cursor, VS Code, Continue, Cline, or Codex CLI; it is not itself a chatbot or a full desktop CAD application.

How it works

The normal arrangement is a local stdio connection. The AI application starts the server as a subprocess, then calls its CAD tools through MCP. A practical modeling loop is to create one feature, render or measure it, validate the shape, and export only after the result passes the relevant checks.

For imported STEP geometry, the workflow can identify recognized feature candidates and interface features. A plain through hole can be selected by handle and resized while protecting specified references. The edit is registered only when the hole, other recognized holes, and the outside envelope satisfy the checks described by the project. More complex holes, including counterbores, spotfaces, countersinks, or holes made from multiple constituent faces, must be edited through execute() and checked afterward.

Setup and configuration

The pzfreo/build123d-mcp MCP server can be run without cloning the repository. Install uv, then use Python 3.11, 3.12, 3.13, or 3.14. The documented default command is:

text
command: uv
args: ["tool", "run", "--python", "3.12", "build123d-mcp@latest"]

Add that command to the MCP configuration used by the chosen client. Claude Code uses a project or user .mcp.json; Claude Desktop and Cursor use their respective MCP configuration files; VS Code, Continue, Cline, and Codex CLI use the configuration mechanism provided by the application or extension. Restarting the client may be necessary after changing its configuration.

For browser-based experimentation, the repository provides a GitHub Codespaces setup with Python, uv, CAD dependencies, headless display packages, and a VS Code MCP configuration. HTTP mode is intended for advanced deployments where the server is hosted separately, but the supplied quick-start path uses stdio.

Tools and capabilities

The available workflow covers:

  • Creating and modifying build123d geometry with execute().
  • Rendering model views for visual inspection.
  • Measuring geometry and checking results with validate().
  • Exporting STEP, STL, SVG, and DXF files.
  • Finding recognized imported-part candidates with find_candidates().
  • Suggesting hole-bearing flat faces with interface_features().
  • Editing eligible plain through holes with edit_feature().
  • Comparing results with compare(kind="shape").
  • Inspecting last_error when an operation needs repair.

Limitations and notes

The server requires an MCP-capable host application and does not provide its own conversational interface. Local use requires uv and a compatible Python version. Imported-part editing is deliberately narrower than general CAD editing: complex hole configurations are refused by the constrained edit path and should instead be handled with execute(), followed by comparison and export checks. Rendering in a development or Codespaces environment also depends on the provided headless display setup.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Build123d MCP

pzfreo/build123d-mcp is an MCP server that connects AI applications to build123d parametric CAD operations. Its main tools support incremental geometry creation, rendering, measurement, validation, export, and selected edits to imported STEP parts. It runs as a local stdio process that MCP-compatible clients can launch through uv.

Install uv and configure your MCP client to run `uv tool run --python 3.12 build123d-mcp@latest`. No repository clone is required for normal use. Python 3.11 through 3.14 is supported, and the same command can be added to Claude, Cursor, VS Code, Continue, Cline, or Codex CLI configuration.

Yes, pzfreo/build123d-mcp works with Cursor through its MCP settings or `~/.cursor/mcp.json`. Add a server entry using `uv` as the command and `tool run --python 3.12 build123d-mcp@latest` as the arguments, then use the connected CAD tools from Cursor.

Use the server's export capability after creating and validating the model. The documented workflow supports STEP, STL, SVG, and DXF output. The README recommends rendering or measuring important steps, running validation, and exporting the final part only after the result passes the relevant checks.

Yes, it can resize a recognized plain through hole in an imported STEP part with `edit_feature()`. Use `find_candidates()` to locate eligible candidates and `interface_features()` to identify relevant faces, then protect required references. Counterbores, spotfaces, countersinks, and multi-face holes are not handled by that constrained edit path.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBuild123d MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pzfreo-build123d-mcp?style=directory)](https://allmcps.com/mcp/pzfreo-build123d-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/pzfreo-build123d-mcp"><img src="https://allmcps.com/api/badge/pzfreo-build123d-mcp?style=directory" alt="Build123d MCP on AllMCPs" /></a>