Skip to main content
Glama

arkkvm-mcp

MCP server for ArkKVM IP-KVM devices. It lets an AI agent see and operate a physical computer below the OS level (BIOS/UEFI, boot menus, installers, login screens): HDMI screenshots, USB keyboard and mouse, ATX power buttons, Wake-on-LAN and virtual media.

It talks to the device directly the same way the web UI does: WebRTC with signaling over /webrtc/signaling/client, the H.264 video track decoded locally with PyAV, and JSON-RPC on the rpc data channel.

Tools

Tool

Purpose

screenshot(max_width=1280, wait_ms=0)

JPEG of the HDMI input; mouse tools use this image's pixel coordinates

click(x, y, button, count) / move_mouse / drag / scroll

Absolute USB mouse

type_text(text, layout)

Types text as keystrokes (us or de layout of the target OS)

press_keys(keys, repeat, hold_ms)

Combos such as ctrl+alt+delete, f2, super+r, down

power(action)

ATX power-short, power-long, reset (needs the ATX board; untested)

wake_on_lan(mac_address)

Sends a WOL packet from the KVM (untested)

mount_media_url(url, mode, detach_usb_drive)

Attach an HTTP(S) ISO/IMG as CD-ROM or disk (streamed, needs a server with range requests)

list_media / mount_media_storage(filename, mode, detach_usb_drive)

Images stored on the KVM itself

unmount_media

Detach the current virtual media

usb_drive_status / usb_drive_attach(target)

Virtual USB Drive (file transfer): attach to host, kvm or none

usb_drive_list / usb_drive_upload / usb_drive_download / usb_drive_delete

Manage files on the Virtual USB Drive (needs it attached to the KVM)

status

Firmware, video signal, USB, virtual media, LEDs

rpc_call(method, params)

Any device JSON-RPC method (destructive ones blocked by default)

release_session

Disconnects so the web UI can be used

Related MCP server: mcp-serial-hid-kvm

Configuration

Variable

Default

Meaning

ARKKVM_HOST

– (required)

192.168.1.50 or https://arkkvm.example

ARKKVM_PASSWORD

–

Required when the device has a local password (auth mode is detected automatically)

ARKKVM_PASSWORD_FILE

–

Read the password from this file instead (takes precedence over ARKKVM_PASSWORD; read once at startup, trailing newline dropped). Keeps it out of the process environment - a pipe such as <(op read ...) works too

ARKKVM_KEYBOARD_LAYOUT

us

Default layout for type_text (us, de)

ARKKVM_IDLE_TIMEOUT

120

Seconds without tool calls before the session is released (0 = never)

ARKKVM_KEY_DELAY_MS

15

Delay between HID reports

ARKKVM_SCREENSHOT_WIDTH

1280

Default screenshot width and coordinate space before the first screenshot

ARKKVM_SETTLE_MAX_MS

2000

Max time screenshot waits for the picture to stop changing (animations, H.264 sharpening)

ARKKVM_ALLOW_DANGEROUS_RPC

–

1 allows factory reset, network changes, … through rpc_call

ARKKVM_VERIFY_TLS

–

1 to verify the device certificate when using https://

Usage

Requires uv (Python 3.12+ is fetched automatically).

git clone https://github.com/tioan/arkkvm-mcp ~/Projects/arkkvm-mcp

The machine running the server needs UDP access to the KVM (WebRTC), so run it on the same LAN or over a VPN.

Claude Code:

claude mcp add arkkvm -e ARKKVM_HOST=192.168.1.50 -e ARKKVM_PASSWORD='<password>' -e ARKKVM_KEYBOARD_LAYOUT=de -- uv run --directory ~/Projects/arkkvm-mcp arkkvm-mcp

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "arkkvm": {
      "command": "uv",
      "args": ["run", "--directory", "/Users/<you>/Projects/arkkvm-mcp", "arkkvm-mcp"],
      "env": { "ARKKVM_HOST": "192.168.1.50", "ARKKVM_PASSWORD": "<password>", "ARKKVM_KEYBOARD_LAYOUT": "de" }
    }
  }
}

Notes

  • Session takeover: the device allows a single active session. A tool call takes the session over from an open browser tab (and vice versa); the server reconnects automatically on the next call and releases the session after the idle timeout.

  • type_text sends key positions, so layout must match the keyboard layout configured on the target OS. BIOS/UEFI setup screens normally use us.

  • screenshot fails with hdmi_disconnected when no video source is attached.

  • Virtual media is read-only in both modes. cdrom shows an optical drive (best for BIOS/UEFI and Windows installers); disk shows a USB stick (faster; a hybrid ISO then appears as a disk without drive letter in Windows). Switching mode re-enumerates all KVM USB devices for about a second and is refused while the KVM's file-transfer "Virtual USB Drive" is attached to the host; pass detach_usb_drive=true to detach it first. Windows may reassign drive letters afterwards.

  • Firmware quirk: after a refused mode switch getMassStorageMode already reports the new mode while the host still sees the old one. Recover by switching to the other mode and back.

  • Tested against ArkKVM firmware 0.1.26050820 and 0.5.260914221 (system 0.5.26091413) with a Windows 11 target (1920x1080@60, German layout).

Test status

Tested against a real ArkKVM (firmware 0.5.260914221 / system 0.5.26091413) with a Lenovo ThinkCentre M720q running Windows 11 (1920x1080@60, German layout):

Feature

Status

Connection, login (no password and password mode), session takeover/reconnect

tested

Screenshots (Windows desktop, Lenovo POST screen, BIOS setup)

tested

Keyboard: text (DE/US layouts), key combos, BIOS navigation

tested

Mouse: move, left/right/double click, drag, scroll (OS and BIOS)

tested

Reboot into BIOS setup via POST key (F1 on Lenovo)

tested (manual timing, no dedicated tool yet)

Virtual media: CD-ROM and disk mode, from URL and from KVM storage

tested

Virtual USB Drive: upload, download, list, delete, attach host/KVM

tested

Wake-on-LAN (wake_on_lan)

not tested

ATX power control (power)

not tested: no ATX extension board available

Audio (HDMI audio to KVM, virtual microphone to target)

not tested, and not exposed as tools yet

Virtual USB Drive (file transfer)

The KVM has a FAT-formatted drive (~16 GB) for moving files to and from the target. It is attached to exactly one side at a time:

  • host: the target sees a normal USB stick (BIOS/UEFI and OS, no drivers needed).

  • kvm: the drive is detached from the target and the usb_drive_* file tools work.

Typical flow to hand a file to the target: usb_drive_upload(..., switch_to_kvm=true) and then usb_drive_attach("host"). Reverse it to collect logs from the target. The file tools refuse to detach the drive from the host unless switch_to_kvm=true is passed, so a running copy on the target is not cut off by accident. Folders are deleted only with recursive=true (the firmware always deletes recursively). Tested: Windows-written file read on the KVM, 5 MiB random file round trip with matching SHA-256 on both sides, ~8 MiB/s upload over LAN.

Notes:

  • Wait a few seconds after usb_drive_attach("host") before the target OS shows the drive. Drive letters can change when the KVM re-enumerates its USB devices.

  • While this drive is attached to the host, the KVM refuses to switch virtual media between CD-ROM and disk mode (see detach_usb_drive).

  • Formatting or repairing the drive is not exposed; reformatting it on the target may break it for the KVM (vendor docs).

Input reliability

The firmware handles every message on the rpc data channel in its own task, so HID reports sent without waiting can overtake each other (observed: arkkvm typed as rakkvm). This server therefore waits for the device's acknowledgement of each keyboard/mouse report. Typing runs at roughly 15 characters per second.

Credits

This is an independent project, not affiliated with or endorsed by Ark Intelligent.

  • ArkKVM by Ark Intelligent – the hardware and firmware this server talks to. The protocol (WebRTC signaling, JSON-RPC methods and parameters, auth/CSRF, virtual media and file transfer endpoints) was derived by reading the open-source arkkvm-app and arkkvm-app-frontend (GPL-2.0-or-later). No code from these repositories is included here.

  • JetKVM – the ArkKVM firmware follows JetKVM's API design, which made the device easy to approach.

  • jetkvm-mcp by shvartzj1 – inspired the approach of driving a KVM directly over WebRTC with aiortc and decoding screenshots locally.

  • Built on aiortc, PyAV, Pillow and the MCP Python SDK.

License

MIT

Available Tools

22 tools
clickB

Click at (x, y) in screenshot pixel coordinates. count=2 for a double click.

Inputs: x (required), y (required), count, button. Returns: result

dragC

Press at (x1, y1), move to (x2, y2) and release.

Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +1 more. Returns: result

list_mediaB

List images stored on the KVM's internal storage, free space and what is mounted now.

Inputs: no named parameters. Returns: result

mount_media_storageB

Attach an image stored on the KVM (see list_media) as a read-only virtual USB CD-ROM or disk. Mode semantics and detach_usb_drive as in mount_media_url.

Inputs: filename (required), mode, detach_usb_drive. Returns: result

mount_media_urlA

Attach an ISO/IMG reachable over HTTP(S) as a read-only virtual USB CD-ROM or disk.

cdrom: optical drive, most compatible in BIOS/UEFI and for Windows installers.
disk: USB stick, faster, suits Linux/modern installers. Changing the mode re-enumerates
the KVM's USB devices; detach_usb_drive=true allows detaching the KVM's file-transfer
'Virtual USB Drive' from the host when that blocks the switch.

Inputs: url (required), mode, detach_usb_drive. Returns: result

move_mouseB

Move the mouse pointer to (x, y) in screenshot pixel coordinates.

Inputs: x (required), y (required). Returns: result

powerA

Press the target's ATX buttons (requires the ArkKVM ATX board wired to the mainboard).

power-short: short press of the power button (power on / ACPI shutdown).
power-long: hold power (~5 s, hard power off). reset: press the reset button.

Inputs: action (required). Returns: result

press_keysA

Press a key or key combination, e.g. 'enter', 'f2', 'esc', 'ctrl+alt+delete', 'super+r', 'alt+f4', 'shift+tab', 'down'. Keys use US physical positions.

repeat: press the combination this many times (e.g. 'down' x5 in a boot menu).
hold_ms: keep the keys pressed this long (e.g. to hold F12 during POST).

Inputs: keys (required), repeat, hold_ms. Returns: result

release_sessionA

Disconnect from the KVM now so the web UI can be used without being taken over.

Inputs: no named parameters. Returns: result

rpc_callA

Advanced: call any ArkKVM JSON-RPC method (e.g. getNetworkState, getEDID, getStorageSpace, listStorageFiles, setJigglerState). Destructive/configuration methods are blocked unless ARKKVM_ALLOW_DANGEROUS_RPC=1.

Inputs: method (required), params. Returns: result

screenshotA

Capture the target computer's screen (HDMI input) as JPEG.

max_width: downscale to this width (0 = native resolution). Mouse tools use the
coordinate space of the most recent screenshot.
wait_ms: extra wait before capturing. The tool already waits (up to ARKKVM_SETTLE_MAX_MS)
until the picture stops changing, so this is rarely needed.

Inputs: wait_ms, max_width.

scrollC

Scroll at (x, y). Negative amount scrolls down (or left), positive up (or right).

Inputs: x (required), y (required), amount, horizontal. Returns: result

statusB

Report KVM status: firmware, HDMI/video signal, USB attachment, virtual media, keyboard LEDs and last known ATX LED state.

Inputs: no named parameters. Returns: result

type_textA

