Anycubic Slicer MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ANYCUBIC_SLICER_EXE | No | Path to the Anycubic Slicer Next executable. Only needed if the slicer isn't in its default location. Windows default: C:\Program Files\AnycubicSlicerNext\AnycubicSlicerNext.exe; macOS default: /Applications/AnycubicSlicerNext.app/Contents/MacOS/AnycubicSlicerNext. | |
| ANYCUBIC_SLICER_DATA | No | Path to the Anycubic Slicer Next data directory. Only needed if the slicer isn't in its default location. Windows default: %APPDATA%\AnycubicSlicerNext; macOS default: ~/Library/Application Support/AnycubicSlicerNext. | |
| ANYCUBIC_MCP_ALLOW_NETWORK_PATHS | No | Unset by default; set to 1 to allow network paths such as \\server\share paths. This check is Windows-only. | |
| ANYCUBIC_MCP_ALLOW_GCODE_TEMPLATES | No | Unset by default; set to 1 to allow editing raw G-code templates such as machine_start_gcode and filament_end_gcode. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Anycubic Slicer Next, headless. Typical flows:
Slice: slicer_status → list_presets (printer/process/filament) → slice_model → preview_gcode to check. Omitted printer/process/filaments fall back to what the slicer GUI has selected.
Find setting names with get_preset(search=...) before passing overrides (e.g. sparse_infill_density="20%", wall_loops=3, enable_support=true, support_type="tree(auto)").
Plan: find_best_orientation, analyze_strength, check_bed_fit, compare_slices, estimate_cost.
Filament from a spool label photo: read the label yourself, then create_filament_profile with what it says.
Failed print photos: look at them, match to diagnose_print's issue list, call diagnose_print, re-slice with its overrides. Calibration: make_calibration_print. Multi-colour waste: optimize_multicolor.
Whole multi-part project (folder or .zip): plan_project → ask the user its
questions(every blocking one must be answered; ask a few at a time, most important first, and say what you're assuming for the rest) → plan_project again with plan_id and the answers → show the plates and get the user's OK → slice_project. Never answer a question for the user or slice while one is open. If you have your own doubts (which spool, which parts matter most), ask those too. Never claim a print is safe without the user checking the preview. This server never sends anything to a printer.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| slicer_statusA | Report whether Anycubic Slicer Next is installed and what its window currently has selected. Call this first in a session, and whenever a slice fails with "not found": it returns the server version, operating system, slicer executable and version, data folder, how many printer/process/filament presets exist, the selected printer, process, filaments and plate type, and the build volume. Read-only; it only reads the slicer's config files and starts nothing. |
| list_presetsA | List preset names so you can pass exact ones to slice_model, compare_slices or get_preset. Use this to discover names; use get_preset to read the settings inside one preset. With a printer, only process and filament presets made for that printer are listed, the user's own presets first. Returns {count, presets: [{name, source}], truncated} with at most 300 rows. Read-only. |
| get_presetA | Read the effective settings of one preset, with its inheritance chain merged. Use it to find the exact setting names to pass as overrides to slice_model, compare_slices or save_user_preset (search='infill' finds sparse_infill_density and friends). Values longer than 200 characters are elided unless you ask for them by keys. Returns {preset, source, inherits, settings}. Read-only. |
| save_user_presetA | Write a new process, filament or printer preset into the user's Anycubic Slicer Next presets. Use it when the user wants settings kept for future prints; for a one-off print pass overrides to slice_model instead, and for fixing a failed print use diagnose_print first (which only suggests changes and saves nothing). Writes one JSON file to the slicer's user preset folder; with overwrite=true it replaces an existing one. Ask the user before calling. The slicer window shows it after a restart. Returns {saved, kind, inherits}. |
| model_infoA | Measure a 3D model before slicing: size, volume, surface area, triangles, separate pieces, watertightness and whether it fits the printer's build volume. Use it first on an unfamiliar file. For which way up to print it use find_best_orientation, and to test a rotation or scale against the bed use check_bed_fit. STEP files are converted with the slicer first. Read-only; it never changes the file. |
| slice_modelA | Slice 3D models into printer-ready G-code with Anycubic Slicer Next, running locally. The main tool for a single plate. For several variants of one model use compare_slices; for a whole folder of parts use plan_project and slice_project. Writes .gcode and .gcode.3mf (send the .gcode.3mf to the printer) to output_dir, replacing files of the same name; takes seconds to a few minutes. Returns print time, grams, cost, layers, per-filament use, the output paths and slicer warnings, which flag overrides the slicer clamped or ignored. It never sends anything to a printer. |
| gcode_summaryA | Read the numbers out of an existing .gcode file: print time, filament grams, metres and cost, layers, first-layer time, colour changes, key settings and metres extruded per feature type. Use it on G-code you already have (from slice_model or another slicer); slice_model already returns these for new slices. Read-only. |
| preview_gcodeA | Draw G-code toolpaths as a PNG so you and the user can check a slice before printing. view='top' without a layer shows placement on the bed; with a layer it colours walls orange/yellow, infill red, top surfaces pink, bottom blue, bridges cyan and support teal. view='side' shows overhangs and support. For a build-up animation use animate_layers; for a shareable summary use print_card. Read-only: returns the image and layer metadata without writing files. |
| animate_layersA | Make an animated GIF of the print building up layer by layer. Use it when the user wants to watch the build or share it; for checking one layer use preview_gcode instead. Writes _layers.gif next to the G-code, replacing an older one. Returns the GIF and its path. |
| print_cardA | Make a 1200x630 PNG summary card of a sliced print: toolpath preview, time, filament, cost, layers, infill, walls and printer. Use it to share or quote a print; for inspecting toolpaths use preview_gcode. Writes _card.png next to the G-code, replacing an older one. Returns the image and its path. |
| open_in_slicerA | Open a file in the Anycubic Slicer Next window on the user's screen. Only call it when the user asks to see or edit something in the slicer; every other tool works without the window. 3MF files are checked for post-processing scripts first and refused if they have one. Changes no files. |
| compare_slicesA | Slice the same model several ways and compare print time, filament and cost side by side. Use it to show the price of a choice (stronger settings, finer layers, another orientation) before committing; for a single slice use slice_model. Runs the slicer once per variant, so it takes longer, and writes each variant's G-code to output_dir. Returns each variant's numbers, the change against the first, and the fastest and lightest variant. |
| find_best_orientationA | Rank the ways a model can lie on the bed by support area, height, bed contact, weak layers and fit. Use it before slicing a part whose orientation isn't obvious; pass the winner's rotation to slice_model as rotation_deg. For load-bearing parts, analyze_strength also recommends walls and infill. Works on the mesh alone without running the slicer. Read-only. |
| analyze_strengthA | Recommend an orientation and slicer settings (walls, top/bottom layers, infill, layer height) that make a part strong for how it will be used. Use it when the user says a part must hold, bend or survive impact; find_best_orientation only ranks orientations. Also flags thin waists in the shape. Returns overrides and a rotation to pass to slice_model, with reasons; check the cost with compare_slices. Read-only. |
| check_bed_fitA | Check whether a model fits the printer's build volume, optionally after a rotation or scale. If it doesn't fit it suggests a 45-degree turn, a scale percentage, laying it down, or splitting it in CAD. model_info gives the same fit check without trying transforms. Read-only. |
| estimate_costA | Work out what a print costs: filament plus electricity plus any extra such as labour or markup. Use it for quotes or when the user asks what something costs; compare_slices already reports filament cost per variant. Returns each part of the cost and the total. Read-only; pure arithmetic. |
| create_filament_profileA | Turn the details printed on a filament spool label into a filament preset for the slicer. Read the label photo yourself and pass what it says; only material is required, and anything missing gets a typical value for that material (listed in the result). The preset inherits from the closest existing preset for the printer. With save=false it only returns a preview; show it to the user, then call again with save=true to write it to the slicer's user presets (overwrite=true replaces an existing one). For other preset edits use save_user_preset. |
| add_spoolA | Record a new spool in the user's local filament inventory. Use it when the user buys or opens a spool; create_filament_profile can also add one when saving a profile. Each call adds another spool with a new id, stored in a JSON file on this computer. Returns the spool. |
| list_spoolsA | List the spools in the local inventory with how much filament each has left. Use it before a long print to pick a spool with enough filament. Read-only. |
| update_spoolA | Change a spool in the local inventory: set what's left, subtract a finished print, edit notes, or remove it. use_g subtracts each time it is called, so don't repeat it for the same print. remove=true deletes the spool record permanently. Returns the updated spool. |
| diagnose_printA | Explain what went wrong with a failed 3D print and which settings to change, from defects you identify in the user's photos. First call it with no issues to get the defect catalogue, compare the photos with each 'looks_like', then call again with the matching ids. Suggestions are computed from the presets actually in use; fixes that conflict are reported, not applied. Read-only: it changes no presets (save them with save_user_preset if the user wants to keep them). Returns causes, checks and an overrides dict for slice_model. |
| make_calibration_printA | Generate and slice a calibration print for tuning a filament or the printer. temperature_tower: one tower with a block per nozzle temperature, with the temperature changes written into the G-code. flow: one small cube per flow ratio. retraction: two towers per retraction length. first_layer: five single-layer squares across the bed to check levelling. Use it when a filament is new or prints look off and diagnose_print points to temperature, flow or retraction. Writes the G-code and .gcode.3mf files and returns their paths plus how to read the result. |
| optimize_multicolorA | Measure how much filament a multi-colour print wastes on colour changes and try settings that might reduce it. Recommends a setting only if every colour survives and it saves filament; otherwise says the default is best and gives layout tips such as fewer colour changes per layer. Slices several times, so it takes a while, and writes each test's G-code to output_dir. For single-colour prints use slice_model or compare_slices. |
| plan_projectA | Plan a whole multi-part project from a folder or .zip: find every model, lay each in its best orientation and pack them onto plates. Reads counts from names like clip_x4.stl and from READMEs. Returns plates with rough time and filament, stated assumptions, and questions about anything unclear (duplicate versions, odd scale, parts too big, missing counts, colours, grouping). Put the blocking questions to the user, then call again with plan_id and the answers; part ids are paths relative to the project folder. Slicing happens only in slice_project. Saves the plan, and unpacks zips, under the server's state folder; each call without plan_id starts a new plan. |
| slice_projectA | Slice every plate of a plan from plan_project once the user has approved it. Refuses while any blocking question is unanswered. Each plate is sliced separately into its own .gcode and .gcode.3mf; parts the slicer can't fit move to the next plate. Takes about as long as slicing each plate, writes the files plus project_summary.json to output_dir (replacing earlier runs), and returns real times and weights per plate, totals, and a preview image of up to six plates. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| setup_check | Check the slicer MCP is installed and working. |
| filament_from_label | Create a filament profile from a photo of the spool label. |
| diagnose_from_photos | Work out what went wrong with a print from photos. |
| make_it_stronger | Make a part stronger for how it will be used. |
| multicolor_waste | Reduce waste in a multi-colour print. |
| print_this_project | Plan and slice a whole multi-part project from a folder or .zip. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 25 tools
Descriptions explicitly cross-reference and separate overlapping tools (model_info vs check_bed_fit, compare_slices vs slice_model, preview_gcode vs animate_layers vs print_card, find_best_orientation vs analyze_strength), so an agent can pick correctly. Cost reporting appears in several tools (estimate_cost, gcode_summary, print_card, compare_slices), but each is scoped to a distinct workflow.
All names are snake_case and mostly readable, but the ordering is mixed: verb_noun (slice_model, list_presets, check_bed_fit) alongside noun_noun (model_info, gcode_summary, print_card, slicer_status). Still predictable enough to infer purpose, just not a single consistent pattern.
25 tools is at the heavy end for a single server. The breadth (slicing, preset management, spool inventory, diagnosis, calibration, multicolor, project planning) justifies most tools, but the surface is large and borderline for a slicer domain.
Covers the full lifecycle: model analysis, orientation/strength guidance, slicing (single, comparison, project), preset read/write, spool inventory CRUD, G-code inspection/visualization, failure diagnosis, calibration, and multi-color optimization. No obvious dead ends remain for a local slicing workflow.