kernelCAD — CAD for coding agents, with editable source and checks
Describe a mechanical part in ChatGPT, Claude, Codex, Cursor, or the browser.
kernelCAD turns the brief into editable parametric CAD, lets you inspect and
revise the geometry, and exports STEP, STL, and drawings.
Start here: Open Studio ·
Connect your agent ·
Watch real tool workflows ·
Read the prompt-to-STEP guide

Why not just generate an image? Your design remains .kcad.ts source:
named features, editable dimensions and assembly structure. Agents can
evaluate it, check constraints and clearances, revise the source, and export
files for an engineer to inspect. Reproducible example source
and documented checks are public.
Geometry checks are not material-strength or manufacturing certification.
Connect a hosted MCP client: https://mcp.kernelcad.com/mcp
(no local CAD install). Run locally: npx -y kernelcad mcp
(Node.js 22.12+).
Source scope: this repository contains the reusable CAD runtime, CLI, MCP
tools and headless renderer. Hosted UI and commercial services are maintained
separately. Build the reusable tools with npm run build; use npm run dev
for the standalone renderer.
The workflow is: brief → editable .kcad.ts → evaluated B-rep → validation
→ guided revision → STEP/STL/drawing. OpenCASCADE is the geometry kernel;
kernelCAD supplies the agent-first modeling and review workflow.
Manufacturing design use cases
Describe a part, refine its editable CAD source, and export the geometry or
drawing needed for the next step. These examples are starting points for
designing parts for different processes:
| Process | Example | Reusable CAD reference |
|---|
| 3D printing | An electronics enclosure with locating lid and PCB posts | Enclosure |
| CNC milling | A bearing block with mounting holes and a stepped seat | Bearing block |
| Sheet metal | A four-hole bent bracket with a flat pattern | Bent bracket |
| Laser or waterjet cutting | A motor mounting plate with pilot and hole patterns | Motor plate |
| Turning | A shouldered spacer with an axial bore | Shoulder spacer |
| Assemblies | A bearing, housing, shaft and retainer | Bearing assembly |
| Injection molding | A drafted housing with board-screw bosses and structural ribs | Moulded housing |
The output is CAD for review, not a manufacturing certification. Check
dimensions, fit, material and process requirements, and prototype or obtain
engineering review as appropriate for the part. The case notes
describe what has been checked and what remains open for each model.
Install
Already in ChatGPT and Claude: no install
kernelCAD runs as a connected app in ChatGPT (Apps SDK, with the Studio
viewer and paint review inside the chat) and in Claude / claude.ai (custom
connector). Add it from the chat settings and sign in:
One account everywhere. The coding-agent plugins below use the same hosted
server (https://mcp.kernelcad.com/mcp) and the same kernelCAD sign-in. A model
saved from Claude Code, Codex, Cursor, Gemini or Grok opens at the same Studio
share link (/p/<slug>) you see in ChatGPT or Claude. Sign in with the same
account in each client.
Ask your agent: “look at kernelcad.com and install the mcp”.
Agent-readable installation instructions cover
hosted setup, local CLI setup, and connection verification.
Local MCP server: one line
Run the MCP server over stdio with no install (Node.js 22.12 or newer):
npx -y kernelcad mcp
Claude Code: claude mcp add kernelcad -- npx -y kernelcad mcp
Local CLI
To keep the kernelcad command on your PATH:
npm install --global kernelcad
For a self-contained install that includes Node.js, Linux and macOS users can run: