Skip to main content
Glama
kobra-x-mcp

kobra-x-mcp

by fralapo

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KOBRA_HOSTYesThe printer's IP address. Required and has no default value: if it is missing, the server still starts, but every tool answers with an error that says so and no connection is attempted.
KOBRA_CONFIRM_MODENoSelects how physical actions are approved: `ask` (default) asks a person to confirm each physical action through MCP elicitation and fails closed if the client does not support elicitation; `auto` (opt-in) approves the action itself without a prompt and logs a warning. It is read once, when the server starts. Any value other than `ask` or `auto` falls back to `ask` with a warning in the log.ask

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Local control of an Anycubic Kobra X in LAN mode. The get_*/list_* tools are read only. Physical actions proceed only with confirm=true AND the confirmation that the server asks the person for directly (elicitation): never answer that question yourself. dry_run=true shows the exact message without sending it. Do not repeat an action whose outcome is 'uncertain' without reading the state first.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_statusB

General status: state, temperatures, current job, light, fans, position.

get_temperaturesA

Current and target temperatures of nozzle and bed (°C).

get_current_jobA

Print in progress: file, progress, layers, elapsed and remaining time.

list_filesB

List files and folders in the printer's internal storage (e.g. path="/test_model").

get_filamentsB

Filaments loaded in the ACE: material, colour and state of each slot.

get_printer_infoA

Device information: model, firmware, IP, peripherals, declared features.

pause_printA

PHYSICAL ACTION: pause the print in progress. Not verified on the Kobra X.

Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the message.

resume_printA

PHYSICAL ACTION: resume the paused print. Not verified on the Kobra X.

Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the message.

stop_printA

PHYSICAL ACTION: cancel the print in progress (irreversible). Not verified on the Kobra X.

Uses the known taskid or "-1"; refuses only if the printer is clearly idle. Code 10601 ("user initiated") is a success. Proceeds only with confirm=true and the person's confirmation.

set_lightA

PHYSICAL ACTION: turn the light on/off (brightness 0-100). Acceptance observed on the Kobra X.

Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the message.

set_temperatureA

PHYSICAL ACTION: set the target temperature of the nozzle (max 260 °C) and/or the bed (max 100 °C).

Only while the printer is idle; an omitted value is left unchanged, 0 turns that heater off. Heating while idle was verified on the Kobra X by an external source, not by this server. Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the message.

home_axesA

PHYSICAL ACTION: home X, Y and Z (up to ~45 s; the outcome is judged by reading the state back).

Only while the printer is idle. XYZ homing was verified on the Kobra X by an external source, not by this server. Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the message.

jog_axisA

PHYSICAL ACTION: move one axis by 1-10 mm. Only after a successful home_axes in this session, while idle.

Z only upwards (direction=plus). Returns the position before and after. Jogging was verified on the Kobra X by an external source, not by this server; the X/Y map of the axis codes is not confirmed (one source swaps it). Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the message.

motors_offA

PHYSICAL ACTION: turn off the axis motors (homing must be done again). Not verified on the Kobra X.

Only while the printer is idle. Proceeds only with confirm=true and the person's confirmation.

set_fanA

PHYSICAL ACTION: set the part cooling fan (0-100 %). Not verified on the Kobra X by this server.

Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the message.

upload_fileA

ACTION: upload a local .gcode/.3mf file (absolute path, max 300 MB) to the printer's storage.

Never overwrites: refuses if the name already exists. Does not start the print. Upload was verified on the Kobra X by an external source, not by this server. Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the request (without the token).

start_printA

PHYSICAL ACTION: start printing a file already in the root of the internal storage, without filament mapping.

Only while the printer is idle. use_ams=false is not verified on the Kobra X (there only the start with slot mapping is proven). After the start it watches the printer for ~6 s to detect an immediate stop. Proceeds only with confirm=true and the person's confirmation; dry_run=true shows the message.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 17 tools

Disambiguation4/5

Most tools have clearly distinct purposes, especially the physical-action tools versus the read-only status tools. There is some intentional overlap because get_status summarizes temperatures, current job, light, fans, and position, which can also be queried via more specific tools, but the boundaries remain understandable.

Naming Consistency4/5

The set predominantly uses readable snake_case names with predictable verb_noun forms such as get_status, start_print, and set_temperature. Minor deviations like motors_off and domain-specific verbs such as home_axes are still clear and do not significantly undermine consistency.

Tool Count4/5

At 17 tools, the server is slightly above the ideal compact range but still reasonable for a printer-control surface with many distinct physical operations. Each tool corresponds to a meaningful action or query, and the safety wrappers justify separate endpoints for start, pause, resume, and stop.

Completeness4/5

The surface covers the core printer lifecycle: status, temperatures, homing, jogging, motors, lighting, fan, file listing/upload, print start/pause/resume/stop, job state, filaments, and device info. Minor gaps remain around file management such as delete/rename and possible calibration or filament load/unload operations, but agents can work around these for most workflows.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues