arkkvm-mcp
This server lets an AI agent remotely see and control a physical computer through an ArkKVM IP-KVM device, operating below the OS level (BIOS/UEFI, boot menus, installers, login screens).
See the screen: capture JPEG screenshots of the HDMI input, with optional downscaling and settle-waiting.
Control the mouse: move, click (including double-click), drag, and scroll using screenshot pixel coordinates.
Control the keyboard: type text (US/DE layouts) and press key combos (e.g.
ctrl+alt+delete,f2,super+r) with repeat and hold options.Manage power: ATX short/long press and reset (needs the ATX board), plus Wake-on-LAN magic packets.
Mount virtual media: attach ISO/IMG images as read-only CD-ROM or disk, either from an HTTP(S) URL or from the KVM's internal storage; list and unmount them.
Transfer files: use the KVM's Virtual USB Drive — check status, attach to host/KVM/none, list, upload, download, and delete files.
Inspect status: report firmware, video signal, USB attachment, virtual media, keyboard LEDs, and ATX LED state.
Advanced control: call arbitrary device JSON-RPC methods (destructive ones blocked by default) and release the session so the web UI can be used.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@arkkvm-mcp screenshot the machine and press f2 to get into BIOS setup"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| JPEG of the HDMI input; mouse tools use this image's pixel coordinates |
| Absolute USB mouse |
| Types text as keystrokes ( |
| Combos such as |
| ATX |
| Sends a WOL packet from the KVM (untested) |
| Attach an HTTP(S) ISO/IMG as CD-ROM or disk (streamed, needs a server with range requests) |
| Images stored on the KVM itself |
| Detach the current virtual media |
| Virtual USB Drive (file transfer): attach to |
| Manage files on the Virtual USB Drive (needs it attached to the KVM) |
| Firmware, video signal, USB, virtual media, LEDs |
| Any device JSON-RPC method (destructive ones blocked by default) |
| Disconnects so the web UI can be used |
Related MCP server: mcp-serial-hid-kvm
Configuration
Variable | Default | Meaning |
| – (required) |
|
| – | Required when the device has a local password (auth mode is detected automatically) |
| – | Read the password from this file instead (takes precedence over |
|
| Default layout for |
|
| Seconds without tool calls before the session is released (0 = never) |
|
| Delay between HID reports |
|
| Default screenshot width and coordinate space before the first screenshot |
|
| Max time |
| – |
|
| – |
|
Usage
Requires uv (Python 3.12+ is fetched automatically).
git clone https://github.com/tioan/arkkvm-mcp ~/Projects/arkkvm-mcpThe 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-mcpClaude 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_textsends key positions, solayoutmust match the keyboard layout configured on the target OS. BIOS/UEFI setup screens normally useus.screenshotfails withhdmi_disconnectedwhen no video source is attached.Virtual media is read-only in both modes.
cdromshows an optical drive (best for BIOS/UEFI and Windows installers);diskshows 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; passdetach_usb_drive=trueto detach it first. Windows may reassign drive letters afterwards.Firmware quirk: after a refused mode switch
getMassStorageModealready 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 ( | not tested |
ATX power control ( | 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 theusb_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 toolsclickB
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
Scored across 22 tools
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.
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.
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.
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
Related MCP Connectors
Give your AI hands on every computer you own. Remote control of your Windows, Mac and Linux machines from one ChatGPT, Claude or Cursor chat — even from your phone. Ask it to find out why the office server is crawling, update every PC in the house, sort out your mom's laptop from another city, or ship the site from your work machine while you're on a train. It runs commands and reads and writes files; screenshots are a beta you can request. You decide what each computer allows, and you can cut any of them off in a second.
Run, build, and validate firmware on virtual hardware from your AI agent. Hardware knowledge corpus.
Reach your own computers from any AI app: files, commands, screen and mouse, approvals and alerts.
Secure AI access to Windows, macOS, Linux computers and a hosted Cloud Browser.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables 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.1914-
- AlicenseNot gradedqualityDmaintenanceGives AI agents full keyboard, mouse, and screen access to a physical PC via a KVM server and OCR.6MIT
- AlicenseNot gradedqualityCmaintenanceMCP 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.28MIT
- AlicenseAqualityDmaintenanceEnables 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.1225MIT