orcaslicer-mcp

v0.1.29
io.github.MaxEllis/orcaslicer-mcp Checked 16 hours ago Published 7 days ago

Work a running OrcaSlicer with AI: slice, tune, and understand what each setting costs

Values you need

VariableWhat it is
ORCA_API_TOKENrequired secret Remote API token from the OrcaSlicer MCP build (Preferences -> Remote API)
ORCA_API_URLoptional OrcaSlicer Remote API address; defaults to http://127.0.0.1:13130 Default: http://127.0.0.1:13130
ORCA_MCP_ALLOW_KEYSoptional Optional comma-separated config keys the MCP may change even though they run code or drive the printer directly (post_process, *_gcode, print host settings). Wildcards allowed. Blank by default.
ORCA_PRINTER_URLoptional Optional printer address; by default the address in OrcaSlicer's active printer profile is used. A user name and password can be part of it (http://user:password@192.0.2.10); percent-encode special characters in them (@ as %40). A password in it is stored as an ordinary setting, so prefer ORCA_PRINT
ORCA_PRINTER_API_KEYoptional secret Optional API key for printers that need one (OctoPrint, or Moonraker with authorization).
ORCA_PRINTER_IDoptional Optional printer name for the outcome store; defaults to the host name of ORCA_PRINTER_URL when that is set, otherwise the printer profile's name, otherwise unknown.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add orcaslicer-mcp -e 'ORCA_API_TOKEN=<ORCA_API_TOKEN>' -- uvx orcaslicer-mcp==0.1.29
Add to claude_desktop_config.json
{
  "mcpServers": {
    "orcaslicer-mcp": {
      "args": [
        "orcaslicer-mcp==0.1.29"
      ],
      "command": "uvx",
      "env": {
        "ORCA_API_TOKEN": "<ORCA_API_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "orcaslicer-mcp": {
      "args": [
        "orcaslicer-mcp==0.1.29"
      ],
      "command": "uvx",
      "env": {
        "ORCA_API_TOKEN": "<ORCA_API_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "ORCA_API_TOKEN",
      "id": "orca-api-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "orcaslicer-mcp": {
      "args": [
        "orcaslicer-mcp==0.1.29"
      ],
      "command": "uvx",
      "env": {
        "ORCA_API_TOKEN": "${input:orca-api-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.orcaslicer-mcp]
command = "uvx"
args = ["orcaslicer-mcp==0.1.29"]
env = { "ORCA_API_TOKEN" = "<ORCA_API_TOKEN>" }

For AI agents

  1. Ask the user for: ORCA_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_status, get_config, set_config, slice, get_slice_status, get_slice_warnings, get_slice_breakdown, cancel_slice, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json