Skip to main content
Glama

ParCAD

Server Details

Parametric CAD as code: model 3D-printable parts on an exact B-rep kernel, measured.

Ownership verified
Status
Healthy
Uptime
8.3% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
ierehon1905/parcad
GitHub Stars
10
Server Listing
ParCAD MCP Server
ChatGPT
–
Claude
–

TDQS

A4.2/5.0

Scored across 19 tools

Disambiguation4/5

The measurement tools overlap conceptually (evaluate_part, probe_part, measure_wall_thickness, check_fit, list_entities, inspect_treatment_target all answer 'what does the solid actually look like'), but each description explicitly delimits itself against the others ('unlike probe_part', 'check_fit … evaluate_part already measures the pair'). The screen-versus-disk split among set_script, edit_part, save_project, and restore_snapshot is real ambiguity, though it is spelled out in each description.

Naming Consistency5/5

Every name is snake_case verb_noun: check_fit, edit_part, evaluate_part, export_part, list_projects, measure_wall_thickness, open_project, read_docs, restore_snapshot, save_project, set_script, view_part. Only get_session deviates from list_/read_ for a fetch, which is a trivial and readable variation.

Tool Count4/5

19 tools is on the heavy side, but for a full CAD kernel — build, measure, probe, fit-check, export, session control, snapshots, docs — each tool covers a distinct capability with no obvious redundancy. It sits at the upper edge of reasonable rather than being over-scoped.

Completeness4/5

The lifecycle is well covered: build/measure (evaluate_part), edit (edit_part, set_script), persist (save_project, restore_snapshot, snapshots), export (export_part), inspect (probe_part, measure_wall_thickness, check_fit, list_entities), and docs. The notable gap is no delete/rename/duplicate-project operation, and undo beyond the 50 snapshots relies on the editor, but these are minor for the domain.

Available Tools

19 tools
check_fitCheck the fitA
Read-only
Inspect

Lay a reference object against a part and measure how they sit, on the two exact solids: verdict is clear, touching or interfering; interference_mm3 is the material the two share, which is what would have to be cut away for the object to fit, and depth_mm at deepest_mm is how far one reaches into the other — the number to read, since a volume is not a depth; clearance_mm and closest_mm say how much room there is and where, when they do not overlap, and contact_mm2 over contact_patches patches says how much of a face they share when they touch, which is what tells a seat from a corner. This is the question 'does the laptop fit in its holder' or 'does the lid clear the boss', and neither a render nor arithmetic on the script can answer it — the script says what was asked for and this measures what was built.

Both arguments are scripts. The reference is usually one line drawing the object where it sits, e.g. a 16-inch MacBook Pro as return box(355.7, 248.1, 16.8).at(0, 0, 18.4). A holder is right when the reference is clear by about the clearance it was drawn with, and wrong when it interfering — the depth and where it is deepest say by how much. When both objects are bodies of one part — return { holder, laptop } — evaluate_part already measures the pair in between_bodies, with the same verdict and numbers, and no second call is needed.

Inputs: reference (required), edits, script, project.

check_selectorCheck a selectorA
Read-only
Inspect

Parse a directional selector such as '>Z and >Y and |X' and report the exact error and character span if it is wrong. Cheap: it runs the kernel's own parser and touches no geometry.

Inputs: selector (required), kind. Returns: ok, span, error

edit_partEdit a part in placeA
Destructive
Inspect

