hydrogen-mcp-server

v0.3.2
hydrogen-mcp-server Checked 4 days ago Published 6 days ago

Local 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.

ParameterTypeDescription
refreshboolean

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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
action *string
strip
values

hydrogen_open_song Hydrogen Open Song

Open an existing song in Hydrogen, replacing the current session. Save current edits first.

ParameterTypeDescription
source *objectPath 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.

ParameterTypeDescription
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.

ParameterTypeDescription
output *string

hydrogen_add_live_pattern Hydrogen Add Live Pattern

Create an empty pattern in the active Hydrogen song.

ParameterTypeDescription
name *string

hydrogen_open_pattern Hydrogen Open Pattern

Import a standalone pattern into the active Hydrogen song.

ParameterTypeDescription
source *objectPath 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.

ParameterTypeDescription
source *objectPath relative to a configured library root.
keep_used_instrumentsboolean

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.

ParameterTypeDescription
enable_oscboolean
playlist
song
wait_secondsnumber

hydrogen_list Hydrogen List

Find native songs, patterns, playlists, drumkit manifests and archives, or rendered audio.

ParameterTypeDescription
kind *string
folder
limitinteger
scopestring

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.

ParameterTypeDescription
source *objectPath relative to a configured library root.
note_limitinteger
note_offsetinteger
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.

ParameterTypeDescription
output *string
source *objectPath relative to a configured library root.
channel
drumkit
note_lengthsboolean
pattern_prefixstring
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.

ParameterTypeDescription
instrument *integer
source *objectPath 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.

ParameterTypeDescription
source *objectPath relative to a configured library root.

hydrogen_read_pattern Hydrogen Read Pattern

Inspect a standalone pattern and read its notes in pages.

ParameterTypeDescription
source *objectPath relative to a configured library root.
note_limitinteger
note_offsetinteger

hydrogen_write_pattern Hydrogen Write Pattern

Create a native .h2pattern file for the named drumkit and note instrument IDs.

ParameterTypeDescription
drumkit *string
output *string
pattern *object

hydrogen_read_playlist Hydrogen Read Playlist

Read ordered song paths and script-enabled flags in a playlist.

ParameterTypeDescription
source *objectPath 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.

ParameterTypeDescription
name *string
output *string
songs *array

hydrogen_read_drumkit Hydrogen Read Drumkit

Inspect a drumkit.xml manifest, including instrument IDs and metadata.

ParameterTypeDescription
source *objectPath 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.

ParameterTypeDescription
source *objectPath relative to a configured library root.
legacyboolean

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.

ParameterTypeDescription
source *objectPath relative to a configured library root.
destinationstring
folder
upgradeboolean

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.

ParameterTypeDescription
name *string
source *objectPath relative to a configured library root.
authorstring
destinationstring
folder
infostring
instruments
licensestring

hydrogen_export_drumkit Hydrogen Export Drumkit

Export a native drumkit manifest and its samples to a new .h2drumkit archive.

ParameterTypeDescription
output *string
source *objectPath 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.

ParameterTypeDescription
output *string
source *objectPath relative to a configured library root.
bit_depthinteger
compressionnumber
interpolationinteger
sample_rateinteger

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.

ParameterTypeDescription
output_folder *string
source *objectPath relative to a configured library root.
bit_depthinteger
instruments
interpolationinteger
sample_rateinteger

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.

ParameterTypeDescription
output *string
source *objectPath relative to a configured library root.