Klipper MCP Server

$npx -y @charleslotto/klipper-mcp
README.md

Control and monitor Klipper 3D printers via the Moonraker API.

An 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.

Tools (3)

execute_gcodeSend a G-code command to the printer.
get_printer_statusRetrieve the current status of the printer including temperatures and state.
toolchanger_operationPerform operations related to toolchanger management.

Environment Variables

MOONRAKER_URLrequiredThe base URL of your Moonraker instance
MOONRAKER_API_KEYAPI key for Moonraker authentication if enabled

Configuration

claude_desktop_config.json
{"mcpServers":{"klipper":{"command":"npx","args":["-y","@charleslotto/klipper-mcp"],"env":{"MOONRAKER_URL":"http://your-printer-ip","MOONRAKER_API_KEY":"your_api_key_if_needed"}}}}

Try it

What is the current temperature of my 3D printer extruder and bed?
Home all axes and then start the print for the file 'benchy.gcode'.
Emergency stop the printer immediately.
Change the tool to T1 using the toolchanger.
Check the current progress of the active print job.

Frequently Asked Questions

How do I install Klipper MCP Server?

Install Klipper MCP Server by running: npx -y @charleslotto/klipper-mcp

What MCP clients work with Klipper MCP Server?

Klipper MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use Klipper MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free