kernelcad-mcp

kernelcad-mcp is a skill for Claude Code, Codex from w1ne/kernelCAD-web. It costs 51 tokens per session (11,148 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 CodeCodex

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.

agentmods
npx agentmods add skills/w1ne/kernelcad-web/kernelcad-mcp
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, Codex.

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.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.svg" alt="Measured on agentmods" 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 11,148 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.11148
Opus 5 $0.00026 $0.05574
Sonnet 5 $0.00010 $0.02230
Haiku 4.5 $0.00005 $0.01115

Measured 4d ago against content hash 03fb595dbf16, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d ago.

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 · 386 lines

How it starts

The opening of the file, as written. The whole thing — 386 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:

Evaluation and introspection

  • evaluate_script({ file? code?, dryRun? }) — pass/fail + featureCount + diagnostics; 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 OCCT lowering, 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.
  • 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.
  • 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, connectors, mates, mechanical review facts, disconnected solids, unexplainedGeometry, and a next-action prompt. 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). 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({ 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 · 386 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. 4d ago First seen · 386 lines · 51 tokens per session scan A 03fb595dbf16

Subscribe to this mod's changes

kernelcad-mcp is a skill published in the GitHub repository w1ne/kernelCAD-web (17 stars, last pushed 6d ago), licensed MIT. It adds 51 tokens to every session and 11,148 once invoked, about $0.0003 per session on Opus 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

rhino

Comprehensive operational skill specification for Anthropic Claude to automate, script, troubleshoot, and optimize McNeel Rhinoceros (Rhino 8), RhinoCommon API, Grasshopper visual data trees, and Rhino.Compute.

alivirgo/Major-AI-Skills · 47 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

21st-ui

Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.

21st-dev/magic-mcp · 63 tokens

simplecadapi

Thin SimpleCAD SDK reference skill focused on the public API surface, core types, and current modeling workflows.

NiJingzhe/SimpleCADAPI · 25 tokens

form-list-layout

Configure what a form and a list look like — sysuiform, sysuisection and sysuielement for forms; sysuilist, sysuilistelement and sysuirelatedlist for lists; sysfilter for saved filters. Views, why a field must exist in the dictionary first, and what snowcreatemenu really writes.

serac-labs/serac · 70 tokens