hydrogen-mcp-server
v0.3.2Local MCP server for the Hydrogen drum machine: live OSC control, song and drumkit editing, MIDI import and export, and audio rendering
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hydrogen_controls Hydrogen Controls
List live OSC actions and their argument order, ranges and indexing.
hydrogen_status Hydrogen Status
Report local paths, saved OSC settings and timestamped live mixer feedback.
| Parameter | Type | Description |
|---|---|---|
refresh | boolean |
hydrogen_desktop_windows Hydrogen Desktop Windows
List visible Windows dialogs and windows owned by the configured Hydrogen executable.
hydrogen_desktop_image Hydrogen Desktop Image
Capture the client area of a selected Hydrogen window as PNG, using its own window surface.
| Parameter | Type | Description |
|---|---|---|
window * | integer |
hydrogen_desktop_input Hydrogen Desktop Input
Interact with a selected Hydrogen window. Use image coordinates for click, right click, double click, drag and scroll, or send a keyboard chord or literal text.
| Parameter | Type | Description |
|---|---|---|
command * | ||
window * | integer |
hydrogen_live Hydrogen Live
Send a live action for transport, recording, tempo, mixer, timeline, playlist, triggering or pattern controls. Discover exact arguments with hydrogen_controls. Mutating actions affect the active Hydrogen session.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
strip | ||
values |
hydrogen_open_song Hydrogen Open Song
Open an existing song in Hydrogen, replacing the current session. Save current edits first.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
hydrogen_new_song Hydrogen New Song
Start a blank song at a new project path. Replaces the active song and writes when saved.
| Parameter | Type | Description |
|---|---|---|
output * | string |
hydrogen_save_as Hydrogen Save As
Save the current song to a new project path, make it active and verify valid song XML was written.
| Parameter | Type | Description |
|---|---|---|
output * | string |
hydrogen_add_live_pattern Hydrogen Add Live Pattern
Create an empty pattern in the active Hydrogen song.
| Parameter | Type | Description |
|---|---|---|
name * | string |
hydrogen_open_pattern Hydrogen Open Pattern
Import a standalone pattern into the active Hydrogen song.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
hydrogen_load_drumkit Hydrogen Load Drumkit
Load an installed drumkit given its drumkit.xml manifest through the live app.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
keep_used_instruments | boolean |
hydrogen_launch Hydrogen Launch
Open a new desktop Hydrogen process with an optional song or script-free playlist, then wait up to wait_seconds until it answers over OSC and its interface has loaded. Fails when a Hydrogen instance already answers on the OSC port. When the saved preferences have OSC off or use another port, enable_osc starts this instance from a copy of the preferences with OSC and feedback on. The copy lives in the projects folder, and the preferences file itself stays unchanged.
| Parameter | Type | Description |
|---|---|---|
enable_osc | boolean | |
playlist | ||
song | ||
wait_seconds | number |
hydrogen_list Hydrogen List
Find native songs, patterns, playlists, drumkit manifests and archives, or rendered audio.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
folder | ||
limit | integer | |
scope | string |
hydrogen_read_song Hydrogen Read Song
Inspect a song's mixer, instrument IDs, pattern list, arrangement and timeline. Supply a pattern name to read its notes in pages.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
note_limit | integer | |
note_offset | integer | |
pattern |
hydrogen_edit_song Hydrogen Edit Song
Create a new song from a template, or from a blank song when source is omitted. Edit sequencer, mixer, instruments, sample layers, playback track or velocity automation. Set drumkit to use the instruments of an installed kit, and reset_patterns to start with an empty sequence.
hydrogen_import_midi Hydrogen Import Midi
Convert a Standard MIDI File into a new song with one pattern per distinct bar. Instruments come from the template song or the drumkit.xml manifest. A MIDI note plays the instrument whose MIDI output note it matches, the same mapping hydrogen_export_midi writes. Set pitched_instrument to play every other note as a key of that instrument, for a bass line or melody. Set channel 1 to 16 to read a single channel, such as 10 for drums. Notes play their whole sample unless note_lengths keeps the MIDI durations. Time signatures set the pattern sizes, and tempo changes and markers snap to bar starts.
| Parameter | Type | Description |
|---|---|---|
output * | string | |
source * | object | Path relative to a configured library root. |
channel | ||
drumkit | ||
note_lengths | boolean | |
pattern_prefix | string | |
pitched_instrument | ||
template |
hydrogen_read_instrument Hydrogen Read Instrument
Read one instrument of a song or of a drumkit.xml manifest: parameters, components, sample layers and region settings.
| Parameter | Type | Description |
|---|---|---|
instrument * | integer | |
source * | object | Path relative to a configured library root. |
hydrogen_read_audio Hydrogen Read Audio
Report channels, sample rate, frame count and duration of an audio file, such as a render or a sample, in any format Hydrogen renders: WAV, Wave64, AIFF, AU, CAF, FLAC, Ogg Vorbis, Opus, MP3 and VOC. PCM and float files in WAV, Wave64, AIFF, AU and CAF also report bit depth, peak level and whether they are silent.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
hydrogen_read_pattern Hydrogen Read Pattern
Inspect a standalone pattern and read its notes in pages.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
note_limit | integer | |
note_offset | integer |
hydrogen_write_pattern Hydrogen Write Pattern
Create a native .h2pattern file for the named drumkit and note instrument IDs.
| Parameter | Type | Description |
|---|---|---|
drumkit * | string | |
output * | string | |
pattern * | object |
hydrogen_read_playlist Hydrogen Read Playlist
Read ordered song paths and script-enabled flags in a playlist.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
hydrogen_write_playlist Hydrogen Write Playlist
Create a native playlist of the selected songs in order, with scripts disabled.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
output * | string | |
songs * | array |
hydrogen_read_drumkit Hydrogen Read Drumkit
Inspect a drumkit.xml manifest, including instrument IDs and metadata.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
hydrogen_validate_drumkit Hydrogen Validate Drumkit
Validate a drumkit.xml manifest or .h2drumkit archive with Hydrogen's native CLI.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
legacy | boolean |
hydrogen_import_drumkit Hydrogen Import Drumkit
Extract a drumkit archive to a new folder. Upgrade mode accepts an archive or drumkit.xml and converts a copy to the current format.
| Parameter | Type | Description |
|---|---|---|
source * | object | Path relative to a configured library root. |
destination | string | |
folder | ||
upgrade | boolean |
hydrogen_create_drumkit Hydrogen Create Drumkit
Create a drumkit in a new folder from the instruments of a song, such as one built with sample_instruments. Pass instrument IDs or use all instruments. The samples are copied into the kit, and Hydrogen writes and validates its manifest. The result holds a drumkit reference for hydrogen_edit_song, hydrogen_load_drumkit and hydrogen_export_drumkit. A drumkit stores whole samples, so sample trims and loops stay with the song.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
source * | object | Path relative to a configured library root. |
author | string | |
destination | string | |
folder | ||
info | string | |
instruments | ||
license | string |
hydrogen_export_drumkit Hydrogen Export Drumkit
Export a native drumkit manifest and its samples to a new .h2drumkit archive.
| Parameter | Type | Description |
|---|---|---|
output * | string | |
source * | object | Path relative to a configured library root. |
hydrogen_render Hydrogen Render
Render a song using h2cli. Select the format via the output extension. Interpolation 0 to 4 selects linear, cosine, third, cubic or Hermite. Codec support depends on the installed build.
| Parameter | Type | Description |
|---|---|---|
output * | string | |
source * | object | Path relative to a configured library root. |
bit_depth | integer | |
compression | number | |
interpolation | integer | |
sample_rate | integer |
hydrogen_render_stems Hydrogen Render Stems
Render separate stereo WAV stems in a new project folder. Pass instrument IDs or use all instruments. Stems use their mixer settings and exclude the playback track.
| Parameter | Type | Description |
|---|---|---|
output_folder * | string | |
source * | object | Path relative to a configured library root. |
bit_depth | integer | |
instruments | ||
interpolation | integer | |
sample_rate | integer |
hydrogen_export_midi Hydrogen Export Midi
Export an arranged song as Standard MIDI File type 1 the way Hydrogen does: tempo and time signatures, timeline tags as markers, notes on each instrument's MIDI output note and channel, and velocity automation. skipped_notes counts notes that make no sound, sit outside their pattern, belong to no instrument or fall outside the MIDI pitch range. columns_without_time_signature counts columns whose length no MIDI time signature can express.
| Parameter | Type | Description |
|---|---|---|
output * | string | |
source * | object | Path relative to a configured library root. |