kernelcad-mcp

kernelcad-mcp is a skill for Claude Code from w1ne/kernelCAD-web. It costs 51 tokens per session (19,700 once invoked), scanned A, original, MIT.

Instructions for using KernelCAD’s live-model MCP connection, which lets an agent inspect or edit an already evaluated computer-aided design model in memory. MCP is a way for software tools to expose actions to an agent.

In plain words
What is it for?
Use it to evaluate scripts, inspect the tool registry, review model parts, make live edits, and distinguish quick capture errors from later geometry or manufacturing checks.
Why use it?
It avoids rerunning the full command-line process for every small model change and provides a quick dry-run check before a full evaluation.

Skill for Claude Code

Written for Claude Code: UserPromptSubmit hook event. Also seen: mentions Claude Code.

Good fit Use it to evaluate scripts, inspect the tool registry, review model parts, make live edits, and distinguish quick capture errors from later geometry or manufacturing checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/w1ne/kernelcad-web/kernelcad-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add w1ne/kernelCAD-web --skill kernelcad-mcp
Clone the repo
git clone --depth 1 https://github.com/w1ne/kernelCAD-web

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kernelcad-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-mcp/github.svg)](https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-mcp)
Your own site
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-mcp"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kernelcad-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/w1ne/kernelcad-web/kernelcad-mcp"><img src="https://agentmods.dev/badge/skills/w1ne/kernelcad-web/kernelcad-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 19,700 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 140
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.19700
Opus 5.5 $0.00020 $0.07880
Sonnet 5.5 $0.00010 $0.03940
Haiku 4.5 $0.00005 $0.01970

