MusicXML to ABC
v0.3.0Converts between MusicXML and ABC notation, so LLMs can read and edit scores
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
musicxml_to_abc MusicXML to ABC
Convert a MusicXML document to ABC notation. ABC is compact and human-readable — ideal for Claude to read and edit scores directly. Optionally filter to a single part and to a range of printed bars (measures). Pass the score as musicxml_path (preferred) or as musicxml text.
| Parameter | Type | Description |
|---|---|---|
measures | array | Inclusive [start, end] range of printed measure numbers, e.g. [17, 24]. A pickup bar is 0. |
musicxml | string | MusicXML document as a string. Give this or 'musicxml_path', not both. |
musicxml_path | string | Path 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. |
part | string | Export only this part: a part ID, name or voice (e.g. 'P1', 'Soprano', 'S'). Omit to include all parts. |
part_id | string | (Deprecated: use `part`) Export only this part. |
abc_to_musicxml ABC to MusicXML
Convert an ABC notation string back to MusicXML. Use this after Claude has read or edited an ABC score to produce MusicXML for synthesis or rendering. With return 'auto' (default) a small score comes back as musicxml text and a large one as musicxml_path plus a short score_summary; 'inline' always returns the text, 'path' always writes a file. Pass musicxml_path on to other tools.
| Parameter | Type | Description |
|---|---|---|
abc * | string | ABC notation string |
return | string | How to return the score: 'inline' as MusicXML text, 'path' as a file path plus a short score_summary, 'auto' (default) inline for small scores and a path for large ones. Pass returned paths to other t… |
apply_abc_edit Apply ABC edit
Replace some bars of one part of a score with edited ABC and return the new score. Only those bars of that part change: other parts, the header and all other bars are kept byte for byte, and the edited bars keep their layout, attributes and bar lines. Export the bars first with musicxml_to_abc (same part and measures), edit that ABC, then pass it here; it must hold exactly one bar per measure in the range. Key, time, clef and tempo come from the score, not the ABC header. warnings lists dynamics, lyrics or articulations the edited bars lost and bars whose length changed. With return 'auto' (de…
| Parameter | Type | Description |
|---|---|---|
abc * | string | One ABC tune (X:, M:, L:, K: headers) with the new bars, one per measure in the range, such as an edited musicxml_to_abc export. |
measures * | array | Inclusive [start, end] range of printed measure numbers, e.g. [17, 24]. A pickup bar is 0. |
part * | string | The part to edit: a part ID, name or voice (e.g. 'P1', 'Soprano', 'S'). |
musicxml | string | MusicXML document as a string. Give this or 'musicxml_path', not both. |
musicxml_path | string | Path 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. |
return | string | How to return the score: 'inline' as MusicXML text, 'path' as a file path plus a short score_summary, 'auto' (default) inline for small scores and a path for large ones. Pass returned paths to other t… |
validate_abc Validate ABC
Validate an ABC notation string. Returns whether the ABC is parseable and lists any errors or warnings.
| Parameter | Type | Description |
|---|---|---|
abc * | string | ABC notation string to validate |
list_capabilities ABC capabilities
List supported formats and available tools for this server
health_check ABC health check
Check that the server and all its dependencies are working correctly. Runs a short MusicXML → ABC → MusicXML round-trip and returns a human-readable status summary. Ask your AI assistant to run this tool to confirm the server is set up correctly.
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.
| Parameter | Type | Description |
|---|---|---|
musicxml | string | MusicXML text of the score. Give this or 'musicxml_path', not both. |
musicxml_path | string | Path 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. |