This MCP server implementation provides a bridge between AI assistants and various 3D printer management systems, including OctoPrint, Klipper, Duet, Repetier, and Bambu Labs printers. Developed by David Montgomery, it offers tools for printer control, file management, and advanced STL file manipulation. The server is designed for use cases requiring 3D printing integration, such as remote printer monitoring, automated print job management, and custom model modifications.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Inspect an STL file without modifying it. Returns the bounding box, dimensions, center, vertex count, and face count. Parameters: stl_path (string)
Scale a model uniformly with scale_factor, or per axis with scale_x, scale_y, and scale_z. When any axis value is given, unspecified axes stay at 1.0. Parameters: stl_path (string), scale_factor (float), scale_x (float, optional), scale_y (float, optional), scale_z (float, optional)
Rotate a model around the X, Y, and Z axes, in degrees. Omitted axes default to 0. Parameters: stl_path (string), rotate_x (float, optional), rotate_y (float, optional), rotate_z (float, optional)
Move a model along the X, Y, and Z axes, in millimeters. Omitted axes default to 0. Parameters: stl_path (string), translate_x (float, optional), translate_y (float, optional), translate_z (float, optional)
Add solid geometry underneath the model to raise and widen its base. extension_inches is in inches and is converted to millimeters (25.4 mm per inch). Parameters: stl_path (string), extension_inches (float)
Merge vertices closer together than tolerance (millimeters, default 0.01). This can close small gaps and slightly simplify the mesh. Parameters: stl_path (string), tolerance (float, optional)
Move the model so the center of its bounding box is at the origin (0, 0, 0). Parameters: stl_path (string)
Find the model's largest flat face and rotate the model so that face rests on the XY plane (Z = 0). Works best on models with a clearly dominant flat face. Parameters: stl_path (string)
Apply a scale, rotation, or translation to one section of a model: the top, bottom, or center third of its bounding box, or a custom box. Parameters: stl_path (string), section (string), transformation_type (string), value_x (float, optional), value_y (float, optional), value_z (float, optional), custom_min_x (float, optional), custom_min_y (float, optional), custom_min_z (float, optional), custom_max_x (float, optional), custom_max_y (float, optional), custom_max_z (float, optional)
Render an SVG with front, side, top, and isometric views of a model. width and height set each view's size in pixels (default 300). Parameters: stl_path (string), width (int, optional), height (int, optional)
Read the printer's current status. The response is the backend's own status data. Parameters: type (string), host (string), port (string, optional)
List the files stored on the printer or its host software. Parameters: type (string), host (string)
Upload G-code to the printer, and optionally start it. Pass gcode_path for a local file, or gcode with the content. Parameters: type (string), host (string), port (string, optional), gcode_path (string, optional), print (boolean, optional), material (string, optional)
Start a G-code file that is already stored on the printer. Parameters: type (string), host (string), filename (string), material (string, optional)
Cancel the current print job. Parameters: type (string), host (string)
Pause the current print. Parameters: type (string), host (string)
Connect OctoPrint to the printer when it is running but not connected. Parameters: type (string), host (string), power_on (boolean, optional)
Gets an OctoPrint API key through OctoPrint's Application Keys approval. Parameters: host (string), port (int), app (string)
Resume a paused print. Parameters: type (string), host (string)
Describe the printer in the shared counterpart/1 shape: the server's name and version, the printer's kind, host and any model, serial or name it reports, and which features work. Parameters: type (string), host (string)
Read the printer's state and current job in one shape for every firmware. Parameters: type (string), host (string)
Slice an STL or 3MF with the configured slicer and return the output path: G-code for various slicers. Parameters: stl_path (string), slicer_type (string), bambu_model (string, optional), nozzle_diameter (string, optional), bed_type (string, optional)
Upload a sliced .3mf project to a Bambu printer and start it. Parameters: three_mf_path (string), bambu_model (string), bed_type (string), use_ams (boolean, optional), ams_slots (array, optional)
Report the loaded filament as one external slot. Parameters: type (string), host (string)
Set a target temperature for a printer component. Use bed or extruder. Parameters: type (string), host (string), port (string), component (string), temperature (float), material (string, optional)
Capture one JPEG frame and return it as base64. Parameters: type (string), host (string), save_path (string, optional), timeout_ms (int, optional)