Skip to main content
Glama

XR18 MCP

Tests License: MIT

An MCP server that lets Claude work as a sound tech on a Behringer XR18 during rehearsals. It connects over OSC/UDP and can run alongside X AIR Edit, which shows every change live.

X32 / M32: experimental. The server also recognises Behringer X32 and Midas M32 consoles (same OSC family, port 10023) and switches to an X32 address map automatically. Its node layouts are checked against a scene saved by X32-Edit (firmware 4.0), and meters, scenes and discovery are cross-checked against the protocol document and two open-source X32 clients (docs/x32-sources.md). It has not run on a real console yet; reports from X32 owners are welcome.

Install

To use it (any Mac or PC on the mixer's network): install uv, then run

uv tool install https://github.com/ramzed/xr18-mcp/archive/refs/heads/main.zip

and register the xr18-mcp command in your AI app. No git needed. INSTALL.md has step-by-step instructions for people new to the command line (Mac and Windows; Claude Desktop, Claude Code and Antigravity). To update later, run the same command with --reinstall.

To work on it: clone the repo and open the folder in Claude Code. .mcp.json runs the server from the checkout with uv run xr18-mcp and keeps presets and logs in the repo folder (automatic backups are gitignored). Approve the xr18 server and check it with /mcp.

The mixer is found automatically with an /xinfo search (X-Air port 10024 and X32 port 10023). Set XR18_IP only if that fails.

Related MCP server: X32/M32 MCP Server

Things to ask

  • "What's on the board?" / "Why is there no sound from channel 5?"

  • "More click and less bass in bus 2." / "Guitar up 3 dB in the mains."

  • "New band tomorrow. Inputs: 1 kick, 2 snare, 3 bass DI, 4 guitar, 5-6 vox. Set it up."

  • "Build Anna's in-ear mix on bus 3: her vocal at 0, guitar at -6, click at -3."

  • "Everyone play loud for 10 seconds, then check the gains."

  • "Save this as song-3." / "What changed since the start of rehearsal?" / "Undo that."

Tools

Group

Tools

Look

mixer_status, board_overview, channel_detail, find_channels

Mix

set_fader, set_mute, set_send, set_eq, set_hpf, set_gate, set_compressor, set_preamp, apply_changes (several edits as one undo step)

Setup

setup_channels (input list: name, colour, HPF, gain, phantom, USB, LR, fader, pan), setup_monitor_mix

Listen

read_meters (peak/avg dBFS, clip/hot/low/silent flags), gain_check (preamp gain suggestions)

Remember

save_preset, list_presets, diff_preset, load_preset, snapshot_list, snapshot_save, snapshot_load, undo, change_history

Raw

osc_get, osc_set

Strips can be named by their mixer name ("Guitar", "click") or by id: ch1-16, aux, fxrtn1-4, bus1-6, fxsend1-4, lr, dca1-4. On an X32: ch1-32, aux1-8, fxrtn1-8, bus1-16, mtx1-6, lr, mono, dca1-8.

What differs on the X32: there are no FX send strips (FX are fed from buses), the send tap point is shared by a bus pair, each send has its own on/off (send.on), channels have a digital trim instead of a USB switch, preamp gain follows the input routing (local inputs and AES50 stage boxes), snapshots are the console's scenes 0-99, and read_meters supports only the channels scope. Presets remember which mixer type saved them and can't be loaded on the other type.

Safety

  • Needs confirmation. The tool refuses these moves and explains why; Claude has to ask you and then retry with confirm=true:

    • phantom power changes

    • raising a level by more than 6 dB when it ends above −10 dB

    • main LR above 0 dB

    • a preamp gain jump of more than 10 dB

    • muting more than 4 channels, or muting LR

    • loading presets or snapshots

    • system, routing and FX settings

  • Checked writes. Every change is read back from the mixer. Writes lost on the network (UDP) are sent again, and anything that still didn't land is flagged in the reply.

  • Undo. Every change is written to logs/changes.jsonl. undo restores the exact previous values.

  • Automatic backups. When the server first connects, it saves the whole board as presets/session-start-<time>.json (the last 10 are kept). Loading a preset or snapshot first saves presets/autosave-before-….

  • Blocked. /-prefs is never read or written. The mixer returns its network settings, including Wi-Fi passwords, to anyone on the LAN who asks over OSC.

Limits can be changed with environment variables in the app's MCP config: XR18_MAX_RAISE_DB, XR18_LOUD_DB, XR18_LR_MAX_DB, XR18_MAX_GAIN_JUMP_DB, XR18_MAX_MUTES. Other settings: XR18_DATA_DIR sets where presets and logs go (default: Documents\XR18-MCP on Windows, ~/XR18-MCP on macOS; this repo's .mcp.json points it at the checkout), and XR18_AUTOSAVE=0 turns off the session-start backup.

