Skip to main content

MCP server and CLI for Anycubic Cloud printers.

Project description

Anycubic Cloud MCP (Kobra 3)

Cloud-backed MCP server and helper scripts for Anycubic printers. This uses the reverse-engineered Anycubic cloud REST API (and MQTT where supported) from the hass-anycubic_cloud integration.

Quick Start

Install from GitHub (recommended):

python3 -m pip install "git+https://github.com/aegis-agent/anycubic-cloud-mcp.git"

Or from source:

python3 -m pip install -r requirements.txt
python3 -m pip install -e .

Run the MCP server (stdio transport by default):

anycubic-cloud-mcp

HTTP transport (optional):

anycubic-cloud-mcp --http --host 0.0.0.0 --port 8000

HTTP endpoint: http://<host>:<port>/mcp

Configure auth either via environment variables or the auth_set tool.

Environment variables:

  • ANYCUBIC_AUTH_MODE: slicer (recommended) or web
  • ANYCUBIC_TOKEN: token string
  • ANYCUBIC_DEVICE_ID: only for android auth mode

Token Sources

Slicer Next (recommended)

This enables MQTT logon and better status updates.

Windows (Slicer Next):

  • Config file:
    • %AppData%\AnycubicSlicerNext\AnycubicSlicerNext.conf
  • The access_token value is the token you want.

Extract with the helper script (macOS):

anycubic-slicer-token

Tip: clear access_token in the Slicer config after extracting it to avoid logging out your MCP session when the slicer refreshes.

Web token (REST-only)

  • Go to https://cloud-universe.anycubic.com/file
  • Sign in
  • Open DevTools console
  • Run window.localStorage["XX-Token"]
  • Copy the token string

MCP Tools

Core tools you asked for:

  • printer_list
  • printer_status
  • print_pause, print_resume, print_cancel
  • cloud_file_list, cloud_file_upload, cloud_file_delete
  • print_upload, print_cloud_gcode, print_cloud_file
  • ace_set_slot, ace_feed_filament, ace_retract_filament, ace_set_auto_feed
  • ace_dry_start, ace_dry_stop

Notes:

  • slot_index_list is 1-based. Use 1..4 for a single ACE and 1..8 for dual ACE.
  • For Kobra 3, Slicer Next tokens are currently the most reliable way to keep MQTT working.

Config File

You can save tokens to a local config file using auth_set with save: true. Default path:

  • ~/.config/anycubic-cloud-mcp/config.json

If you prefer a custom path, set:

  • ANYCUBIC_CONFIG_PATH=/path/to/config.json

Installer

The installer supports token extraction on macOS and optional SSH sync.

Token extraction (prints token and syncs config to server):

anycubic-cloud-mcp-install token --ssh agent@aegis

Server setup with systemd (HTTP transport):

sudo anycubic-cloud-mcp-install server --systemd --http --host 0.0.0.0 --port 8000

One-shot installer wrapper (uses REPO_URL):

REPO_URL="https://github.com/aegis-agent/anycubic-cloud-mcp.git" scripts/install.sh token --ssh agent@aegis

Firmware Note

Firmware version typically does not affect cloud API calls directly, but Anycubic may change auth or API behaviors server-side. If you are stable on 2.4.4.3, you can stay there unless you need fixes in 2.4.5.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anycubic_cloud_mcp-0.1.0.tar.gz (80.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anycubic_cloud_mcp-0.1.0-py3-none-any.whl (89.6 kB view details)

Uploaded Python 3

File details

Details for the file anycubic_cloud_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: anycubic_cloud_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 80.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for anycubic_cloud_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bb13b1b0438ce0e40e6010ea697897ab6142a04d76b3a3dc310c99178538348c
MD5 7044fc48dfc937b42619128325f2bb5f
BLAKE2b-256 0176b82bea6487bcfbe3b88b21e23af708a2373f4203319565a2835d5be87ed9

See more details on using hashes here.

File details

Details for the file anycubic_cloud_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for anycubic_cloud_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa728d35909b279c68279f02ef57f4dd9e02f015f293710feaa86d5cbc9edf8a
MD5 bfa688faf4939194f8ce22cebd0ddfba
BLAKE2b-256 b352361e69440b3ff876271d73658d0982cb3129fcecb4d49b046180f178f295

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page