kernelCAD API

kernelCAD API as documented publicly: 5 operations. Contract generated from the documentation by API Evangelist (2026-11-13); not the provider's own document.

GitHub OpenAPI

Operations 5

GET /__kernelcad/session Read the human/agent selection in a local Studio session. #
POST /api/files/local Upload a .gcode file to OctoPrint #
POST /builds async POST /builds #
GET /install.sh Direct installer script for kernelCAD. #
POST /server/files/upload Upload a .gcode file to a Moonraker (Klipper) printer and optionally start the print. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/kernelcad-com:kernelcad-com-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

kernelcad-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: kernelCAD API
  version: '2026-11-13'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-13: 5 operation(s) read from 9 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; kernelCAD has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 0
    documentation: 5
    pages-with-code: 2
    pages-read: 9
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-13'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://kernelcad.com/docs/mcp-tool-reference.json
  - https://kernelcad.com/docs/mcp-tools
  - https://github.com/w1ne/kernelCAD-web
  - https://kernelcad.com/docs/mcp-tools.json
  - https://github.com/w1ne/kernelCAD-web/blob/develop/README.md
  - https://kernelcad.com/schema/mcp-tools.json
  - https://kernelcad.com/schema.json
  - https://kernelcad.com/docs/capability-inventory.json
  - https://github.com/w1ne/kernelCAD-web/pull/1195
paths:
  /__kernelcad/session:
    get:
      operationId: get_kernelcad_session
      tags:
      - Kernelcad
      summary: Read the human/agent selection in a local Studio session.
      x-source: https://kernelcad.com/docs/mcp-tools.json
      parameters:
      - name: studio_url
        in: query
        required: true
        schema:
          type: string
        description: Local Studio HTTP origin, e.g. http://localhost:5173.
      - name: session
        in: query
        required: true
        schema:
          type: string
        description: Studio sessionToken from GET /__kernelcad/session?script=<path>. Use the same script as the viewer.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetKernelcadSessionResponse'
      x-evidence:
        kind: documentation
  /api/files/local:
    post:
      operationId: post_api_files_local
      tags:
      - Api
      summary: Upload a .gcode file to OctoPrint
      x-source: https://kernelcad.com/schema/mcp-tools.json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiFilesLocalRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiFilesLocalResponse'
      x-evidence:
        kind: documentation
  /builds:
    post:
      operationId: post_builds
      tags:
      - Builds
      summary: async POST /builds
      x-source: https://github.com/w1ne/kernelCAD-web/pull/1195
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
        description: Idempotency key for deduplication
      - name: inputHash
        in: header
        required: false
        schema:
          type: string
        description: Hash of the input for deduplication
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /install.sh:
    get:
      operationId: get_install_sh
      tags:
      - Install
      summary: Direct installer script for kernelCAD.
      description: The page provides a curl command to download the installer script from https://kernelcad.com/install.sh.
      x-source: https://github.com/w1ne/kernelCAD-web
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /server/files/upload:
    post:
      operationId: post_server_files_upload
      tags:
      - Server
      summary: Upload a .gcode file to a Moonraker (Klipper) printer and optionally start the print.
      x-source: https://kernelcad.com/docs/mcp-tools.json
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostServerFilesUploadRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostServerFilesUploadResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetKernelcadSessionResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: Overall success flag.
        selection:
          type: string
          description: Null or object with selection details.
        revision:
          type: integer
          description: Revision number of the selection.
        modelGeneration:
          type: integer
          description: Model generation counter.
        error:
          type: string
          description: Error message if any.
    PostApiFilesLocalRequest:
      type: object
      properties:
        gcode_path:
          type: string
          description: Path to the .gcode file on disk.
        protocol:
          type: string
          description: Must be "octoprint" for this endpoint.
        host:
          type: string
          description: Printer hostname or IP.
        port:
          type: number
          description: Override the protocol default port.
        api_key:
          type: string
          description: OctoPrint API key (Settings -> API).
        dry_run:
          type: boolean
          description: Validate connectivity/authentication only, without uploading or starting a print.
      required:
      - gcode_path
      - protocol
    PostApiFilesLocalResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: Indicates success of the upload request.
        executionId:
          type: string
          description: Identifier for the upload operation.
        error:
          type: string
          description: Error message if the request failed.
    PostServerFilesUploadRequest:
      type: object
      properties:
        gcode_path:
          type: string
          description: Path to the .gcode file on disk.
        protocol:
          type: string
          description: Protocol to use (must be "moonraker" for this endpoint).
        host:
          type: string
          description: Printer hostname or IP.
        port:
          type: number
          description: Override the protocol default port.
        api_key:
          type: string
          description: OctoPrint API key (Settings -> API).
        access_code:
          type: string
          description: Bambu LAN-mode access code (printer settings -> LAN Only Mode).
        serial:
          type: string
          description: Bambu printer serial number (required to start a print unless start_print is false).
        model_3mf_path:
          type: string
          description: 'bambu-lan only: model .3mf from export format ''3mf'' to package the G-code into (the uploaded .gcode.3mf).'
        printer:
          type: string
          description: Printer profile id; checked against protocol before upload.
        filename:
          type: string
          description: 'Uploaded file name (default: ''kernelcad.gcode''; ...'
    PostServerFilesUploadResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: Overall success flag.
        executionId:
          type: string
          description: Identifier for the print job execution.
        error:
          type: string
          description: Error message if any.
        errorCode:
          type: string
          description: Machine‑readable error code.
        stage:
          type: string
          description: '''resolve'' | ''evaluate'' | ''open_in_studio'' on failure.'
        dryRunNotEvidence:
          type: boolean
          description: Present when dryRun:true — dryRun success is not evidence the solid built.
tags:
- name: Api
- name: Builds
- name: Install
- name: Kernelcad
- name: Server