Documentation

Quick start

From bare board to “Claude, click Start” in five steps. The example uses mcp-io-hid; the procedure is the same for every module, only the name changes.

A terminal with MCP commands, linked over Wi-Fi to an mcp-io box plugged into a USB power supply.

1. Install the firmware

Ordered modules ship with the firmware installed, so you can skip straight to step 2. For a board you assembled yourself (an ESP32-S3-DevKitC-1, for example), install it from your browser, with nothing to download:

  1. Open the web installer in Google Chrome, Microsoft Edge or Opera on a computer.
  2. Connect the board with a USB data cable (on the DevKitC-1, the port marked UART).
  3. Choose the module and the board, click Install, then pick the board's serial port.

Open the web installer

The first install erases the board, including its Wi-Fi settings and token. If the board isn't detected, hold BOOT, tap EN / RST, release BOOT and try again.

The team builds the firmware internally with PlatformIO; as a user, you only ever need the web installer and, afterwards, updates over Wi-Fi.

2. Connect

  • HID: plug the box's native USB port into the target machine. It sees a standard keyboard and mouse, no driver needed, right from the BIOS. Bluetooth LE is active at the same time: pair the box from the target's Bluetooth settings if you'd rather go wireless.
  • HDMI / VGA: the box goes between the computer and its monitor. Plug the box's input cable into the computer's video output, and the monitor into the box's output. The monitor works exactly as before; power the box over USB-C. DisplayPort: put a DP-to-HDMI adapter in front of the box (the monitor then needs an HDMI input). Prototype: an active HDMI or VGA 1×2 splitter does the same job, the monitor on one output, the capture on the other.
  • Cam: USB power is all it needs. Point it at whatever the LLM should watch, with steady lighting.
  • Analog, lab version: USB power, 3.3 V signals maximum on the terminals.
  • Analog, industrial version: clip the box onto the DIN rail, power it with 24 V, then wire its inputs in parallel with the lamps and sensors, and its relays in parallel with the control panel buttons. Wiring by a qualified person, with the machine locked out.

The box boots armed. The physical button: short press to arm or disarm, hold for 5 s to reboot into the setup portal. When disarmed, no action reaches the target. Keep it within reach during your first tests. On the DevKitC-1 prototype, it's the BOOT button. LED: green = armed, red = disarmed, blue = the LLM is acting, blinking purple = setup portal.

3. Set up Wi-Fi

  1. On first boot, the box creates a Wi-Fi access point called mcp-io-setup-XXXX, password mcp-io-setup.
  2. Connect your computer or phone to it: the portal opens automatically, otherwise go to http://192.168.4.1.
  3. Pick your network and a hostname, then write down the token shown during setup (randomly generated, and you can change it).
  4. Confirm: the box reboots and joins your network, for example as mcp-io-hid.local.

The box only supports 2.4 GHz Wi-Fi. Keep it on a trusted local network, never directly on the internet. Inside a metal cabinet, plan for an external antenna.

4. Connect the LLM

Claude Code

$ claude mcp add --transport http mcp-io-hid http://mcp-io-hid.local/mcp --header "Authorization: Bearer <token>"

Replace <token> with the token from step 3. Repeat for each module (mcp-io-cam, mcp-io-hdmi…): each one is a separate MCP server. Give them meaningful names, such as lab-pc-keyboard or press-3-io. With more than one module, also read Several modules.

Other MCP clients

Add an MCP server of type HTTP (Streamable HTTP) with the URL http://<hostname>.local/mcp and the header Authorization: Bearer <token>.

5. Test

Without an LLM, check that the box responds by listing its tools:

$ curl -s http://mcp-io-hid.local/mcp \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Then, in Claude Code, try: “Open the Start menu, launch Notepad and type Hello.” With mcp-io-analog: “Read all channels and tell me whether the machine is in fault.”

Several modules

Each box is its own MCP server, and you can declare as many as you like in the same client. To make sure the LLM always acts on the right machine (firmware 0.5):

  • Give each box a station: a short id for the target it acts on or watches, such as lathe-2 or desk-pc. Modules that work on the same target share the same station. Add a label if you like, a free description such as “CNC lathe 2 control PC, Windows XP”. Set both in the setup portal, over the serial console (set station lathe-2, set label …) or with the set_identity tool.
  • Use clear MCP server names in your client, so you (and the LLM) can tell them apart at a glance.
  • The station shows up in each box's instructions and tool descriptions (“Target station: lathe-2 (label).”). Every action tool accepts an optional station parameter: if it doesn't match, the box refuses. Picking the wrong box becomes a harmless refusal.
  • The boxes find each other on the network (mDNS). As soon as there are several, their instructions tell the LLM to always pass station.
  • Not sure which box is which? Call identify: its status LED blinks for a few seconds.