Change part of a script without sending the whole thing: each edit replaces old with new, once, and the part is rebuilt and measured exactly as evaluate_part does — same reply, same views — then saved. project names the part to edit, or "@session" for the script on the user's screen. An old that appears twice, or not at all, is refused naming how many times it was found and where, or the nearest line, and nothing is written: give more surrounding lines. An old found nowhere exactly but once with its spacing and quotes read loosely is applied, and the reply's matched_loosely names it. The edited text is built before anything is written, so a change that does not build is refused and the part is left as it was. The previous text is kept as a snapshot (list_snapshots, restore_snapshot), so an edit is undoable, and an edit to the open part lands in the window's own undo history: the reply then carries on_screen with the revision and viewers, as set_script's does. A saved part that is also open on screen is put on screen too. It changes a saved part after the first build — a fillet radius, a dimension, one function — without 10 KB of unchanged script being sent to change two lines, the most common way a session runs out of room. evaluate_part with the same project and edits tries a change without saving it. The reply adds edits_applied, the new script_sha256, and for a saved part the path written and the snapshot kept; a reply's script_sha256 passed back as expect_sha256 refuses the edit if the text has changed since. An edit that writes part.js is refused when the edited text fails its print_check (material under 0.3 mm) or one of the part's own checks, naming the finding or the check and its measurement, unless allow_failing carries the user's words accepting that it fails; an edit to "@session" changes only the screen and is never refused for a verdict — the window shows it red.

Inputs: edits (required), project (required), tags, views, +9 more.

evaluate_partBuild and measure a partA
Read-only
Inspect

Build a part from a parcad DSL script, or a saved project without sending it, and report what the kernel built. The reply opens with the verdicts: the part's own checks (read checks.verdict first), brief (what the part is for, judged on the build: write brief({ envelope: [x, y, z] }) in the first build), and print_check — loose pieces, thin walls (failed under 0.3 mm, which export_part and save_project refuse without allow_failing), cuts into another feature, overhang. Then size, volume, area, faces, edges, bodies (free-standing pieces: one for a part), voids, stands_on, tags and tag_extents.

Read tag_extents before any picture: it is the only number that says whether a feature is where you meant it, since every other one is unchanged when a feature faces the wrong way. Compare each tag's center with the part's centroid and with the script; a tag in unlocated_tags owns no face of the finished part.

A part in several solids returns named shapes, return { base, lid }: named_bodies measures each alone (pieces above 1 is a body its own booleans split) and between_bodies each pair on the exact solids — clear with clearance_mm, touching with contact_mm2, interfering with depth_mm. Read the depth and the contact, not the verdict. Bodies are never fused; selectors and treatments work inside one body. .reference() marks a body that is not the part, such as the coins it holds: measured against every body, left out of size, volume, the print check and exports. A reply lists at most 6 bodies and 16 pairs, the deepest interference first; named_bodies_unlisted and between_bodies_unlisted count the rest, and bodies: [names] lists those. Checks, motion and mechanisms are written in the script (read_docs dsl Check, TurnCheck, Mechanism): { clear: ["lid", "base"], atLeast: 0.2 } holds at one pose, { turns: { body, about, at, degrees }, clearOf: ["base"], atLeast: 0.3 } over a whole travel. A failed check never stops this tool.

Pass views (iso, front, top, …) to see it too; each view carries scale_mm over scale_px and path, and size is still the number to quote. Pass section: { axis, at_mm } with a view to cut it open: the flat orange is material the plane passed through, anything darker inside it is void, and cut_fraction 0 means the plane missed. To show the user the part, save_project and open_project it.

edits with project builds it with lines changed and nothing saved — 'what if the wall were 1.2 mm' in one call; edit_part is the tool that saves. A build is kept per script, so asking again with views reuses it; timeout_s gives a heavy part longer than 20 s.

A surface (surfaceLoft, trim, patch, …) reports kind: "surface" and surface — area, free_edges, boundary_loops — instead of a volume; .thicken(t) makes it a solid. Curved outlines are drawn, never faked with short straight edges: a section entry { through }, { radius }, { spline }, { fit, tolerance } or { curve: (t) => [x, y], from, to, tolerance }, and spurGearOutline for a gear (read_docs dsl SectionEntry); deviation_mm and curve_bound_mm measure what was built.

Inputs: tags, edits, views, bodies, +7 more.

export_partExport a part to a fileA
DestructiveIdempotent
Inspect