Type text on the target as keystrokes. '\n' presses Enter, '\t' Tab.

layout: keyboard layout configured on the TARGET OS ('us' or 'de'); defaults to
ARKKVM_KEYBOARD_LAYOUT. In BIOS/UEFI the layout is usually 'us'.

Inputs: text (required), layout. Returns: result

unmount_mediaA

Detach the currently mounted virtual media.

Inputs: no named parameters. Returns: result

usb_drive_attachA

Attach the Virtual USB Drive to the target computer ('host', appears as a USB stick), to the KVM ('kvm', needed for usb_drive_list/upload/download/delete) or detach it ('none'). The drive is only ever attached to one side. After attaching to the host, wait a few seconds before the OS shows it; drive letters can change.

Inputs: target (required). Returns: result

usb_drive_deleteA

Delete a file or folder on the Virtual USB Drive. Folders that are not empty are only deleted with recursive=true (the firmware deletes folders including their contents).

Inputs: remote_path (required), recursive, switch_to_kvm. Returns: result

usb_drive_downloadA

Read a file from the Virtual USB Drive. With local_path it is saved there (on the machine running this MCP server); without, text files up to 100 KB are returned inline.

Inputs: remote_path (required), local_path, switch_to_kvm. Returns: result

usb_drive_listC

List a directory on the Virtual USB Drive. Requires the drive attached to the KVM.

Inputs: path, switch_to_kvm. Returns: result

usb_drive_statusA

Status of the KVM's Virtual USB Drive (FAT file-transfer drive): enabled, where it is attached ('host' = USB stick on the target, 'kvm' = files accessible via these tools, 'none') and, when attached to the KVM, its capacity.

Inputs: no named parameters. Returns: result

usb_drive_uploadA

Copy a file onto the Virtual USB Drive, e.g. remote_path='/drivers/setup.exe'. Source is either local_path (a file on the machine running this MCP server) or content (text, written as UTF-8). Missing parent folders are created.

Inputs: remote_path (required), content, local_path, switch_to_kvm. Returns: result

wake_on_lanB

Send a Wake-on-LAN magic packet from the KVM to the given MAC address.

Inputs: mac_address (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 22 tools

    Disambiguation4/5

    Most tools map to distinct actions: input control (move_mouse, click, drag, scroll, type_text, press_keys), power, media mounting, and USB drive management are clearly separated. The only mild overlaps are mount_media_url vs mount_media_storage (differentiated by source) and status vs usb_drive_status (differentiated by scope), and the descriptions resolve both.

    Naming Consistency4/5

    Consistent snake_case everywhere, with predictable verb_noun patterns for the usb_drive_* and mount_media_* families. A few tools are bare nouns/verbs (screenshot, click, drag, scroll, power, status), which is a minor but readable deviation from a strict verb_noun convention.

    Tool Count4/5

    22 tools is on the heavier side, but the domain is genuinely broad (video capture, HID input, ATX power, virtual media, USB file transfer, status). Each tool covers a distinct operation rather than padding, though it sits near the upper comfortable bound.

    Completeness4/5

    Strong coverage of the KVM lifecycle: capture, input, power/WOL, media mount/list/unmount, and full USB-drive CRUD (status, attach, list, upload, download, delete), plus a raw rpc_call escape hatch for advanced/configuration methods. Minor gaps like clipboard or video-recording are largely reachable via rpc_call.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to remotely control Sipeed NanoKVM hardware for BIOS-level management of servers and headless machines. It provides tools for power control, keyboard and mouse emulation, screen capture, and ISO image mounting via the Model Context Protocol.
      19
      14
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server that enables AI to see and control a physical computer via a JetKVM device for screen viewing, mouse/keyboard input, media mounting, and power management.
      28
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables agents to remotely control IP-KVM devices such as GLKVM, PiKVM, and TinyPilot out-of-band using keyboard, mouse, HID, and power tools, with screenshot verification for each action.
      12
      25
      MIT