CentauriMCP
Enables safe, controlled remote operation of the Elegoo Centauri Carbon 3D printer with real-time monitoring, file management, and print control via the SDCP protocol.
README
CentauriMCP
A Model Context Protocol (MCP) server for safe, controlled remote operation of the Elegoo Centauri Carbon 3D printer.
⚠️ Safety First
This project provides controlled access to 3D printer operations with built-in guardrails:
- Temperature monitoring - Auto-pause on thermal anomalies
- Error detection - Monitors for filament runout, jams, motor failures
- Rate limiting - Prevents rapid-fire commands
- Audit logging - Every operation logged with timestamp and result
- Pre-command validation - Verifies safe state before executing operations
Never leave a 3D printer unattended while printing. This tool assists with monitoring and control but does not replace proper safety practices.
🎨 CANVAS Multi-Filament Support (CC1 Limitation)
Centauri Carbon (CC1) Firmware Limitation:
The CANVAS CC1 module filament slot configuration (colors, materials per slot) is not readable via the SDCP protocol on the original Centauri Carbon (CC1). This is a firmware design decision by Elegoo.
What works:
- ✅ CANVAS module connection detection (
AmsConnectStatus) - ✅ Filament runout/jam monitoring during prints
- ✅ Starting multi-filament prints (printer uses internal config)
- ✅ Video stream for visual monitoring
What doesn't work:
- ❌ Reading filament slot colors/materials via API
- ❌ Verifying which filament is in which slot programmatically
- ❌ Modifying slot configuration via API
Workaround: For multi-filament prints, verify slot configuration via:
- Printer web UI:
http://192.168.1.41/network-device-manager/network/control - Printer touchscreen menu
- Video stream:
http://192.168.1.41:3031/video(shows physical spools)
Note: Centauri Carbon 2 (CC2) uses a different protocol (MQTT) that DOES expose filament slot data. This limitation applies only to CC1.
Features
Phase 1: Read-Only Monitoring ✅
- Real-time printer status (temperatures, position, state)
- Live camera feed access
- File listing (available prints)
- Print history retrieval
- Error code monitoring
Phase 2: Controlled Operations 🚧
- Pause/Resume/Stop print jobs
- Start prints (with validation)
- Fan speed control
- Print speed adjustment
Architecture
- Protocol: SDCP v3.0.0 (Smart Device Control Protocol) over WebSocket
- Connection:
ws://{printer-ip}:3030/websocket - Language: Python 3.10+
- MCP SDK: TypeScript MCP SDK reference implementation
Installation
# Clone the repository
git clone git@github.com:zant0p/CentuariMCP.git
cd CentuariMCP
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env with your printer's IP address
Configuration
Create a .env file with your settings:
# Printer Configuration
PRINTER_IP=192.168.1.41
PRINTER_PORT=3030
MAINBOARD_ID=000000000001d354
# Safety Limits
MAX_NOZZLE_TEMP=300
MAX_BED_TEMP=110
COMMAND_RATE_LIMIT_MS=2000
# Logging
LOG_LEVEL=INFO
LOG_FILE=centauri-mcp.log
Usage
Running the MCP Server
python -m centauri_mcp.server
Example MCP Client Configuration
{
"mcpServers": {
"centauri": {
"command": "python",
"args": ["-m", "centauri_mcp.server"],
"env": {
"PRINTER_IP": "192.168.1.41"
}
}
}
}
Available Tools
Once connected to an MCP client, you can use:
get_printer_status()- Current temperatures, position, stateget_camera_snapshot()- Live camera imagelist_files()- Available print filesget_print_history()- Historical print jobspause_print()- Pause current printresume_print()- Resume paused printemergency_stop()- Stop print immediatelystart_print(filename)- Start a print job (with validation)
API Reference
For detailed SDCP protocol documentation, see:
Security
- SSH key-based authentication for Git access
- No credentials stored in repository
- Local network only (no cloud exposure)
- Deploy keys scoped to this repository only
Development
Branch Strategy
main- Production-ready codedev- Active development and testing
Testing
# Run tests
pytest tests/
# Test WebSocket connection
python -m centauri_mcp.test_connection
Known Issues
- Protocol field names contain spelling errors (e.g.,
CurrenCoord,RelaseFilmState) - must use exact spellings from spec - Video streaming limited to 1 concurrent connection by default
License
MIT License - See LICENSE file for details
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request to
devbranch
Built with ❤️ for safe 3D printer automation
Last updated: 2026-07-12
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。