Kiln
Open-source MCP server + CLI for AI agents to control 3D printers. 273 MCP tools + 107 CLI commands for OctoPrint, Moonraker, Bambu Lab, Prusa Link, Elegoo. Search models, slice STL, queue prints, manage fleets — all via Model Context Protocol.
claude mcp add --transport stdio codeofaxel-kiln python -m kiln
How to use
Kiln exposes both a command-line interface and an MCP server that lets AI agents orchestrate and execute physical fabrication jobs across multiple printers. Through the MCP surface, agents can discover printers on the network, authenticate printers of different types (OctoPrint, Moonraker/Prusa Link, Bambu, Elegoo), queue print jobs via the fulfillment layer (Craftcloud) or external provider integrations, and perform end-to-end print workflows from model search to slicing and printing. The MCP tooling provides a unified set of 353 MCP tools designed for AI agents, enabling tasks such as discovery, authentication, job creation, preflight checks, and print monitoring across a heterogeneous fleet. Kiln also supports external MCP-enabled agents, so you can route jobs between local printers and provider integrations without leaving the same workflow.
To use Kiln via MCP, run the Kiln MCP server (as shown in the installation steps) and connect your MCP-enabled agent to the server. Use the standard MCP tool invocations to perform actions like discovering printers, adding a printer, submitting a job, or querying status. Kiln’s CLI mirrors the MCP surface, so agents can perform tasks through either the CLI or MCP commands, enabling a single, consistent automation experience whether you’re operating locally or orchestrating through a fulfillment or provider network.
How to install
Prerequisites:
- A machine on the same LAN as your printers (or network access to printers)
- Python 3.8+ installed
- Optional: PrusaSlicer or OrcaSlicer for direct in-Kiln slicing, and OpenSCAD for Gemini Deep Think model generation
Step-by-step installation:
-
Clone the Kiln repository or install from an existing clone: git clone https://github.com/codeofaxel/Kiln.git cd Kiln
-
Install Kiln in editable mode (recommended for development or local runs): python -m pip install -e .
-
Set up environment (optional Gemini API key): export KILN_GEMINI_API_KEY=your-gemini-api-key
-
Run the Kiln MCP server (Python module entry point): python -m kiln
-
Verify installation by using Kiln CLI for quick tasks like discovery and authentication: kiln discover kiln auth --name my-printer --host http://octopi.local --type octoprint --api-key YOUR_KEY
-
If you prefer to run via a script or in a container, use the corresponding execution approach (for example, the npm or container-based flows if you adapt them for your environment).
Prerequisites recap:
- Printer network reachability (LAN)
- Printer-specific credentials (API keys or tokens as applicable)
- Optional slicing and Gemini generation tools if you plan to use those capabilities
Additional notes
Environment variables and configuration:
- KILN_GEMINI_API_KEY enables Gemini Deep Think for model-to-geometry generation; set this if you plan to generate printable models from text descriptions. Kiln will skip Gemini-related steps if the key is not provided.
- Ensure printers are reachable on the LAN and that any required API keys (OctoPrint, PrusaLink, Moonraker) are configured when authenticating printers.
- Kiln supports multiple printer types and providers; when mixing local printers with fulfillment or external integrations, Kiln will route jobs automatically based on availability and user preferences.
- For best results, keep PrusaSlicer or OrcaSlicer installed if you intend to slice STL files directly from Kiln. OpenSCAD can be used for AI-generated models when Gemini is enabled.
- If you encounter network or authentication issues, verify firewall rules and ensure the MCP server has access to all printer control endpoints on the LAN.
Related MCP Servers
gemini-cli
An open-source AI agent that brings the power of Gemini directly into your terminal.
bytebot
Bytebot is a self-hosted AI desktop agent that automates computer tasks through natural language commands, operating within a containerized Linux desktop environment.
cursor-talk-to-figma
TalkToFigma: MCP integration between AI Agent (Cursor, Claude Code) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
ai-dev-tools-zoomcamp
AI Dev Tools Zoomcamp is a free course that helps you use AI tools to write better code, faster. We're starting the first cohort of this course on November 18, 2025! Sign up here to join us 👇🏼
bytechef
Open-source, AI-native, low-code platform for API orchestration, workflow automation, and AI agent integration across internal systems and SaaS products.
ai-trader
Backtrader-powered backtesting framework for algorithmic trading, featuring 20+ strategies, multi-market support, CLI tools, and an integrated MCP server for professional traders.