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"
Install with pipx (isolated CLI):
pipx install anycubic-cloud-mcp
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) orwebANYCUBIC_TOKEN: token stringANYCUBIC_DEVICE_ID: only forandroidauth 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_tokenvalue 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_listprinter_statusprint_pause,print_resume,print_cancelcloud_file_list,cloud_file_upload,cloud_file_deleteprint_upload,print_cloud_gcode,print_cloud_fileace_set_slot,ace_feed_filament,ace_retract_filament,ace_set_auto_feedace_dry_start,ace_dry_stop
Notes:
slot_index_listis 1-based. Use1..4for a single ACE and1..8for 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
Pipx bootstrap:
scripts/install.sh --pipx token --ssh agent@aegis
Pipx upgrade (CLI command):
anycubic-cloud-mcp-install pipx --ensure-path
Agent Integrations
Use the installer to register this MCP server with common agent harnesses.
Interactive mode shows a selection menu when --targets is omitted.
anycubic-cloud-mcp-install integrate --targets claude-code codex cursor opencode factory
Menu-driven selection:
anycubic-cloud-mcp-install integrate
Copy failed raw commands/config to clipboard:
anycubic-cloud-mcp-install integrate --copy-failures
Project-scope installs (Cursor, OpenCode, Factory):
anycubic-cloud-mcp-install integrate --targets cursor opencode factory --scope project --project-dir /path/to/project
Notes:
- Cursor user-scope installs return a deeplink; add
--cursor-opento open it. - OpenCode config uses
~/.opencode.jsonor.opencode.json(project). - Factory config uses
~/.factory/mcp.jsonor.factory/mcp.json(project).
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anycubic_cloud_mcp-0.2.3.tar.gz.
File metadata
- Download URL: anycubic_cloud_mcp-0.2.3.tar.gz
- Upload date:
- Size: 85.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57326f45d0cdd2044eb51112ad4503ed8e27833747c7a54eca8820127b185280
|
|
| MD5 |
50fd61f4c2379516a807084887c9db6f
|
|
| BLAKE2b-256 |
4ce475fac11a2111b22cc3082d137e7bebd1b8cde52696f7b60dd922c1d3187c
|
File details
Details for the file anycubic_cloud_mcp-0.2.3-py3-none-any.whl.
File metadata
- Download URL: anycubic_cloud_mcp-0.2.3-py3-none-any.whl
- Upload date:
- Size: 95.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee2e8a4e5ecf19672fe7ed2af702e092557f42683d52ab883b07e03b40f01e8f
|
|
| MD5 |
d7ba770d20a5177c835740b1d76a76ba
|
|
| BLAKE2b-256 |
8b3550250de0f1bf6ac972faa3dd2cf4618ab74e89d855e6302de29019b0754e
|