Development

uv sync
uv run pytest --cov    # no hardware needed

The tests run against tests/fake_mixer.py, an in-process UDP stand-in for the XR18 (or an X32). It answers reads, stores writes, renders /node text, streams meters, handles snapshot commands and can simulate lost packets. Every MCP tool is tested through the MCP layer, and coverage must stay at 95% or more. CI runs the suite on Linux, macOS and Windows with Python 3.10 and 3.13.

Layout: osc_client.py (UDP, matches each reply to its request, pipelined reads, meters) · model.py (value conversions, strips, the Profile base class with name lookup and parameter mapping) · xair.py / x32.py (each mixer family's address map) · mixer.py (connection, profile detection, guarded writes, undo) · safety.py · meters.py · presets.py · server.py (MCP tools).

XR18 OSC notes (checked on firmware 1.25)

  • /node ,s "ch/01/eq" returns that section as human-readable text in one packet (at most about 528 bytes, so request small sections). Setting values as text through / does not work on the XR18; only typed values do.

  • A full board is 2,898 parameters. With 16 requests in flight it reads in about 1.6 s.

  • EQ Q is log from 10 down to 0.3 (raw 0 = Q 10). Gate mode order is EXP2, EXP3, EXP4, GATE, DUCK. Send tap order is IN, PREEQ, POSTEQ, PRE, POST, GRP.

  • Snapshots: to save, set /-snap/name ,s then send /-snap/save ,i N. Load and delete are /-snap/load ,i N and /-snap/delete ,i N.

  • Meters: /meters ,s "/meters/1" streams for about 10 s. Each blob is an int32 count followed by int16 values in 1/256 dBFS (little-endian).

Fader, frequency and dynamics curves come from xair-api-python (MIT). Its EQ Q curve and gate-mode order are corrected here.

License

MIT, see LICENSE.

Available Tools

28 tools
apply_changesA

Apply several changes at once as ONE undo step, e.g. rebalancing a monitor mix: [{target:'click', param:'send.level', dest:'bus2', delta:3}, {target:'bass', param:'send.level', dest:'bus2', delta:-2}].

Inputs: changes (required), confirm, summary.

board_overviewA
Read-only

Whole-board summary: every input with source, preamp gain/phantom, HPF, fader, mute, LR assign and active sends; buses, FX sends and returns, main LR and DCAs. Start here.

Inputs: no named parameters.

change_historyB
Read-only

Changes made through this assistant in this session, newest first.

Inputs: limit.

channel_detailB
Read-only

Every setting of one strip (channel, aux, FX return, bus, FX send, LR or DCA) as shown by the mixer: config, preamp, gate, compressor, EQ bands, fader, sends, groups.

Inputs: target (required).

diff_presetA
Read-only

Show what differs between a saved preset and the current board (or another preset given as other). Answers 'what changed since ...'.

Inputs: name (required), other, max_lines.

find_channelsA
Read-only

Find strips whose name contains the query (case-insensitive). Empty query lists all named strips.

Inputs: query.

gain_checkA
Read-only

Gain-staging helper. Ask the musicians to play their LOUDEST part first, then run this. Measures channel peaks and suggests preamp gain changes to reach target_peak_db (default -12 dBFS). Suggests only - apply with set_preamp.

Inputs: seconds, targets, target_peak_db.

list_presetsA
Read-only

List saved board presets (newest first).

Inputs: no named parameters.

load_presetA
Destructive

Restore a saved preset to the mixer (only differing parameters are written). Always needs confirm; the current board is auto-saved first and the load is one undo step.

Inputs: name (required), confirm.

mixer_statusB
Read-only

Connection info: model, name, IP, firmware, guardrail limits and change count.

Inputs: no named parameters.

osc_getA
Read-only

Read any OSC address (e.g. /ch/01/eq/2/f) - returns the raw value and the mixer's own text readout. Escape hatch for settings the other tools don't cover.

Inputs: address (required).

osc_setA

Write a RAW OSC value (normalized 0..1 floats for levels/frequencies, ints for switches/enums, text for names). Prefer the dedicated tools. Guardrails still apply; system paths need confirm.

Inputs: value (required), address (required), confirm.

read_metersA
Read-only

Measure live levels for a few seconds (peak and average dBFS, 0 = clipping). scope 'channels' = channel strips, FX returns, buses, main LR; 'inputs' = raw mic/aux/USB inputs. Flags clipping, hot, low and silent signals.

Inputs: scope, seconds, include_silent.

save_presetB

Save the whole board (all channel, bus, FX, routing and preamp settings) to presets/.json. Use names like 'song-3' or 'band-X-2026-09'. Overwrites a preset with the same name.

Inputs: name (required), notes.

set_compressorB

Compressor on a channel, bus or main LR. threshold -60..0 dB, ratio 1.1..100 (snaps to 1.1/1.3/1.5/2/2.5/3/4/5/7/10/20/100), knee 0..5, makeup 0..24 dB, attack 0..120 ms, release 5..4000 ms, mix 0..100 %.

Inputs: target (required), on, auto, knee, +10 more.

set_eqB

Parametric EQ. Channels/aux/FX returns have bands 1-4, buses and LR 1-6. Gain -15..+15 dB, freq 20..20000 Hz, Q 0.3..10. on=true/false (without band) switches the whole EQ.

Inputs: target (required), q, on, band, +4 more.

set_faderA

Set a fader (channel, aux, FX return, bus, FX send, main LR or DCA). Give db (absolute, -inf..+10) or delta_db (relative, e.g. -3).

Inputs: target (required), db, confirm, delta_db.

set_gateC

Channel noise gate / expander. threshold -80..0 dB, range 3..60 dB, attack 0..120 ms, hold 0.02..2000 ms, release 5..4000 ms.

Inputs: target (required), on, mode, hold_ms, +4 more.

set_hpfA

Channel high-pass (low-cut) filter, 20..400 Hz. Setting freq_hz also switches it on unless on=false.

Inputs: target (required), on, freq_hz.

set_muteB

Mute (muted=true) or unmute (muted=false) one or more strips.

Inputs: targets (required), muted, confirm.

set_preampA

Mic preamp of a channel: gain -12..+60 dB (absolute or delta), 48 V phantom power, polarity invert. Phantom changes always need confirmation.

Inputs: target (required), invert, confirm, gain_db, +2 more.

set_sendB

Set the send level from a channel/aux/FX return to a bus (bus1-6, monitor mixes) or FX send (fxsend1-4). Give db or delta_db, and optionally the tap point (PRE = pre-fader, usual for monitors).

Inputs: dest (required), source (required), db, tap, +2 more.

setup_channelsA

Set up many input channels from an input list / stage plot in one go (one undo step): names, colours, HPF, preamp gain, phantom, USB source, LR assign, fader, pan.

Inputs: channels (required), confirm.

setup_monitor_mixA

Build a monitor / in-ear mix on a bus in one step: sends = {source: dB} (e.g. {'vocal': 0, 'guitar': -6, 'click': -3}); sources not listed are left unchanged. Sets the tap point (default PRE-fader) for the listed sources, and optionally the bus name, colour and master fader.

Inputs: bus (required), sends (required), tap, name, +3 more.

snapshot_listA
Read-only

List the mixer's internal snapshots (slots 1-64) that have a name.

Inputs: no named parameters.

snapshot_loadA
Destructive

Load one of the mixer's internal snapshots (changes the whole board). Always needs confirm; the current board is auto-saved as a preset first so it can be restored with load_preset.

Inputs: slot (required), confirm.

snapshot_saveA
Destructive

Save the current board into the mixer's internal snapshot slot 1-64 with a name (max 12 chars). Overwriting a named slot needs confirm.

Inputs: name (required), slot (required), confirm.

undoA

Revert the last change group(s) made through this assistant (restores the exact previous values).

Inputs: steps.

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 28 tools

    Disambiguation4/5

    Each set_* tool targets a distinct parameter group, and the inspection tools are separated by scope (whole board vs single strip vs search). The main ambiguity is between external presets and internal snapshots, though descriptions clarify file vs slot storage.

    Naming Consistency3/5

    The set_* and snapshot_* groups are internally consistent, and most save/list/load tools follow verb_noun. However, top-level noun-style names like mixer_status, board_overview, channel_detail, and gain_check break the pattern, and setup_* plus apply_changes add another convention.

    Tool Count4/5

    28 tools is on the high side, but the XR18's full mixing surface—preamp, gate, EQ, compressor, sends, presets, snapshots, and metering—justifies nearly all of them. No tool feels redundant, so the count is comprehensive rather than bloated.

    Completeness4/5

    Core workflows are covered end-to-end: inspect the board, set processing, build monitor mixes, gain-stage, save/restore state, and undo changes. Some single-strip operations like individual name/color/pan and effect editing are only available via setup_channels or OSC, but the osc_get/osc_set escape hatch prevents dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects AI coding agents to PreSonus StudioLive III mixers over the local network, exposing live mixer context such as channel names, mute/solo/fader state, Fat Channel compressor/EQ models, and meter activity as MCP resources and tools for reading and reasoning about live sound engineering.
      1
      MIT