com.kernelcad/kernelcad MCP Server
com.kernelcad/kernelcad
Agent-first CAD with editable .kcad.ts source, deterministic validation, and OpenCASCADE kernel.
What is the com.kernelcad/kernelcad MCP server?
kernelCAD is an agent-first CAD runtime that turns mechanical intent into editable `.kcad.ts` source code, deterministic validation evidence, and exportable manufacturing artifacts. Built on OpenCASCADE, it prioritizes source-first workflows, feature history, and validation over traditional CAD UI paradigms.
kernelCAD is a headless CAD system designed for AI agents and programmatic workflows. Instead of a graphical interface, you write parametric designs in TypeScript (.kcad.ts), evaluate them deterministically, validate constraints and clearances, and export STEP/STL files. It includes an MCP server for integration with Claude and other AI tools, plus a browser-based review cockpit for inspecting generated designs.
How to install com.kernelcad/kernelcad
Copy-paste configuration for popular MCP clients.
Tools & capabilities
Tools this server exposes to the agent.
review_cad— Browser-based 3D preview and inspection tool for reviewing generated designs and validation results.model introspection— APIs to inspect model parameters, assemblies, features, and diagnostics.export helpers— Tools to export designs to STEP and STL formats.generate_kcad_from_prompt— (Cloud tier) Convert natural-language design briefs into .kcad.ts source code.evaluate— Deterministically evaluate and validate .kcad.ts models for constraints, hardware fit, and clearances.render inspect— Generate deterministic inspection bundles with RGB, mask, depth, and normals channels for visual validation.
Use cases
- Generate parametric mechanical parts from natural-language briefs and refine them iteratively with AI agents.
- Validate CAD designs deterministically for constraints, hardware fit, and clearances before manufacturing.
- Export production-ready STEP and STL files from TypeScript source with full feature history and provenance.
- Review and inspect AI-generated CAD designs using a browser-based 3D cockpit with multi-channel rendering.
- Integrate CAD automation into Claude Desktop or other MCP-compatible AI tools for hands-free design workflows.
com.kernelcad/kernelcad MCP server FAQ
kernelCAD is an agent-first CAD runtime that lets you design mechanical parts by writing TypeScript source code (.kcad.ts) instead of using a graphical interface. It includes deterministic validation, STEP/STL export, and an MCP server for AI integration.
Yes. The CLI and local MCP server are free and open-source (MIT license). A hosted cloud tier offers AI-generated part creation (3 parts/month free) and unlimited introspection/review tools.
Install via `npm install -g kernelcad`, then add an entry to your Claude Desktop config file pointing to `kernelcad mcp`. Restart Claude Desktop and the kernelCAD tools will appear in the tools list.
kernelCAD exports STEP and STL files for manufacturing, plus PNG/MP4 renders, JSON validation scores, and inspection bundles with RGB, depth, mask, and normals channels.
Local use requires no auth. For cloud features (AI-generated parts), sign in at app.kernelcad.com/connect and use the provided token with `kernelcad mcp --cloud --token <…>`.
kernelCAD is built on OpenCASCADE, with Replicad as a kernel implementation detail where still used. It runs headless in Node.js or Web Workers without a DOM.
README (reference)
Source of truth, from the repository.
kernelCAD - CAD runtime for agents
kernelCAD turns mechanical intent into editable .kcad.ts source,
deterministic review evidence, and exportable manufacturing artifacts.
The core loop is source-first: design brief -> editable .kcad.ts ->
evaluated model -> deterministic validation -> guided revision -> export package.
kernelCAD is not trying to be a browser clone of Fusion, Onshape, or SolidWorks. Replicad/OpenCASCADE are the kernel layer. kernelCAD is the agent-first workflow layer above the kernel: deterministic CAD source, feature history, diagnostics, validation, variants, and human review.
Philosophy
- Agent-First: The primary interface is
.kcad.ts, CLI, and MCP. The UI reviews and steers generated designs. - Editable Source: Geometry is deterministic source code with explicit feature history, params, assemblies, and diagnostics.
- Validation-Centered: Useful CAD output needs deterministic review for constraints, hardware fit, clearances, and exportability.
- Workflow Over Primitives: Product progress is measured by intent-level workflows, not by copying every traditional CAD button.
Agent workflow
For agents and contributors, .kcad.ts source is the design source of truth.
Rendered PNG/MP4 files, STEP/STL exports, score JSON, and capture-run metadata
are generated evidence or deliverables. Prompt briefs, source files, and
provenance metadata remain source. Change source first, regenerate explicit
targets, and avoid broad artifact refreshes unless you are intentionally
rebuilding a demo or release bundle.
Use deterministic checks before visual judgment:
kernelcad evaluate model.kcad.ts
# then run review_cad from an MCP client connected through `kernelcad mcp`
kernelcad export step model.kcad.ts -o model.step
kernelcad export stl model.kcad.ts -o model.stl
When a rendered artifact is produced, inspect the image/video itself and report what is visible: proportions, interfaces, floating geometry, occlusion, camera framing, and whether required features are legible. Passing tests are not a substitute for visual evidence.
When visual evidence matters, keep a deterministic inspection bundle:
kernelcad render inspect model.kcad.ts model.inspect
The v1 bundle writes a manifest and canonical RGB views. It can also emit
machine-readable mask, depth, and normals channels:
kernelcad render inspect model.kcad.ts model.inspect --channels rgb,mask,depth,normals
Use --focus <names> or --hide <names> when a specific feature id or
assembly part needs isolated review. Keep richer channels in the same manifest
packet; do not replace the canonical RGB views.
For real hardware, prefer catalog/vendor geometry via lib.fromSTEP(...)
instead of fake placeholder boxes or cylinders. This keeps mounts, clearances,
and mechanism checks tied to physical components.
Features
- Headless Core: Run CAD operations in Node.js or Web Workers without a DOM.
- Agent API: kernelCAD APIs for params, assemblies, NURBS, SDF bodies, sheet metal workflows, introspection, and feedback loops.
- Review Cockpit: Browser-based 3D preview for inspecting generated designs and validation results.
- Standard Exports: STEP/STL generation.
- Robust Kernel: Built on OpenCASCADE, with Replicad kept as a kernel implementation detail where it is still used.
Get Started
npm install -g kernelcad
Drop this in bracket.kcad.ts:
const w = param('Width', 60, { unit: 'mm' });
const h = param('Height', 40, { unit: 'mm' });
const t = param('Thickness', 5, { unit: 'mm' });
const base = box(w, h, t);
const hole = cylinder(t + 2, 4).translate(w / 2, h / 2, -1);
return base.subtract(hole).fillet(1);
Run it:
kernelcad evaluate bracket.kcad.ts
kernelcad export stl bracket.kcad.ts -o bracket.stl
That's it. For agents: kernelcad mcp runs an MCP server with dynamic model
introspection tools. See SKILL.md (bundled with the install) for the full API
surface and authoring guide.
Use with Claude Desktop
kernelCAD runs as an MCP server, so Claude Desktop can drive it locally. After
npm install -g kernelcad, add an entry to your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"kernelcad": {
"command": "npx",
"args": ["-y", "kernelcad", "mcp"]
}
}
}
Restart Claude Desktop. The kernelCAD MCP tools (review_cad, model
introspection, export helpers, etc.) appear in the tools list.
For prompt-driven authoring against the hosted gateway, sign in at
app.kernelcad.com/connect and use the
generated kernelcad mcp --cloud --token <…> snippet. The hosted surface adds
generate_kcad_from_prompt (turn a natural-language brief into a .kcad.ts
source) on top of the introspection and review tools, and serves the
kernelcad-authoring skill as an MCP resource so Claude Desktop loads it
automatically on connect. Free tier: 3 LLM-generated parts per month;
introspection and review tools are unlimited.
A one-shot
kernelcad install --claude-desktopcommand that edits this config for you is on the next slice — until then the snippet above is the interim path.
Contributing
Web app + dev workflow (clone the repo, npm install, npm run dev) for contributors who want to hack on the kernel or the visual debugger:
git clone https://github.com/w1ne/kernelCAD-web.git
cd kernelCAD-web
npm install
npm run dev # web visual debugger at localhost:5173
npm run build:cli # build the CLI bundle into dist/cli/
npm run test # full vitest suite
npm run qc # quick quality gate (lint + typecheck + tests)
Attribution and referral links
Exported files name kernelCAD in their metadata field (STEP FILE_NAME, GLB
asset.generator, the STL header, a DXF or XML comment), and public viewer
pages show a small "Made with kernelCAD" link. Some tools return vendor links
that can carry a referral tag; results with a tagged link include the
disclosure "Some links are referral links; kernelCAD may earn a commission."
A vendor with no tag gets the clean URL. Self-hosters and forks change
all of it in two files, or with KERNELCAD_REFERRAL_<VENDOR> and
KERNELCAD_REFERRALS=off. See ATTRIBUTION.md.
License
MIT — see LICENSE. The kernelCAD name is covered by the trademark policy.
Related MCP servers

com.kettlelogic/mcp-kettlelogic
MCP server exposing Kettle Logic insight articles & industry guidance as tools + resources.
Live threat intel for Claude — CVE, KEV predictions, IP lookup, malware hashes. Free, no API key.
View repository →Free, no-account verification of KeyHalve-sealed documents. Read-only; never receives keys.
Keyline Icons
Search and retrieve 1,233 icons in multiple styles as SVG or React imports—no API key required.
Keysvo: the site's own MCP server — dataset; every answer cites the site.
View repository →Auto-apply to jobs: matches your CV, tailors a fresh CV per posting, and applies for you.


