Skip to main content

MCP server + CLI for AI agents to control 3D printers (OctoPrint, Moonraker, Bambu Lab, Prusa Link) — 273 tools for print farm automation

Project description

Kiln

Agentic infrastructure for physical fabrication. Kiln enables AI agents to design, slice, queue, monitor, and fulfill 3D print jobs through a unified MCP (Model Context Protocol) server and CLI.

What Kiln Does

An agent can go from intent to physical object with zero human intervention:

Agent: "Print this sensor mount"
  → Kiln validates the file
  → Checks printer readiness
  → Uploads G-code
  → Starts print
  → Monitors progress
  → Reports completion

Quick Start

1. Install

# From PyPI
pip install kiln3d

# From source (development)
pip install -e ".[dev]"

2. Configure

# Option A: Environment variables
export KILN_PRINTER_TYPE=octoprint
export KILN_PRINTER_HOST=http://octopi.local
export KILN_PRINTER_API_KEY=your_api_key

# Option B: CLI auth (saves to ~/.kiln/config.yaml)
kiln auth --name my-printer --host http://octopi.local --type octoprint --api-key YOUR_KEY

3. Run

# CLI
kiln status
kiln print model.gcode

# MCP Server
kiln serve

4. Connect from Claude Desktop

Add to ~/.config/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "kiln": {
      "command": "kiln",
      "args": ["serve"],
      "env": {
        "KILN_PRINTER_TYPE": "octoprint",
        "KILN_PRINTER_HOST": "http://octopi.local",
        "KILN_PRINTER_API_KEY": "your_api_key"
      }
    }
  }
}

Supported Printers

Backend Status Printers
OctoPrint Stable Any OctoPrint-connected printer (Prusa, Ender, custom)
Moonraker Stable Klipper-based printers (Voron, Ratrig, etc.)
Bambu Lab Stable X1C, P1S, A1 (via LAN MQTT + FTPS)
Prusa Link Stable MK4, XL, Mini+ (local REST API — type: prusaconnect)

Features

  • 273 MCP tools for full printer control, fleet management, slicing, model generation, marketplace publishing, and fulfillment
  • 107 CLI commands with --json output for agent consumption
  • Multi-printer fleet management with job queue and background scheduler
  • Model marketplaces — search/download from MyMiniFactory, Cults3D (Thingiverse deprecated — acquired by MMF, Feb 2026)
  • Slicer integration — PrusaSlicer and OrcaSlicer with auto-detection
  • Text-to-model generation — Meshy AI, Tripo3D, Stability AI, OpenSCAD with auto-discovery registry
  • Printability analysis — overhang detection, thin wall analysis, auto-orientation, support estimation
  • Print DNA — model fingerprinting, crowd-sourced print settings, intelligent settings prediction
  • Marketplace publish — one-click publish to Thingiverse/MyMiniFactory/Thangs with print "birth certificate"
  • Revenue tracking — per-model creator analytics, 2.5% platform fee on Kiln-published models
  • Print-as-a-Service — local vs fulfillment cost comparison, order lifecycle management
  • Failure recovery — 9 failure types classified, automated recovery planning
  • Multi-printer splitting — round-robin and assembly-based job distribution across fleets
  • Generation feedback loop — failed print → improved prompt with printability constraints
  • Smart material routing — intent-based material recommendations (8 materials, printer capability aware)
  • Community print registry — opt-in crowd-sourced settings ("Waze for 3D printing")
  • Fulfillment services — outsource to Craftcloud (150+ print services, no API key required)
  • Safety first — pre-flight checks, G-code validation, temperature limits, optional auth
  • Webhooks — HMAC-signed event notifications for job lifecycle
  • OTA firmware updates — check, update, and rollback printer firmware

Architecture

AI Agent (Claude, GPT, custom)
    |
    | CLI or MCP (Model Context Protocol)
    v
+--------------------+
|        Kiln        |
+--------------------+
  |       |        |        |
  v       v        v        v
OctoPrint Moonraker Bambu  PrusaConnect
  |       |        |        |
  v       v        v        v
Prusa   Voron    X1C/P1S  MK4/XL

Development

pip install -e ".[dev]"
cd kiln && python -m pytest tests/ -v  # 6,339 tests

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kiln3d-0.2.1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kiln3d-0.2.1-py3-none-any.whl (815.2 kB view details)

Uploaded Python 3

File details

Details for the file kiln3d-0.2.1.tar.gz.

File metadata

  • Download URL: kiln3d-0.2.1.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kiln3d-0.2.1.tar.gz
Algorithm Hash digest
SHA256 78c949dd65d83a5dae90a4fc2a9e1b4ad46135fc6a98291d64c576192eb1aaac
MD5 b5b0ac178fb5f428ac3ad88d7f53b849
BLAKE2b-256 704f508b70e9bad2925275319678fccf862020378f5317d31d463fbca3339800

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiln3d-0.2.1.tar.gz:

Publisher: publish.yml on codeofaxel/Kiln

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kiln3d-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: kiln3d-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 815.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kiln3d-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b53f3c7ea4b09b35b3258f3b3efaf61af4da5ca1ee6c02601890426ffcbf01d
MD5 a66fa643956dc2f45feeade54277665d
BLAKE2b-256 46b6472ed8e8b5b2895f98807d46e33be0238b5b1f788ec92952e9cedad69203

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiln3d-0.2.1-py3-none-any.whl:

Publisher: publish.yml on codeofaxel/Kiln

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page