Measured yesterday against content hash 56030d7af25a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kernelcad-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (cookbook/snippets/Q-S6-inspect-first-build-after.kcad.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/agent/skills/kernelcad-mcp/SKILL.md · 517 lines

How it starts

The opening of the file, as written. The whole thing — 517 lines — stays where its author put it; the contents beside it link to each section on GitHub.

kernelCAD — MCP companion

When to load this skill

Load when kernelcad mcp is available and you need to inspect or edit a live model without re-running the full CLI on every change. The MCP server exposes dynamic introspection tools that operate on evaluated in-memory state.

MCP tool surface

When you have kernelcad mcp available, use the MCP tools for dynamic introspection rather than re-running the CLI. The MCP server exposes the current tool registry, including:

Point-cloud analysis

  • fit_plane({ points }) — fit an orthogonal least-squares plane to at least three non-collinear XYZ triples (up to 100,000). Returns the centroid, deterministic unit normal, signed orthogonal residual per point, RMS residual and maximum absolute residual. Pass points parsed by the caller from a scan or mesh; this tool estimates parameters only and does not parse files or create a surface body.

Evaluation and introspection

  • write_bom({ handoff | handoff_json | handoff_path, catalog_parts?, output_path?, overwrite? }) — merge a LabWired handoff BOM with optional KernelCAD catalog MPNs/prices; writes CSV and returns headers, formula-neutralized Sheets-ready sheets_rows, and CSV contents/path. Existing CSV destinations are preserved unless overwrite: true. The tool makes no Google API calls.

  • evaluate_script({ file? code?, dryRun? }) — pass/fail + featureCount + diagnostics + sceneSummary (valid, volume in mm³, BREP faceCount, conservative world bounding size: [x,y,z] in mm); plus a parts summary { count, names } when the scene is assembly-built (absent for single-shape / non-assembly scripts). dryRun: true is the fast iteration mode: transpile + capture + capture-light checks without building solids, DFM gates, or meshing — milliseconds instead of seconds. A dry run catches script throws, capture-time API misuse, and assembly validity-gate failures, but NOT lowering failures (failed booleans, oversized fillets) or dfmSpec diagnostics, and it leaves the active session untouched — finish with a full evaluate_script before using session-dependent tools. A model with moving joints or motion intent (an animation track, mechanicalJoint, transmission) also gets mechanismSummary — { verdict, maxLevel, statement, checked, skipped, failures } (maxLevel: error broken, warning not checked, ok checked). The verdict also fails an animation key that drives a joint past its limits (kinematic.pose.out-of-limits), a closed loop that does not close (assembly.mate.over-constrained / assembly.solver.did-not-converge, naming the mate) and a loop mate that comes apart at a swept pose (mechanism.mate-unsatisfied); a moving DOF with no limits is listed in skipped (range not checked), not failed. Quote statement: Motion checked says what ran, Motion not checked is not a pass (say it was not checked), Mechanism broken names the joint. An animated param or drive on a fastened joint fails as mechanism.motion-on-fixed-joint: make that joint revolute/prismatic and pass the param as its pose; never turn a fastened part by rotating its geometry. Studio shows the same verdict as a badge; saving is never blocked by it.

  • diff_scripts({ baseFile? baseCode?, file? code? }) — structured geometric delta between a baseline script and a revision. Returns per-part added/removed/renamed/changed (volume mm³ + exact bbox deltas; numbers match inspect({ of: 'part-stats' })), interference totals per side + deltaMm3 with per-pair detail, mate-graph changes (type, connectors, pose, limits), and param changes (value/min/max). Single-shape scripts diff as one (root) pseudo-part. Use after editing a script to verify exactly what changed physically before re-rendering; read-only, never touches the active session.

  • diff_geometry({ baseFile? baseCode?, file? code?, params?, render? }) — the deeper sibling of diff_scripts, for when a volume/bbox delta is ambiguous: a boss that grew and a pocket that deepened report the same |ΔV|, and a part that only moved reports ΔV = 0. The revised side is either another script (file/code) or the SAME script re-lowered with params overrides (declared param() name → new value — the one-script form a parameter sweep asks for). Bodies pair by name, falling back to declaration-order positional pairing; leftovers land in unmatched and raise diff.body.unmatched. Per matched body: addedMm3 = volume(revised − base), removedMm3 = volume(base − revised), commonMm3 = volume(base ∩ revised), exact bbox with min/max/extent deltas, face/edge/hole count deltas, maxDeviationMm (two-sided discrete Hausdorff distance), and a verdict — identical | moved | resized | topology-changed (precedence: topology-changed > resized > moved > identical). Branch on the verdict; cite the numbers. { render: true } also writes an overlay PNG — added green, removed red, unchanged material as a translucent ghost — through the render_preview pipeline; the scene itself is a re-runnable diff-overlay.kcad.ts over lossless BREP sidecars in render.out_dir. It fails open: the numeric diff is returned either way, with render.error naming what the render pipeline needs. Read-only. diff_scripts sets deeperDiffAvailable when its own numbers are not enough to say what physically changed; follow that pointer here instead of reaching for a render.

  • inspect({ of: 'features', file? code? }) — array of feature summaries (kind/id/params/inputs)

  • inspect({ of: 'assemblies', file? code? }) — captured assembly intent: assemblies, parts, named connectors, fixed connections, joints, and aggregate models

  • inspect({ of: 'assembly', file? | code?, assembly? }) — physical assembly inventory for agents: named parts, bboxes, explicitly assigned engineering material (from assembly.part(..., { material })), connectors, mates, mechanical review facts, disconnected solids, unexplainedGeometry, and a next-action prompt. componentCount is a disconnected-mesh diagnostic only; it is not a stable cell/region identity and cannot be assigned an independent material. Assign separate materials by modeling separate named assembly parts. Run this before accepting visually suspicious mechanisms; random/floating geometry must be repaired or explicitly justified by the original prompt.

  • inspect({ of: 'step', file }) — inspect a STEP file directly, without evaluating a script ({ file } is required; no { code } mode): solid tree (index + best-effort name), per-solid exact bounding box + volume + face count, and detected cylindrical holes (axis origin + direction, diameter, depth, blind/through; co-axial seam-split faces merge into one bore). A bore whose wall is breached (a slot, pocket, or nearby fillet/chamfer runs into it) is still reported, flagged partial: true with angularCoverageDeg; the report then says holeDetection: 'heuristic' (also when an ambiguous concave cylinder was left out) — treat those holes as candidates to confirm with a render or section. 'exact' means every concave cylinder was a full bore or clearly a fillet/slot end. depthMm is the cylindrical wall length: a mouth chamfer/fillet shortens it. Run this before placing an imported vendor part — find mounting-hole positions and verify the part-local frame from exact geometry instead of measuring renders. CLI equivalent: kernelcad inspect step <file.step>.

  • inspect({ of: 'shape', file? code?, feature_id? }) — volume/surfaceArea/bbox of a feature (default: last)

  • inspect({ of: 'topology', file? code?, feature_id? }) — canonical face names + edge count

  • inspect({ of: 'face-edges', file? code?, feature_id?, face_name }) — boundary edges of a face (centroid, length, isClosed)

  • inspect({ of: 'edges', file? code?, feature_id? }) — enumerate all edges (index, centroid, length, isClosed)

  • inspect({ of: 'faces', file? code?, feature_id? }) — enumerate all faces with area and centroid

  • inspect_nurbs({ file? code?, feature_id? }) — read captured NURBS data from a nurbsCurve/spline3d feature: degree, knots and multiplicities, poles, weights, parameter range, rational (weights not all equal), uniformWeights (all equal), and hasNonUnitWeights (any differs from 1). This reports authored curve data, not post-operation B-rep edge/face extraction; surfaces and blends are not supported.

  • apply_surface_blend({ code, shape_binding, operation?, radius?, distance?, selector?, continuity? }) — insert a Shape.fillet(...) or Shape.chamfer(...) line before the script return, evaluate the patched code, and return new_code plus diagnostics and scene summary. selector uses the existing EdgeSelector conventions (@kc[...] edge ref/query or { face: canonical name | face label | FaceQuery descriptor }); omit it to affect all sharp edges. Fillets accept continuity: 'G1' | 'G2' through the existing public API; chamfers use distance. This authors a fillet/chamfer operation only. It does not extract blend-surface NURBS poles; that still requires kernel surface extraction.

  • inspect({ of: 'face-labels', file? code?, feature_id? }) — canonical face names resolvable on a feature

  • query({ mode: 'lineage', file? code?, feature_id, ref }) — walk the HistoryMap chain that produced a named face/edge ref; returns { chain, usedFallback }.

Read the full file on GitHub · 517 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 56030d7af25a
  2. 2d ago Changed 5d109beb89f0
  3. 5d ago Changed · +45 lines aa196c6c087d
  4. 6d ago Changed · +6 lines 9badce8d07f4
  5. 7d ago Changed · +20 lines cb32af8d509a
  6. 9d ago Changed · +10 lines 388ffd3ec312
  7. 10d ago Changed b53765d7bbfe
  8. 11d ago Changed 3ebd3de8625c
  9. 12d ago Changed 3a7545dbd087
  10. 13d ago First seen · 436 lines · 51 tokens per session scan A a3ec11d90af1

Subscribe to this mod's changes

kernelcad-mcp is a skill published in the GitHub repository w1ne/kernelCAD-web (33 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 19,700 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

simplecadapi

Build, assemble, inspect, reconstruct, and export parametric CAD models with the SimpleCADAPI Python SDK. Use for SimpleCAD geometry modeling, constrained sketches, parts and assemblies, standard gears and bearings, STEP/BREP inspection and reconstruction, vector-PDF drawing reconstruction, durable product packages…

NiJingzhe/SimpleCADAPI · 71 tokens

aieng-cad-authoring

Active MCP-first CAD authoring skill for AIENG Workbench. Use when the user asks to create, design, draft, model, or iteratively build CAD geometry through the active cad. MCP tools. Do not use for solver/result review, schema/library implementation, or editing legacy IR plans.

armpro24-blip/cad-cae-copilot · 67 tokens

aieng-closed-loop-copilot

MCP-first closed-loop CAD/CAE copilot skill for improving an existing solved design against explicit targets. Use when the user asks for bounded design iteration using editable CAD parameters, solver reruns, and evidence-backed comparison.

armpro24-blip/cad-cae-copilot · 54 tokens

rhino

Automate Rhino modeling through RhinoCommon, work with Grasshopper data trees, and configure Rhino.Compute workflows.

alivirgo/Major-AI-Skills · 24 tokens

mechanical-drafting-gbt

Create, revise, audit, validate, and present mechanical CAD using Chinese GB/T drafting conventions. Use for AutoCAD/AutoCAD MCP; parametric 2D/3D parts, complex assemblies, mechanisms, engines, gears, machined parts, consumer products, enclosures, and powered appliances; DXF/DWG/PDF/STEP and model-based definition…

beiming183-cloud/AutoCAD-skills · 145 tokens

modulor

2D drafting + 3D modeling via Modulor (agent-native CAD). Use when the user asks to draw floor plans, model buildings or parts, produce DXF/SVG drawings, STL/GLB meshes, IFC BIM models, or to import and modify existing DXF drawings. Requires pip install modulor.

bcllcc/modulor · 69 tokens