Export a part and return the absolute path written. format is 3mf for printing — what Bambu Studio, OrcaSlicer, PrusaSlicer and Cura open, with every body its own named object in millimetres — stl for a bare mesh any tool reads, or step for exact surfaces, for another CAD program or a machine shop. Files are written to the parcad export directory; the filename must have no directory part. On a hosted parcad the reply also carries url, a signed link that fetches the file with no token until it expires, and path is then relative to the account's folder. The reply's measured describes the part in the file, off the same build that wrote it: size, volume, watertight, bodies, voids, and for 3MF and STL the deflection_mm every triangle is within. Reuses the build of an earlier evaluate_part on the same script; timeout_s gives a heavy part longer.

A part that returns several bodies (return { base, lid }) is written whole by default — one object per body in 3MF, one solid per body in STEP, every body's triangles merged into one STL, where a slicer can no longer tell them apart — and measured.named_bodies then measures each body in the file. Pass body: "lid" to write that one body alone. A .reference() body is never in the file and cannot be asked for by name.

STL and 3MF describe closed solids and refuse a part with a surface body, naming .thicken(t); STEP carries surfaces exactly.

A part whose print_check fails — material under 0.3 mm, where nothing prints — or that carries its own checks and fails one is refused, with the finding or the check and its measurement named, and nothing is written. allow_failing carries the user's words accepting that it fails, for writing it anyway; the reply keeps it and the file carries it: in an STL's header, a STEP comment, or a 3MF's Description. The reply opens with print_check and checks, the verdicts the file was written under; a flagged print_check writes the file and lists what to read.

Inputs: format (required), body, edits, script, +4 more. Returns: url, path, brief, bytes, +10 more

get_sessionRead the open editorA
Read-only
Inspect

Read the live session: which project is open in the parcad window and the script as it currently stands in the editor, including anything the user has typed since you last looked. Call this before editing — the on-screen script may differ from the file on disk, and editing from a stale copy silently reverts the user's work. name is null until something is opened; revision increases with every change. The editor pushes its document a moment after typing stops, so the very last keystrokes can lag by about half a second.

viewers is what each open window is actually drawing, as the window reported it: the revision it last evaluated, whether that built, the error if not, and the volume_mm3 it measured. A window below the session's revision has not caught up; one with built: false is still drawing an older part beside that error. An empty list means no window is open, so nobody is looking. A viewer over 30 seconds old is marked stale and is not evidence the user is looking at anything; one silent for 300 seconds is left out.

Inputs: no named parameters. Returns: name, origin, script, viewers, +1 more

inspect_treatment_targetShow what a fillet will act onA
Read-only
Inspect

Show exactly which edges a fillet or chamfer will act on, resolved against the shape before that treatment runs. Takes a node index from evaluate_part's treatments list. Also reports tags whose edge set is exactly this target, which are stable selectors you can use in the script.

Inputs: node (required), edits, script, project. Returns: node, edges, edge_count, vertex_count, +3 more

list_entitiesList a part's edges and facesA
Read-only
Inspect

List what a part is made of, as text rather than a picture: its visible edges with their centres, directions and lengths, and its faces with what each one is (plane, cylinder, cone, sphere, torus), its exact area, a point on it, its outward normal or axis, and the faces it touches. For a part in several named bodies each edge and face also says which body it is on.

Use the edges to work out which directional or topological selector picks the edges you mean. Use the faces to work out the shape of the part without looking at it — adjacent is the half that carries it, because a plane at z=44 could be the top of a plate or the floor of a pocket and what it borders is what tells them apart. A cylindrical face bordering two planes is a through hole; bordering one is a blind one.

The returned edge@N and face@N ids describe one evaluation and must never appear in a script — there is no face selector in the DSL, so a face is something to read, and the way to act on one is the edges around it.

Inputs: from, edits, script, project. Returns: from, more, edges, faces, +5 more

list_projectsList projectsA
Read-only
Inspect

