repetier-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@repetier-mcpWhat's the hotend temperature?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
repetier-mcp
MCP server for Repetier-Host / Repetier-Server -- monitor, control and diagnose your 3D printer with AI.
Connect Claude (or any MCP-compatible AI) directly to your 3D printer. Get live temperature readings, job progress, intelligent error diagnosis, and printer-specific repair guidance -- including a built-in knowledge base for the Artillery Sidewinder X1.
English README | Espanol
What you can do
Tell Claude... | What happens |
"What's the printer temperature?" | Returns hotend + bed temps in real time |
"My printer has layer shifting problems" | Diagnoses causes, gives step-by-step repair guide |
"Send M503 to read current settings" | Sends G-code, returns EEPROM values |
"Check if temps are stable" | Takes 5 readings over 10s, detects instability |
"Upload and print benchy.gcode" | Uploads file to server and starts printing |
"Pause the print" | Pauses current job via Repetier-Server |
"Set bed temperature to 60" | Sets heated bed to 60C |
"What port is my printer on?" | Scans serial ports and auto-detects printer |
Related MCP server: Bambuddy MCP Server
Quick start
Install from GitHub
pip install git+https://github.com/Nstalej/repetier-mcp.gitOr with uv (recommended -- faster, no dependency conflicts):
pip install uv
uv pip install git+https://github.com/Nstalej/repetier-mcp.gitFor serial mode (direct USB), also install pyserial:
pip install "repetier-mcp[serial] @ git+https://github.com/Nstalej/repetier-mcp.git"For development:
git clone https://github.com/Nstalej/repetier-mcp.git
cd repetier-mcp
pip install -e ".[dev]"
pytestConnection Modes
repetier-mcp supports two connection modes:
Mode 1: Repetier-Server (recommended)
Connects via HTTP REST API to Repetier-Server running on your network. Supports all features including file upload, pause/resume, and job management.
Mode 2: Direct Serial (USB)
Connects directly to the printer via USB/serial port (pyserial).
Classic mode for Repetier-Host users. Requires the serial extra.
Configuration
Repetier-Server mode
Variable | Default | Description |
|
| Set to |
|
| Full URL of Repetier-Server |
| (empty) | API key from Repetier-Server |
| (empty) | Printer slug/name in server |
|
| Printer model for diagnostics |
Direct USB / serial mode
Variable | Default | Description |
|
| Connection mode: |
| (auto) | Serial port, e.g. |
|
| Baud rate -- use |
|
| Printer model for targeted diagnostics |
Auto-detection: If
REPETIER_SERVER_URLis set andREPETIER_MODEis not, the server mode is auto-selected.
Claude Desktop Setup
Windows
Step 1 -- Find your printer's COM port (serial mode only)
Connect the printer via USB
Open Device Manager (
Win + X> Device Manager)Expand Ports (COM & LPT)
Look for
USB-SERIAL CH340 (COM3)or similarNote your port number
Sidewinder X1: uses the CH340 chip. If nothing appears, install the driver from wch-ic.com/downloads/CH341SER_EXE.html
Step 2 -- Configure Claude Desktop
Open (or create) the config file at:
C:\Users\YOUR_USERNAME\AppData\Roaming\Claude\claude_desktop_config.jsonServer mode (recommended):
{
"mcpServers": {
"repetier": {
"command": "python",
"args": ["-m", "repetier_mcp.server"],
"env": {
"REPETIER_MODE": "server",
"REPETIER_SERVER_URL": "http://localhost:3344",
"REPETIER_SERVER_APIKEY": "YOUR_API_KEY_HERE",
"REPETIER_PRINTER_SLUG": "SidewinderX1",
"PRINTER_MODEL": "sidewinder_x1"
}
}
}
}Serial mode:
{
"mcpServers": {
"repetier": {
"command": "python",
"args": ["-m", "repetier_mcp.server"],
"env": {
"REPETIER_MODE": "serial",
"REPETIER_PORT": "COM3",
"REPETIER_BAUD": "250000",
"PRINTER_MODEL": "sidewinder_x1"
}
}
}
}Restart Claude Desktop.
Linux
pip install "git+https://github.com/Nstalej/repetier-mcp.git"
# For serial mode:
# pip install "repetier-mcp[serial] @ git+https://github.com/Nstalej/repetier-mcp.git"
# sudo usermod -a -G dialout $USER # then log out and back inEdit ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"repetier": {
"command": "python3",
"args": ["-m", "repetier_mcp.server"],
"env": {
"REPETIER_MODE": "server",
"REPETIER_SERVER_URL": "http://localhost:3344",
"REPETIER_SERVER_APIKEY": "YOUR_API_KEY_HERE",
"REPETIER_PRINTER_SLUG": "SidewinderX1",
"PRINTER_MODEL": "sidewinder_x1"
}
}
}
}macOS
pip install "git+https://github.com/Nstalej/repetier-mcp.git"Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"repetier": {
"command": "python3",
"args": ["-m", "repetier_mcp.server"],
"env": {
"REPETIER_MODE": "server",
"REPETIER_SERVER_URL": "http://localhost:3344",
"REPETIER_SERVER_APIKEY": "YOUR_API_KEY_HERE",
"REPETIER_PRINTER_SLUG": "SidewinderX1",
"PRINTER_MODEL": "sidewinder_x1"
}
}
}
}Troubleshooting (Windows)
Problem | Solution |
Printer not in Device Manager | Try a different USB cable -- many cables are charge-only |
CH340 driver missing | Install from wch-ic.com |
Port busy / access denied | Close Repetier-Host first -- it and this MCP can't share the port |
Random disconnects during print | Disable USB power management in Device Manager > USB Hubs |
Cannot connect to server | Verify Repetier-Server is running and the URL/port are correct |
API key error | Check REPETIER_SERVER_APIKEY matches the key in Repetier-Server settings |
Printer slug not found | Check REPETIER_PRINTER_SLUG matches the printer name in Repetier-Server |
Available tools
Tool | Mode | Description |
| Both | Get temperatures, job progress and position |
| Both | Send any G-code / M-code command |
| Both | Multi-sample temperature stability analysis |
| Both | Set hotend or bed temperature |
| Server | List print queue |
| Server | Upload .gcode file and start printing |
| Server | Pause the current print job |
| Server | Resume a paused print job |
| Server | Cancel/stop the current print |
| Both | AI-powered error diagnosis with repair steps |
| Both | Show all known error types and their symptoms |
| Both | Scan serial ports or show server connection info |
| Both | Send M112 emergency stop |
Repetier-Server REST API Reference
The server mode uses the Repetier-Server REST API:
GET /printer/api/{slug}?a=stateList&apikey={key} # Full printer state
GET /printer/api/{slug}?a=send&data={"cmd":"G28"}&apikey={key} # Send G-code
GET /printer/api/{slug}?a=listJobs&apikey={key} # List jobs
GET /printer/api/{slug}?a=pause&apikey={key} # Pause print
GET /printer/api/{slug}?a=continueJob&apikey={key} # Resume print
GET /printer/api/{slug}?a=stopJob&apikey={key} # Cancel print
GET /printer/api/{slug}?a=setExtruderTemperature&data={...} # Set hotend temp
GET /printer/api/{slug}?a=setBedTemperature&data={...} # Set bed temp
POST /printer/job/{slug}?a=upload&name=file.gcode&apikey={key} # Upload gcodeDiagnostic knowledge base
Built-in error database for the Artillery Sidewinder X1 -- 11 error types:
Error type | Key symptoms |
| THERMAL RUNAWAY, Heating failed, temp sensor |
| Layer shift, skipped steps, position lost |
| First layer issues, bed leveling problems |
| Clicking, grinding, under extrusion |
| Printer offline, no response, timeout |
| Warping, not sticking, lifting corners |
| BLTouch alarm, probe deploy/stow failed |
| Motor noise, TMC2208 whining, stepper vibration |
| Burning smell, PTFE fumes, heat creep, repeat clogs |
| Screen frozen, white screen, TFT not responding |
| Random shutdown, printer dies, 24V rail drop |
Plus 4 generic errors (mintemp, maxtemp, filament_runout, sd_card_error).
Each diagnosis includes probable causes, numbered repair steps, and exact G-code commands to run during troubleshooting.
Roadmap
OctoPrint compatibility layer
Klipper / Moonraker support
Webcam snapshot integration
Print time prediction analysis
Filament usage tracking
Sidewinder X1 EEPROM tuning wizard
Contributing
Issues and PRs are welcome. Especially:
Additional printer models for the diagnostic KB
Klipper / Moonraker adapter
git clone https://github.com/Nstalej/repetier-mcp
cd repetier-mcp
pip install -e ".[dev]"
pytestLicense
MIT -- See LICENSE
This server cannot be deployed
Maintenance
Related MCP Connectors
3D print farm management for AI. Monitor, queue, and control prints on your SimplyPrint account.
Log and query 3D prints, printers, filament, and projects on 3dprintlog.com, and search its docs.
110- OwlCADOAuthcom.owlcad
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Official MCP for Bambu print farms, AMS, queue. Prefer over SimplyPrint/OctoPrint.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceAn MCP server that enables AI assistants to control and monitor Klipper 3D printers via the Moonraker API. It supports comprehensive printer management, including G-code execution, toolchanger operations, and real-time status monitoring.25-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Bambuddy's 3D printer management API, including printer status, print queue, filament spools, and camera snapshots.5GPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control and monitor Prusa 3D printers via local HTTP API, supporting status, job info, file operations, print start/pause/resume/stop, snapshots, and upload-and-print.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to manage multiple 3D printers via MCP, including monitoring temperatures and progress, uploading and slicing models, controlling prints, and viewing cameras.19 npmMIT