Example: a lathe (keyboard/mouse and screen capture) and an office PC (keyboard/mouse).

# station lathe-2
$ claude mcp add --transport http lathe2-hid  http://lathe2-hid.local/mcp  --header "Authorization: Bearer <token>"
$ claude mcp add --transport http lathe2-hdmi http://lathe2-hdmi.local/mcp --header "Authorization: Bearer <token>"
# station desk-pc
$ claude mcp add --transport http desk-hid    http://desk-hid.local/mcp    --header "Authorization: Bearer <token>"

A call such as mouse_click {"x":812,"y":440,"station":"lathe-2"} sent by mistake to desk-hid is refused instead of clicking on the office PC.

Named channels (mcp-io-analog)

A channel gives an input or output a name, a meaning and a unit. The LLM reads hydraulic_pressure = 182 bar instead of “2347 mV on ADS1115 input 0”. The configuration is stored on the box.

  • Types: digital_in (lamp, limit switch, optocoupler output), digital_out (relay), analog_in (ESP32 ADC or the 16-bit ADS1115, recommended).
  • Inversion (invert) for active-low signals, and labels on_label / off_label (“FAULT” / “OK”).
  • Linear scaling: [in_min_mv, in_max_mv] → [out_min, out_max] + unit. A 4-20 mA, 0-250 bar sensor across a 150 Ω shunt: 600-3000 mV → 0-250 bar. A 0-10 V signal through a 10 k / 4.7 k divider: 0-3197 mV → 0-10 V.
  • Fault flag: channels_read reports out-of-range values, typically a broken 4-20 mA loop.
# Example: hydraulic press
channel_define {"name":"fault_lamp","type":"digital_in","pin":4,"invert":true,"on_label":"FAULT","off_label":"OK"}
channel_define {"name":"cycle_running","type":"digital_in","pin":5,"invert":true}
channel_define {"name":"hydraulic_pressure","type":"analog_in","source":"ads1115","ads_channel":0,
                "in_min_mv":600,"in_max_mv":3000,"out_min":0,"out_max":250,"unit":"bar"}
channel_define {"name":"cycle_start_button","type":"digital_out","pin":38,"description":"in parallel with the green panel button"}

The LLM can then chain: channels_read (“pressure 182 bar, no fault”), channel_write on cycle_start_button with pulse_ms: 300 to press the button, then wait_for until cycle_running goes off again.

MCP tools by module

Each box lists its tools through tools/list; the exact parameters are described in the schema it returns. Tools that act (outputs, keyboard, mouse, configuration) require the box to be armed, and accept an optional station parameter: if it doesn't match the box's station, the call is refused.

Common to every module

ToolWhat it does
device_statusArmed/disarmed state, network, firmware version, identity (station, label), recent actions, plus module-specific state (detailed below)
identifyBlinks the status LED for a few seconds so you can find the box
set_identitySets the box's station (short id of its target, e.g. lathe-2) and label (free description). See Several modules
firmware_checkCompares the installed firmware with the latest release for this module and board, and says whether an update is available
firmware_updateDownloads and installs the latest firmware over Wi-Fi, then restarts; Wi-Fi settings, token and configuration are kept. Requires the box to be armed

mcp-io-hid

ToolWhat it does
keyboard_typeTypes text, converted for the target's keyboard layout (dead keys included, Caps Lock compensated)
keyboard_keyKey or shortcut: enter, ctrl+c, gui+r, ctrl+alt+delete, f13, kp_7, rshift, media keys volume_up, play_pause…, raw usage:0x2C
keyboard_holdKeeps keys down (e.g. ctrl for ctrl+click), released automatically after 30 s at most
keyboard_releaseReleases held keys (given ones or all)
keyboard_layoutsLists the supported layouts and the current one
mouse_moveMoves the pointer to absolute coordinates (pixels)
mouse_clickLeft, right or middle click, single or double, at (x, y)
mouse_dragDrag and drop from one point to another
mouse_scrollScroll wheel
set_screen_sizeSets the target's resolution (default 1920×1080)
set_keyboard_layoutTarget keyboard layout, 21 layouts generated from Unicode CLDR: us, us-intl, gb, fr, be, ch-fr, ch-de, de, es, latam, it, pt, br, se, no, dk, fi, pl, cz, ca-fr, nl
set_unicode_methodFallback for characters missing from the layout: none, windows_alt, linux, macos
device_statusArmed/disarmed state, connection to the target, layout, Caps/Num Lock state, recent actions