List the parts in parcad's project folder. This is the same folder the desktop app and the user see, so anything listed here can be opened in the app, and anything saved here shows up in it. Paths are slash-separated: a part inside a folder is listed as 'Mounts/bracket', and that whole string is the name every other project tool takes. Parts that ship with parcad are seeded into this folder and are ordinary projects.

Inputs: no named parameters. Returns: expires, shipped, storage, projects, +1 more

list_snapshotsList a project's earlier versionsA
Read-only
Inspect

List the earlier versions of a project's script that parcad kept, newest first: one is kept automatically before save_project overwrites part.js, and one before set_script replaces the script on screen — including text the user typed and never saved. Each has an id, the path of a plain .js file, its size and its first line. Use restore_snapshot to put one back on screen; the 50 newest are kept per project.

Inputs: name (required). Returns: name, snapshots

measure_wall_thicknessFind the thinnest wallA
Read-only
Inspect

Find the thinnest material anywhere in the part, and where it is. Use this before saying a part is ready to print, cast or mill, and any time you cut a pocket, a bore or a shell into something — it is the check that catches a wall you thinned without meaning to. Unlike probe_part it needs no guess about where to look: it reads every edge, searches every pair of faces for thin material between them, and measures from thousands of points over the whole surface, and reports the worst.

The thickness at a point is the diameter of the largest ball that fits inside the material touching the surface there — the wall thickness a moulder or a print check means. Through a slanted wall it is the distance across the wall, not along any line: a 2 mm slab tilted 30° reads 2.0 here and 2.31 straight down with probe_part. Use this for how thick a wall is, probe_part for how much material a particular line crosses.

Reports thinnest — the thickness in mm, the point, and surface_of and opposite_surface_of, the tags of the two faces the material lies between, which is what tells you which wall is thin. Pass threshold_mm (the process minimum, e.g. 1.2 for a print) and it also reports below_threshold, how many samples failed it, plus thin_spots: every thin sample grouped into the place it belongs to, with its kind, samples and extent_mm, so a pocket floor thin all over and one thin corner are different entries.

Read kind first. feather is a sliver: real material that thins to a knife edge where two faces meet at a shallow angle, what a cut leaves when it grazes another feature. Its thickness_mm is 0 because the material really does run out to nothing along that edge — it is the thinnest material in the part, not a measuring artefact and not an edge reading — with wedge_deg the angle and extent_mm the stretch that sharp. It will not print or cast cleanly and is almost never intended, so fix it or say why it stays. wall is two faces that do not meet — a floor, a wall, a web between holes — and is thin because a dimension made it so. edge is a ball wedged into a corner — beside every sharp edge, and on every round, which reads twice its radius — so it comes last and is not a wall. surface and opposite_surface say what each face is, which names the feature when no tag does.

Measured on the exact solid with every fillet and chamfer in it: a rounded edge is in the number, not a caveat beside it. What is certain, at any max_samples: every feather is found, however short, and every wall thinner than threshold_mm between two faces that do not meet is found and measured exactly where it is thinnest. Only a thin place of another shape — across a single curved face, like a thin pin — rests on the samples, which are never more than sample_spacing_mm apart; raise max_samples to narrow that. A minimum that tapers toward zero at a groove rim or a run-off blend is real material geometry, not a defect: docs/GOTCHAS.md, in read_docs, has the two shipped parts it happens on. A surface has no material to be thick and is refused here, naming .thicken(t); in a part that mixes solids and surfaces the surfaces are left out and listed in surfaces_skipped.

Inputs: edits, script, project, timeout_s, +2 more. Returns: more, note, units, samples, +11 more

open_projectShow a part to the user in 3DA
Idempotent
Inspect

