Repository avatar
Other Tools
v0.1.1
active

nonplanar-slicer-mcp

io.github.Melt-3D/nonplanar-slicer-mcp

The most advanced nonplanar slicing: STL to G-code in conical or flat layers, for FDM 3D printers.

Documentation

@melt3d/nonplanar-slicer-mcp

An MCP server that lets AI agents (Claude, Cursor, VS Code and other MCP clients) slice 3D models into G-code for FDM 3D printers, on Melt3D's servers, through the Melt3D Slicer API: the most advanced nonplanar slicing. Besides flat layers, it slices conical layers, which print overhangs leaning outwards (or inwards) without support: the server bends the part, slices it and maps the G-code back onto the bed itself.

The agent names an STL file on your computer; the server sends it to the API and writes the G-code beside it, then tells the agent the layer count and the estimated print time and filament. Neither file passes through the conversation.

Tools

ToolWhat it does
slice_modelSlices an STL file into a G-code file. Layers: layers (planar or conical) and cone_angle (degrees, 5 to 85 either way). Settings: engine (PrusaSlicer, CuraEngine, OrcaSlicer), layer_height, first_layer_height, perimeters, infill_density, infill_pattern, nozzle_temp, bed_temp, brim_width, supports
slicer_settingsDescribes the settings, the key kinds, the limits and where pricing is

Getting a key

Create one at auth.melt3d.eu/developers. Every slice returns printable G-code and is billed per slice. New accounts start with 1 EUR of free credit. See the API terms.

Setup

Claude Code:

claude mcp add meltslicer --env MELT3D_API_KEY=m3d_live_… -- npx -y @melt3d/nonplanar-slicer-mcp

Claude Desktop, Cursor and other clients that read an mcpServers config:

{
  "mcpServers": {
    "meltslicer": {
      "command": "npx",
      "args": ["-y", "@melt3d/nonplanar-slicer-mcp"],
      "env": { "MELT3D_API_KEY": "m3d_live_…" }
    }
  }
}

Then ask, for example: "Slice ~/models/bracket.stl at 0.2 mm layers with 20% gyroid infill", or "Slice ~/models/vase.stl in conical layers at 30 degrees so its overhang prints without support."

Behaviour

  • Only STL files, up to 100 MiB. Export other formats as STL first. Conical layers need a binary STL, and take no supports.
  • The G-code goes beside the model (bracket.stl to bracket.gcode) unless output_path says otherwise, and an existing file is replaced only with overwrite: true.
  • A busy server (503) or a rate limit (429) is retried up to three times, as Retry-After says, with one Idempotency-Key: a retry is never billed twice.
  • Refusals reach the agent in the API's own words, such as a spending cap reached or a setting out of range.
NPM
@melt3d/nonplanar-slicer-mcp
Install Command
npm install @melt3d/nonplanar-slicer-mcp