mcp-io-cam

ToolWhat it does
camera_captureTakes a photo, returned as MCP image content
camera_settingsResolution, brightness, contrast, mirroring…
camera_flashTurns the illumination LED on or off
device_statusModule status and detected sensor

mcp-io-hdmi (and mcp-io-vga)

ToolWhat it does
screen_captureCaptures the target's screen, resized for the LLM
capture_infoDetected signal, input resolution
device_statusModule status

The box sits between the computer and its monitor; the capture is at the monitor's resolution (1080p at most), which you pass to set_screen_size of mcp-io-hid. VGA: mcp-io-vga, same passthrough. DisplayPort through a DP-to-HDMI adapter.

mcp-io-analog: named channels

ToolWhat it does
channels_listChannel configuration: type, wiring, labels, scaling, unit
channels_readReads all channels (or some): states with labels, values in units, out-of-range fault flag
channel_writeOutput on/off, or a pulse_ms pulse to press a button through a relay
wait_forWaits until a channel is on/off or above/below a threshold (60 s max)
channel_defineCreates or updates a channel: digital_in, digital_out, analog_in (GPIO or ADS1115), inversion, labels, scaling
channel_deleteDeletes a channel and frees its pin

mcp-io-analog: low-level tools

ToolWhat it does
list_pinsLists available pins, their capabilities and state
gpio_modeConfigures a pin (input, output, pull-up, pull-down…)
gpio_writeWrites a logic level
gpio_readReads a logic level
adc_readMeasures a voltage in mV (average, min, max)
pwm_writeGenerates a PWM signal (frequency, duty cycle)
dac_writeAnalog voltage 0-3.3 V (classic ESP32, GPIO 25/26)
i2c_scanDetects devices on the I2C bus
i2c_readReads bytes from an I2C device
i2c_writeWrites bytes to an I2C device
config_save / config_clearSaves or erases the pin configuration restored at boot
device_statusModule status

Security best practices

  • Machine safety: mcp-io-analog outputs are wired in parallel with the normal controls, never into an emergency-stop, guard or light-curtain chain.
  • Start read-only (input channels, camera, screen capture); only add outputs once you trust how the LLM behaves.
  • The box boots armed: disarm it (short press) when it's not in use. When disarmed, outputs switch off, keyboard and mouse are released and the camera is blocked.
  • Use a long, unique token per box, and never commit it to a repository.
  • Local network only: no port forwarding, no internet exposure. For remote access, go through a VPN.
  • Traffic is unencrypted HTTP in the current version (TLS is planned), so use a trusted network.
  • Watch the status LED and check device_status to see what the LLM has done.

Troubleshooting

  • The .local name doesn't resolve (common on Windows): use the box's IP address, shown in your router or in the setup portal.
  • Actions are refused: the box is disarmed, or the station passed doesn't match its own (wrong box); check with device_status.
  • Error 401: the token is missing or wrong in the Authorization header.
  • Typed text comes out wrong (“a” becomes “q”): the layout doesn't match; call set_keyboard_layout with the target's layout.
  • Clicks land in the wrong place: set the right resolution with set_screen_size.
  • Bluetooth doesn't work in the BIOS: that's expected; use the USB connection.
  • An analog channel reports a fault: the signal is out of range, often a broken 4-20 mA loop or reversed wiring; also double-check the declared scaling.
  • A measured value is off: check in_min_mv / in_max_mv against adc_read, and the shunt or divider values.
  • wait_for times out: the maximum is 60 s; for longer waits, the LLM simply calls it again.

Firmware updates

Modules update themselves over Wi-Fi. Ask your LLM to call firmware_check, then firmware_update if a new version is available. The box must be armed for the update to run, and it restarts once it's done. You can also reinstall at any time over USB with the web installer.

Questions? Contact us or write to [email protected].