cura-mcp

cura-mcp

Enables AI agents to slice 3D models (STL files) headlessly using UltiMaker Cura's CuraEngine, returning ready-to-print G-code and estimated print time.

Category
Visit Server

README

cura-mcp

An MCP server that lets an AI agent (Claude, etc.) slice 3D models with UltiMaker Cura (the CuraEngine backend) headlessly — no GUI, no clicking. Load STL files, pick a printer profile, override any Cura setting, and get back a ready-to-print .gcode plus the estimated print time.

Built because Cura has no official MCP and its engine is awkward to run standalone — this wraps it cleanly.

What it exposes

Tool What it does
list_printers List available printer profiles (id, build volume, nozzle).
get_profile Return the full settings of a profile, to inspect or tweak.
slice Slice one or more STL files with a profile + optional setting overrides → gcode + print time.

Example: "Slice part.stl on the Creasee 340 with 0.16 mm layers, 5 walls, 30% infill, and a raft." → the agent calls slice(stl_paths=["/…/part.stl"], printer_id="creasee340", settings={"layer_height":0.16,"wall_line_count":5,"infill_sparse_density":30,"adhesion_type":"raft"}).

Why this was hard (and how it's solved)

CuraEngine from the Cura AppImage doesn't run standalone: it needs (1) the AppImage's bundled ld-linux interpreter, (2) all of the AppImage's shared libraries, and (3) a complete, flattened set of settings (fdmprinter + fdmextruder defaults + your overrides) — miss one and it aborts. engine.py handles all three: it runs CuraEngine via the bundled linker with a full library path, and flattens Cura's nested settings tree into the ~400 -s key=value flags CuraEngine expects.

Requirements

  • Linux, Python ≥ 3.10.
  • UltiMaker Cura AppImage extracted to ~/opt/cura/squashfs-root (or set CURA_ROOT):
    cd ~/opt/cura && /path/to/UltiMaker-Cura-*.AppImage --appimage-extract
    

Install

git clone <this repo> && cd cura-mcp
python3 -m venv .venv && ./.venv/bin/pip install -e .

Use with Claude Code

claude mcp add cura-slicer -- /ABS/PATH/cura-mcp/.venv/bin/python -m cura_mcp

Then restart your session and ask Claude to slice a model.

Printer profiles

Profiles live in src/cura_mcp/profiles/*.json as {name, manufacturer, description, settings:{…Cura settings…}}. Ships with Creasee 340 (large CR-10-class bowden printer, CR-Touch ABL, quality profile tuned for a slightly warped bed) and a generic 220 mm printer. Add your own by dropping a JSON file in that folder.

Notes

  • Print time and filament are computed from the actual toolpaths (analyze_gcode), so they vary with settings and model — reliable estimates.
  • License AGPL-3.0 (CuraEngine is AGPL; this wrapper follows).

Author

Built by Claude (Anthropic's Opus 4.8), autonomously, for Michael Gagnon — solving the standalone-CuraEngine problem, the settings flattener, the MCP server, and a real gcode-based time/filament estimator. Tested with a 9-case suite (tools, overrides, multi-part, error handling, stat-variation).

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured