MusicXML Synthesizer

v0.3.0
io.github.raulkivi/synth-mcp Checked 4 days ago Published 10 days ago

Synthesizes audio from MusicXML, with voice-part selection and tempo control

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_parts List voice parts

List all voice parts available in a MusicXML score

ParameterTypeDescription
musicxmlstringMusicXML document as a string. Give this or 'musicxml_path', not both.
musicxml_pathstringPath to the score as a .musicxml, .xml or .mxl file, such as a path another tool returned. Preferred over 'musicxml': the score is not copied into the conversation. Give this or 'musicxml', not both.

synthesize Play voice parts

Synthesize audio from a MusicXML score. Optionally select specific voice parts and adjust the tempo.

ParameterTypeDescription
count_in_barsintegerBars of wood-block clicks before the music, in its first time signature and tempo. Default: 0.
focus_partstringThe part (ID, name or voice) a 'learning' or 'karaoke' preset is for; required by those presets.
measuresarrayInclusive [start, end] range of printed measure numbers, e.g. [17, 24]. A pickup bar is 0.
metronomebooleanClick on every beat of the music too. Default: false.
musicxmlstringMusicXML document as a string. Give this or 'musicxml_path', not both.
musicxml_pathstringPath to the score as a .musicxml, .xml or .mxl file, such as a path another tool returned. Preferred over 'musicxml': the score is not copied into the conversation. Give this or 'musicxml', not both.
output_pathstringPath to write WAV file (auto-generated if omitted)
part_gainsobjectPer-part volume: part ID, name or voice → gain 0.0 (silent) to 2.0, 1.0 = normal. Parts not listed get 1.0, or the preset's gain. Example: {"Alto": 1.5}.
part_idsarray(Deprecated: use `parts`) Parts to include.
partsarrayParts to include, each a part ID, name or voice (e.g. 'P1', 'Soprano', 'S'). Default: all parts.
presetstringBase gains: 'learning' = focus_part loud (1.5), others soft (0.5); 'karaoke' = focus_part muted, others normal; 'equal' = all 1.0. part_gains entries override it.
repeatintegerPlay the (selected) music this many times. Default: 1.
tempo_factornumberTempo multiplier: 1.0 = score tempo, 0.75 = 75% speed. Valid range: 0.25–4.0. Default: 1.0
timbrestringSound for every part: 'score' keeps the score's instruments (default); 'piano', 'choir' or 'organ' replace them.

starting_pitches Play starting pitches

Give each part's first note, as text ('S: D5, A: A4, T: F#4, B: D3') and as a short piano clip: each note for 1 s, then the chord for 2 s. The clip is inline audio when small, else a file link; without a soundfont the text comes alone.

ParameterTypeDescription
musicxmlstringMusicXML document as a string. Give this or 'musicxml_path', not both.
musicxml_pathstringPath to the score as a .musicxml, .xml or .mxl file, such as a path another tool returned. Preferred over 'musicxml': the score is not copied into the conversation. Give this or 'musicxml', not both.
output_pathstringPath to write the WAV clip (default: audio/starting-pitches-<timestamp>.wav in the output folder)
partsarrayParts to include, each a part ID, name or voice (e.g. 'P1', 'Soprano', 'S'). Default: all parts.

list_capabilities Synth capabilities

List supported formats and available tools for this synthesis server

health_check Synth health check

Check whether all runtime dependencies are available and correctly configured. Returns a human-readable status summary. Call this first to verify the server is ready before attempting synthesis.

describe_score Describe score

Summarize a score cheaply, without music21 or rendering: title, composer, key, time signature, tempo, parts (ID, name, abbreviation, clef, sounding range), number of measures, whether it has lyrics, and duration in quarter notes and seconds. Returns small JSON and does not return the score itself, so call it first to learn the part IDs and size of a score. Pass musicxml_path (preferred) or musicxml.

ParameterTypeDescription
musicxmlstringMusicXML text of the score. Give this or 'musicxml_path', not both.
musicxml_pathstringPath to the score as a .musicxml, .xml or .mxl file, such as a path another tool returned. Preferred over 'musicxml': the score is not copied into the conversation. Give this or 'musicxml', not both.