Shows the user a part: opens a project on the screen they are watching — the parcad app, or the ParCAD web page in their browser — loaded from disk, exactly as if they had picked it, in every open window. A part just built is shown by saving it with save_project under a name of its own and opening that; the part that was open is left as it was. A chat that renders MCP Apps, such as claude.ai, the Claude apps and ChatGPT, also draws the part in 3D beside the reply for the user to turn: shown_in_chat: true says the reply carried the built part to that chat, and it is absent when the client draws nothing or the part did not build. On a hosted parcad, which has no window, the chat is where a part appears in 3D. Takes a path from list_projects. Returns the session without the loaded script: script_chars and script_sha256 identify the text every window took, script: true asks for it, and read_project has it anyway. get_session says which part is on screen; set_script changes that part only. Like set_script, the reply waits for a window to report evaluating it and carries viewers, each with the revision it showed and whether it built. A viewer that last reported over 30 seconds ago is marked stale; one silent for 300 seconds is left out and not waited for.

Inputs: name (required), script, wait_s. Returns: name, origin, script, viewers, +4 more

probe_partProbe a part along rays and pointsA
Read-only
Inspect

Measure a part along rays and at points instead of looking at it. This is the tool for every question of the form 'is there material here', 'how thick is that', 'does this hole break through', 'do these two bores meet' — a render cannot settle any of them, and neither can arithmetic on the script: the script says what was asked for, and this says what was built. Reach for it before you reason from a dimension in the source.

Each point reports medium, either "material" or "void", plus the distance to the nearest surface (negative in material). Each ray reports every crossing in order, each with the medium it passed into and surface_of, the tag of the node whose surface that face belongs to — read those names down the list and they name the features the line went through, which is how you tell two voids that meet from two that do not. Also solid_mm, and first_solid_mm, which is a wall thickness, measured.

A ray that reports no crossings at all crossed nothing but void: that is a positive result, not a failed measurement. Everything is measured on the exact solid — every fillet and chamfer is in it, and a distance near a corner is the true distance — so there is nothing left out to allow for. For a part in several bodies each crossing and point also says which body. On a surface, which has no inside, a point is never material: its distance_mm is to the surface, and a ray lists every place it passes through the surface as a crossing into void.

Inputs: rays, edits, points, script, +2 more. Returns: more, rays, units, points, +4 more

read_docsRead parcad's own documentationA
Read-only
Inspect

Read parcad's own documentation. Call this before writing your first script: dsl is the complete language reference — every function, method and constant, with signatures and what each one means — generated from the DSL source, so nothing it has can be missing from it.

The alternative is learning the language from example parts, and that has been measured: a session that read two of them built its part out of boxes and cylinders, recorded mirror and lofts as impossible when both ship, and never found revolve, cone, ngon, polar, repeat, countersink, counterbore, tapDrill or clearance. The parts it wrote were a function of which files it happened to open.

The other topics are prose, and each is cited by name inside the seeded parts' own comments: gaps is what the language cannot express and what to write instead; gotchas is the list of shapes that make the kernel return a plausible wrong answer or die — a blended union of two solids that only touch on a face, an offset that silently drops a body, a fillet that grows the part; operations is which operations exist, which are deliberately absent, and why. Read gaps and gotchas before a part with blends, offsets or shells in it: most failed calls are in there already, described from the other side.

A topic too long for one reply — dsl is one, and so is gotchas — answers first with its contents, not the document: every section by name, and the name of every entry in it. section in that reply says contents, and sections lists the section names. Call read_docs again with the same topic and section set to one of those names to read that section whole, or to one entry's name — holeFor, Shape.mirror, SectionEntry; a bare method name like mirror also works — to read just that entry. Reading every section in sections is reading the whole document; nothing is left out of them. A topic that fits in one reply comes back whole, with no section. Entries give the rules and an example; detail: true adds the reasons and history behind them, which writing a part rarely needs. When you do not know which section has something, pass query with a name or a few words instead: the reply lists every section and entry that mentions them, with the topic and section to read each one.

Inputs: query, topic, detail, section. Returns: text, topic, source, topics, +2 more

read_projectRead a projectA
Read-only
Inspect

