Free open-source tool

kerfkit: check and fix laser cutting files

Not a developer? Use the free laser SVG checker in your browser, no install. kerfkit runs the same kind of checks in a terminal, a script or an AI assistant: check SVG and DXF files before they reach the laser, repair the safe problems, and work out slot widths from your sheet and kerf.

What kerfkit does

  • Checks SVG and DXF files before you press start: real size and units, colour to layer (cut, score, engrave), live text, stray nodes, zero-length segments, open outlines, double cut lines, loose islands, overlapping parts, bridges and holes that are too thin, bed size, slot widths against your sheet and finger depth. Every problem comes with its position in millimetres.
  • Fixes the safe problems and writes a clean millimetre SVG: real size, zero-length segments and stray nodes removed, colours mapped to layers, double cuts merged, tiny gaps closed, optional kerf compensation. Thin bridges, small holes and slot widths are design decisions, so it reports them and leaves them alone.
  • Works out the numbers: the slot width to draw for your measured sheet and kerf, your kerf from one test cut (five methods), and refits the closed slots of a file to a new thickness.
  • Makes test files: a slot gauge with its key, and a small test sheet with a 20 mm kerf square.

A messy laser panel: an open hole, a double line, a stray node and pixel units, as kerfkit check reports them The same panel after kerfkit fix: millimetre units, red hairline cuts, black engrave; the check passes

kerfkit checks and fixes files you already have. To make the whole design, from a slot-together box to a landmark model laid out for your sheet, use MocMakes Fit.

Install

Python 3.10 or newer. Runs on your own computer, on the CPU, with no network calls.

pip install "kerfkit[dxf] @ git+https://github.com/junixlabs/kerfkit"   # CLI + Python, with DXF input
pip install git+https://github.com/junixlabs/kerfkit                    # SVG only

Or run it once without installing, with uv:

uvx --with ezdxf --from git+https://github.com/junixlabs/kerfkit kerfkit check my-file.svg

Claude Code plugin

/plugin marketplace add junixlabs/kerfkit
/plugin install kerfkit@junixlabs

This adds the MCP server, a skill that knows the check, fix, re-check, slot width and test cut routine, and these commands:

  • /kerfkit:check my-box.svg 3 0.15: check a file for 3 mm sheet and 0.15 mm kerf.
  • /kerfkit:fix my-box.svg: write a repaired copy next to the file.
  • /kerfkit:feedback: draft a GitHub issue about kerfkit.

The plugin also lists an optional remote server for your own MocMakes Fit projects (step-by-step for ChatGPT and Claude: Use Fit from your AI assistant). It is only contacted if you sign in to it; kerfkit's own tools stay on your computer and need no account.

Claude Desktop (one click)

Download kerfkit-mcp-<version>.mcpb from the latest release and open it. It needs a Claude Desktop version that supports MCP bundles and installs its Python dependencies with uv.

Any MCP client (Cursor, VS Code, Claude Desktop by hand)

{
  "mcpServers": {
    "kerfkit": {
      "command": "uvx",
      "args": ["--with", "ezdxf", "--from", "git+https://github.com/junixlabs/kerfkit", "kerfkit-mcp"]
    }
  }
}

Claude Code without the plugin: claude mcp add kerfkit -- uvx --with ezdxf --from git+https://github.com/junixlabs/kerfkit kerfkit-mcp

kerfkit is listed in the Official MCP Registry as io.github.junixlabs/kerfkit.

Commands

CommandWhat it doesExample
checkRuns every check, pass / warn / fail, with locations in mm. Exits 1 on a failure, so it works as a step in a script or CI.kerfkit check panel.svg --thickness 3 --kerf 0.15 --bed 400x300
fixSafe repairs, writes a new millimetre SVG (SVG input).kerfkit fix panel.svg -o panel.fixed.svg
slotSlot width to draw: measured thickness − kerf + clearance. --drawn judges a slot already in a file.kerfkit slot --thickness 3.2 --kerf 0.15
kerfYour kerf from a test cut: square, part, hole, comb or slot gauge.kerfkit kerf square 20.16 19.84
refitRedraws every closed rectangular slot at the width for your sheet, keeping centre, angle and length.kerfkit refit shelf.svg -o shelf.3.2.svg --thickness 3.2 --kerf 0.15
gaugeSlot gauge with five notches around thickness − kerf, each labelled with the kerf to use, plus its key.kerfkit gauge -o gauge.svg --thickness 3
testsheetSmall test sheet: slot gauge, key and a 20 mm kerf square.kerfkit testsheet -o test.svg --thickness 3

--profile switches checks on for a kind of job: generic (default), strict, box, tray, kerf-test, ornament, name, silhouette, engrave, layered, refit. Check a slot gauge with --profile kerf-test: its notches differ on purpose. Add --json to any command for machine-readable output.

MCP tools

ToolWhat it does
check_laser_fileChecks an SVG or DXF file (a path or SVG text) before cutting and returns each check with locations.
fix_laser_svgApplies the safe repairs to an SVG and writes a clean millimetre SVG.
slot_widthSlot width to draw for a sheet thickness, kerf and clearance.
kerf_from_testWorks out the kerf from the measurements of a test cut.
refit_slotsRefits the closed rectangular slots of an SVG to a real thickness and kerf.
make_slot_gaugeGenerates a slot gauge SVG and its key.
make_test_sheetGenerates a small test sheet SVG: slot gauge, key and kerf square.

The server reads and writes local files only. Then ask things like "check ~/Downloads/box.svg for my 3 mm ply, kerf 0.15" or "make me a slot gauge for 6 mm MDF".

Python

from kerfkit import check_file, fix_svg, slot_width

rep = check_file("panel.svg", thickness_mm=3.0, kerf_mm=0.15, bed_mm=[400, 300])
print(rep["pass"], [c["id"] for c in rep["checks"] if c["status"] == "fail"])
slot_width(3.2, kerf=0.15, clearance=0.05)   # 3.1

Limits today

  • DXF is read for checks; fix and refit take SVG. No DXF writing and no LightBurn or xTool project files yet.
  • refit moves closed rectangular slots only. Edge notches, tabs and finger joints are reported by check, not moved.
  • A passing check is a geometry check against cut rules. Machines, focus and materials vary, so cut the small test sheet first.

Source, issues and licence

Code, releases and the changelog live on GitHub: github.com/junixlabs/kerfkit. Bug reports with a sample file are the most useful thing you can send: open an issue or start a discussion. MIT licence.

Made by MocMakes. Last updated 5 December 2026 (kerfkit 0.1.3).