MCP Overview

The PrintHive MCP server lets AI assistants — Claude Code, Cursor, ChatGPT, and any MCP-compatible client — directly control and monitor your Bambu Lab print farm. It exposes 23 tools covering printer management, file operations, print control, hardware operations, filament handling, and telemetry.

Why MCP for Print Farms?

  • Natural language control — "Pause the print on Printer #3" just works
  • Batch operations — Ask your AI to check status across all printers at once
  • Integrated workflow — Control printers without leaving your IDE or chat
  • Full observability — Pull temperature telemetry, job history, and live status

Base URL

https://api.printhiv3d.com/v1/mcp

The server uses the Streamable HTTP transport (MCP spec 2025-03-26). All communication happens on the single endpoint above via POST, GET, and DELETE.

Authentication

The MCP server supports two authentication methods:

  • API Key — Send the x-api-key header with your organization API key. Generate one in Settings → API Keys.
  • Bearer Token — Send Authorization: Bearer <token> with a valid Supabase JWT.

For AI assistant integrations, API keys are recommended since they don't expire and are scoped to your organization.

Tool Reference

All 23 tools available through the MCP server:

ToolDescription
printers:listList all printers in the organization
printer:live_statusGet real-time printer state (temps, progress, speeds, fans, AMS)
printer:amsGet AMS filament details (types, colors, remaining)
printer:filesList files stored on the printer
printer:file_uploadUpload a model file from the library to a printer
printer:file_deleteDelete a file from a printer
printer:file_task_statusCheck status of a file upload or delete task
jobs:listList print jobs in the organization
jobs:getGet detailed info about a specific print job
jobs:historyGet event history for a print job
telemetry:temperaturesGet temperature telemetry for a job
print:pausePause the current print
print:resumeResume a paused print
print:stopCancel/stop the current print
print:set_speedSet print speed (silent, normal, sport, ludicrous)
temperature:setSet nozzle or bed temperature
gcode:sendExecute raw G-code commands
hardware:lightToggle chamber or work light
hardware:fanSet fan speed (part cooling, auxiliary, chamber)
hardware:homeHome all axes
hardware:auto_levelRun automatic bed leveling
filament:loadLoad filament from an AMS tray
filament:unloadUnload filament from the extruder

Client Setup Guides

How It Works

When an AI assistant connects to the Hive MCP server, it receives the list of available tools and their schemas. When you ask the AI to do something printer-related, it calls the appropriate tool with the right parameters. The MCP server authenticates the request, executes the action through the Hive API (and Pulse relay for live printer commands), and returns the result to the AI.

Live printer operations (status, control, hardware) are routed through the Pulse WebSocket relay to your local HiveLink instance, which communicates directly with your printers via MQTT. Database operations (jobs, history, telemetry) are read directly from Supabase.