Return the DSL source of one project. The seeded parts are worth reading before writing your own: they are the same files the eval corpus measures, so they always run. On disk a project is usually a '.parcad' folder whose 'part.js' is the source this returns; a README.md beside it describes the part in prose. A loose '.js' file is also a project. Either way, use the path from list_projects rather than a filename.

Inputs: name (required). Returns: name, script

restore_snapshotRestore an earlier versionA
DestructiveIdempotent
Inspect

Puts a kept version of a project back in the editor, as an ordinary edit the user can undo. Opens the project first if another one is on screen. Like set_script it changes the screen only (save_project writes it to disk), keeps the current text as a snapshot first, and waits for a window to report showing it.

Inputs: id (required), name (required), wait_s. Returns: name, origin, script, viewers, +1 more

save_projectSave projectA
DestructiveIdempotent
Inspect

Writes a new part to parcad's project folder, where the user can open it; open_project then puts it on their screen. For a part already saved, edit_part changes the lines it names, rebuilds and saves in one call, without the whole script being sent again. A script that does not build is saved regardless, as a broken file; evaluate_part builds a script without saving it. Saving replaces an existing project at the same path; a new one is created as a '.parcad' folder, and a path like 'Mounts/bracket' files it under a folder, creating the folder if needed. The reply says whether the script built (the error if not) and the snapshot of the version it replaced, which list_snapshots and restore_snapshot can bring back. A part that builds and fails its print_check (material under 0.3 mm, where nothing prints) or one of its own checks is not saved: the refusal names the finding or the check and its measurement. allow_failing carries the user's words accepting that it fails, for keeping such a part, and the reply keeps it beside the verdicts it opens with.

Inputs: name (required), script (required), allow_failing. Returns: name, path, brief, built, +5 more

set_scriptReplace the script on screenA
DestructiveIdempotent
Inspect

Replaces the whole script of the project open on the user's screen, for a script that is new from the first line. edit_part with project "@session" changes only the lines it names, builds them first and lands on screen the same way. A different part is shown with save_project and open_project; a script sent here lands in the open project, and a save writes it there. The change appears in every window immediately and lands in the editor's normal undo history, so the user can Cmd-Z it back like their own typing; there is no lock. It edits the screen only: nothing is written to disk until the user saves or save_project is called. A script that does not build replaces the user's working part on screen with an error; evaluate_part builds a script without showing it. The script replaces anything the user typed since get_session last returned the text.

The reply waits (up to wait_s, default 20 s) until a window reports evaluating this revision, and its viewers lists each window with the revision it showed and whether it built: with which volume_mm3, or the error it hit. It does not echo the script: script_chars and script_sha256 identify what landed, and get_session returns it whole. Setting the same script again makes every window evaluate it again, which recovers a window that is showing something stale.

Inputs: script (required), wait_s. Returns: name, origin, script, viewers, +4 more

view_partDraw a part in the chatA
Read-only
Inspect

Only for parcad's in-chat 3D viewer, which calls it itself when an open_project reply reached it without the part: it returns that build's mesh as binary arrays, which are no use to read. To build, measure or look at a part, call evaluate_part.

Inputs: script, project, timeout_s.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Open-source parametric 3D CAD built with and for AI: every action a command, every result checked.
      6
      7
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables an LLM to design parametric 3D parts in pure NumPy and verify they are actually printable before exporting them. Provides topology checks (watertightness, genus, shell count, wall thickness), self-rendered views, and gated STL/OBJ export that refuses broken solids.
      7
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Block-based implicit modeling CAD with a REST API, WebSocket updates, and an MCP server that enables Claude Code to build models, inspect geometry, render previews, and export STLs.
      14
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to design, modify, and verify exact B-rep 3D CAD models by running build123d scripts on an OpenCascade kernel, with live three.js preview, collision and FDM printability checks, text-based spatial perception, user notes/sketch annotations, version history, and one-click export to OrcaSlicer.
      1
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.