About Musescore
Musescore is an MCP server published by ghchen99 in the Developer Tools category: a Model Context Protocol (MCP) server that provides programmatic control over MuseScore!. Conduid read 73 tools from its source: add_articulation, add_break, add_instrument, add_label, add_lyrics, add_marker and 67 more. No package is published for it, so it installs from a source checkout.
The repository has 160 stars and 45 forks, is licensed MIT, and its last commit was on 28 Nov 2026. The latest release is v0.2.1 (13 Oct 2026). It follows v0.2.0 (13 Oct 2026), and the 3 most recent releases go back to v0.1.0 (13 Oct 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include fastmcp, music and devtools.
Install
git clone https://github.com/ghchen99/mcp-musescoreTools (73)
add_articulationAdd an articulation to the chords that contain the chosen drums in a range of bars (and beats): 'half_open' (half-open hi-hat), 'open', 'closed' (hi-hat), 'accent', 'marcato', 'staccato', 'tenuto'. E.g. drums=['hi-hat'], symbol='half_open' marks the hi-hats of bars 72-85 as half-open. Chords that already have it are left alone. Remove with remove_articulations.| Parameter | Type | Description |
|---|---|---|
| drums | array | |
| end_beat | number | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| pitches | array | |
| start_beat | number | |
| start_measure * | any | |
| symbol | string |
add_breakEnd a system (line), page or section after a bar, as from MuseScore's Breaks & spacers palette. A break of that kind the bar already has is refused. get_score lists breaks under [Markings]; remove them with remove_annotations(kinds=['breaks']). For a fixed number of bars on every system, use set_measures_per_system.| Parameter | Type | Description |
|---|---|---|
| kind | string | |
| measure * | any |
add_instrumentAdd a new staff/instrument to the score.| Parameter | Type | Description |
|---|---|---|
| instrument_id * | string |
add_labelAdd a label in a colored box (a boxed staff text) at the start of a measure, e.g. a section tag like 'Groove x7' or 'Fill'. Saved in the score; remove with clear_highlights.| Parameter | Type | Description |
|---|---|---|
| background | string | |
| border | string | |
| measure * | any | |
| staff | integer | |
| text * | string |
add_lyricsAdd lyrics to consecutive notes starting from the current cursor position, one entry per note (rests are skipped). End a syllable with '-' to hyphenate it to the next one ("Hel-", "lo"). Use "_" (or "") for a note that continues the previous syllable: no lyric is placed there and the previous syllable gets an extender line over it, as MuseScore draws a melisma.| Parameter | Type | Description |
|---|---|---|
| lyrics * | array | |
| verse | integer |
add_markerAdd a repeat marker or jump to a bar, as from MuseScore's Repeats & jumps palette: 'segno', 'coda', 'to_coda' (the words To Coda), 'to_coda_symbol' (To and the coda sign), 'fine', or a jump: 'dc', 'dc_al_fine', 'dc_al_coda', 'ds', 'ds_al_fine', 'ds_al_coda'. Segno and Coda go on the bar they start; To Coda, Fine and the jumps on the bar they end. A jump's reply lists under `missing` the markers it needs that the score doesn't have yet (D.S. al Coda needs a Segno, a To Coda and a Coda): add them too, or ask the user where they go. A marker the bar already has is refused. Remove with remove_annotations (kinds 'markers', 'jumps').| Parameter | Type | Description |
|---|---|---|
| marker * | string | |
| measure * | any |
add_noteAdd a note at the current cursor position with the specified pitch and duration. Sequential notes write a melody. Set add_to_chord=True to stack a pitch on the current chord.| Parameter | Type | Description |
|---|---|---|
| add_to_chord | boolean | |
| advance_cursor_after_action | boolean | |
| duration | object | |
| pitch | integer |
add_rehearsal_markAdd a rehearsal mark (section label such as 'A' or 'Verse') at the start of a bar. Experimental: check the score afterwards.| Parameter | Type | Description |
|---|---|---|
| measure * | any | |
| text * | string |
add_restAdd a rest at the current cursor position.| Parameter | Type | Description |
|---|---|---|
| advance_cursor_after_action | boolean | |
| duration | object |
add_textAdd free text at a bar (optionally at a beat) with its own look: size, italic/bold, color, above or below the staff. Defaults give a small, italic, light-grey cue, e.g. the first words of a section's lyrics as a reminder for the player. kind='expression' makes it an expression text. Use the text the user provides. Remove with Ctrl+Z, or select the texts in MuseScore and delete them.| Parameter | Type | Description |
|---|---|---|
| beat | number | |
| bold | boolean | |
| color | string | |
| italic | boolean | |
| kind | string | |
| measure * | any | |
| placement | string | |
| size | number | |
| staff | integer | |
| text * | string |
add_tieTie notes of the chord at the cursor to the same pitches in the next chord of that staff. A tie joins two notes of the same pitch into one longer sound. Only pitches in both chords can be tied: by default every such pitch is tied; pass pitches to tie only some of them (e.g. tie C and E of C-E-G into C-E-A with pitches=[60, 64]). Afterwards the cursor is on the second chord, so calling add_tie again continues a tie chain. Note that after add_note the cursor is already on the next position: move back to the first note (e.g. with prev_element) before calling add_tie. Write both chords completely before tying: MuseScore treats tied chords as one, so a pitch added afterwards with add_note(add_to_chord=True) to the second chord is also added, tied, to the first. While writing music, add_tied_note is usually simpler. Fails without changing the score when no pitch can be tied, e.g. when the next element is a rest.| Parameter | Type | Description |
|---|---|---|
| pitches | array |
add_tied_noteWrite the next note or chord at the cursor, tied to the chord before the cursor: like pressing + in MuseScore's note input. Use it after add_note to hold a note longer, e.g. across a barline. By default the new chord repeats every pitch of the chord before it, all tied; pass pitches to tie only some of them, and extra_pitches for new pitches in the same chord without a tie (e.g. C-E-G into C-E-A: pitches=[60, 64], extra_pitches=[69]). Add new pitches this way, not with add_note(add_to_chord=True) afterwards: MuseScore treats tied chords as one and would also add the pitch, tied, to the chord before. A note longer than the rest of the bar is split at the barline into tied notes, and the cursor moves past all of it. Fails without changing the score when there is no note before the cursor or a pitch is not in it.| Parameter | Type | Description |
|---|---|---|
| advance_cursor_after_action | boolean | |
| duration * | object | |
| extra_pitches | array | |
| pitches | array |
add_tupletAdd an empty tuplet (rests) at the current cursor position. By default the cursor stays on its first slot, so the following add_note calls fill it slot by slot, each with the duration of one slot (an eighth for a triplet of eighths). With advance_cursor_after_action=True the cursor moves past the whole tuplet instead.| Parameter | Type | Description |
|---|---|---|
| advance_cursor_after_action | boolean | |
| duration | object | |
| ratio | object |
add_voltaAdd a volta (1st/2nd ending bracket) over a range of bars. Experimental: the plugin API has no dedicated volta call, so check the result; if it fails, the measures are selected and the reply says which palette item to click.| Parameter | Type | Description |
|---|---|---|
| end_measure | any | |
| endings | array | |
| start_measure * | any | |
| text | string |
append_measureAppend measures to the end of the score.| Parameter | Type | Description |
|---|---|---|
| count | integer |
apply_measure_repeatsTurn bars of one staff into measure-repeat signs (1-, 2- or 4-bar) automatically. MuseScore's plugin API cannot place these signs, so this saves the score, backs the file up, writes the signs into the file and reloads it in MuseScore. The reload resets MuseScore's undo history: use restore_backup to undo. Each sign repeats the bars just before it, and the replaced bars' notes are deleted. Bars with ties or slurs crossing their barlines are skipped and reported. Pass all groups for a staff in one call.| Parameter | Type | Description |
|---|---|---|
| groups * | array | |
| score_path | string | |
| staff * | integer |
beam_over_restsBeam eighths and shorter across rests inside a beat group (a dotted quarter in 12/8, a beat in 4/4), as drum charts write them: one beamed group per beat with the rest under the beam, instead of separate flags broken at every rest. Only rests with beamable notes before and after them in the same group change. Run it over the whole drum staff once the chart is done. clear=True puts the rests back on automatic beaming.| Parameter | Type | Description |
|---|---|---|
| clear | boolean | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| start_measure | any |
clear_colorReset notes and rests in a range of measures and staves (optionally only some beats) to the default black.| Parameter | Type | Description |
|---|---|---|
| end_beat | number | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| start_beat | number | |
| start_measure * | any |
clear_highlightsRemove highlights from a range of measures and staves. kinds: 'highlights' = bands and boxes from highlight_bars, highlight_notes and highlight_symbols; 'markings' = boxes behind dynamics (highlight_markings); 'labels' = boxed labels (add_label); 'notes' = small notehead boxes made by older versions. Recolored notes and symbols are reset with clear_color / highlight_symbols(mode='color', clear=True).| Parameter | Type | Description |
|---|---|---|
| end_measure | any | |
| first_staff | integer | |
| kinds | array | |
| last_staff | integer | |
| start_measure | any |
collapse_to_repeatCollapse a run of repeated bars or phrases into one played N times: keeps the first phrase_bars bars from start, deletes the rest of the run, and puts start/end repeat barlines with a play count around the kept bars (shown as e.g. '7x'). With phrase_bars=2, bars start..end must be a 2-bar phrase repeated (e.g. 28-35 becomes 28-29 x4). This changes every staff, so use it in a score that contains only the part being charted (make_part_score). It refuses when any staff's copies differ in anything but ghost notes and crashes on beat 1, unless force=True. Later bars move up: collapse from the end of the score backwards. Needs MuseScore 4.6+.| Parameter | Type | Description |
|---|---|---|
| end * | any | |
| force | boolean | |
| phrase_bars | integer | |
| start * | any |
color_rangeColor the notes and rests (with their stems, beams, accidentals, dots, ties and grace notes such as flams) in a range of measures and staves, e.g. to highlight a passage. Use start_beat/end_beat to color only part of a bar, e.g. a fill on beats 3-4: notes and rests starting in that span are colored.| Parameter | Type | Description |
|---|---|---|
| color | string | |
| end_beat | number | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| start_beat | number | |
| start_measure * | any | |
| voices | array |
connect_to_musescoreConnect to the MuseScore WebSocket API.delete_measuresRemove whole measures (on every staff) from the score, like MuseScore's Remove selected range (Ctrl+Del). Works with multi-measure rests on (they are switched off meanwhile) and reports an error if MuseScore deleted fewer measures than asked. Later bars move up (and their printed numbers with them, unless the score sets them), so when removing several ranges start from the last one.| Parameter | Type | Description |
|---|---|---|
| end_measure | any | |
| start_measure * | any |
delete_selectionDelete the current selection, or the specified measure.| Parameter | Type | Description |
|---|---|---|
| measure | any |
find_elementsFind chord symbols, markers (Segno, Coda, To Coda, Fine), jumps, texts, boxed labels, rehearsal marks and tempo markings in a range of bars (the whole score by default), with what set_properties can change: placement ('above'/'below'), align ('left'/'center'/'right'), fontSize (points) and offset ([x, y] in staff spaces from where MuseScore puts it, y downwards). Use it to see what set_properties will change: both take the same selection. Markers and jumps belong to the bar and have no beat.| Parameter | Type | Description |
|---|---|---|
| beat | number | |
| contains | string | |
| end_measure | any | |
| exact | boolean | |
| first_staff | integer | |
| kinds | array | |
| last_staff | integer | |
| start_measure | any |
find_groove_sectionsMap the sections of a groove-based part (drums by default): for each section the groove bar, the bars that copy it exactly, near copies (with the hits that differ), and fills. Proposes measure-repeat signs for exact copies only, as ready-made apply_measure_repeats groups, and a collapse_to_repeat range for a 'groove bar x N' chart. Show near copies to the user and only replace them once approved: a repeat sign deletes their differences.| Parameter | Type | Description |
|---|---|---|
| end_measure | any | |
| start_measure | any | |
| staves | array | |
| tolerance | number |
find_repeated_measuresFind repeated material in the score. Returns (1) per-staff bars that repeat the previous 1, 2 or 4 bars, candidates for measure-repeat signs (these declutter the page but keep the length), and (2) whole-score passages played again right away, candidates for repeat barlines and 1st/2nd endings (these shorten the score once the duplicate measures are deleted). Each passage lists the tool calls that apply it. Reads the score in small chunks, so it works on large scores. Bars are as printed in the score as it is now: apply passages from the last one backwards.| Parameter | Type | Description |
|---|---|---|
| end_measure | any | |
| highlight | boolean | |
| start_measure | any | |
| staves | array |
get_cursor_infoGet information about the current cursor position.get_scoreGet the notes of the current score as LilyPond (or raw JSON), a range of bars at a time.| Parameter | Type | Description |
|---|---|---|
| end_measure | any | |
| format | string | |
| start_measure | any | |
| staves | array |
get_styleRead score style settings (Format → Style) by MuseScore's internal key, e.g. "createMultiMeasureRests", "chordSymbolAFontSize", "minMeasureWidth". Returns the current values, and lists under "unknown" the keys MuseScore does not have.| Parameter | Type | Description |
|---|---|---|
| keys * | array |
ghost_notesList the ghost notes (notes in parentheses) per bar, or remove them (mode='remove'). A chord made only of ghost notes becomes a rest. Show the list to the user before removing: whether a chart keeps ghost notes is their choice.| Parameter | Type | Description |
|---|---|---|
| drums | array | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| mode | string | |
| pitches | array | |
| start_measure | any |
go_to_beginning_of_scoreNavigate to the beginning of the score.go_to_final_measureNavigate to the final measure of the score.go_to_measureNavigate to a bar and select it across all staves. The cursor moves to beat 1 of that bar on the first staff, so the next cursor tool (add_note, add_rest, add_lyrics, set_time_signature...) acts there; use next_staff to move down to another staff.| Parameter | Type | Description |
|---|---|---|
| measure * | any |
highlight_barsHighlight bars like a highlighter pen: a thick, semi-transparent band behind the notes of each staff in the range, following the bars across line breaks. start_beat/end_beat limit it to part of a bar. Saved in the score; remove with clear_highlights. Experimental: check the result in the score.| Parameter | Type | Description |
|---|---|---|
| color | string | |
| end_beat | number | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| opacity | number | |
| start_beat | number | |
| start_measure * | any |
highlight_markingsHighlight markings such as dynamics (f, mf, ff) with a translucent box behind each one. get_score lists the markings in each measure. Remove with clear_highlights.| Parameter | Type | Description |
|---|---|---|
| color | string | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| opacity | number | |
| start_measure | any | |
| types | array |
highlight_notesHighlight individual hits like a highlighter pen: a translucent box around each matching note, as wide as the note and as tall as the whole staff (taller if the note sits above or below it). Hits close enough for their boxes to touch share one box. Use drums (e.g. ["crash"]) or pitches to pick notes in a chord. start_beat/end_beat limit it to part of a bar. Boxes are sized to the current layout: if the layout changes a lot, clear and highlight again. Remove with clear_highlights.| Parameter | Type | Description |
|---|---|---|
| color | string | |
| drums | array | |
| end_beat | number | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| opacity | number | |
| pitches | array | |
| start_beat | number | |
| start_measure * | any |
highlight_symbolsHighlight or recolor time signatures, repeat barlines (start/end repeat signs with their dots) and measure-repeat signs. mode='highlight' draws a full-staff-height translucent box around each one (pastel light blue by default); mode='color' recolors the symbol itself (clear=True resets it to black).| Parameter | Type | Description |
|---|---|---|
| clear | boolean | |
| color | string | |
| end_measure | any | |
| first_staff | integer | |
| kinds | array | |
| last_staff | integer | |
| mode | string | |
| opacity | number | |
| start_measure | any |
insert_measureInsert a measure at the current position.label_section_countsWrite each section's bar count (e.g. '2x4+2'). placement='label' (default, the chart style the user chose) puts it in parentheses in the section label (rehearsal mark): 'Chorus 1 (2x4)', and sets the labels to label_size points with label_clearance spaces around them, so MuseScore places and spaces them. placement='beside' writes it in bold red right of the label at the label's height (moved past a text already there or up over notes); MuseScore doesn't leave room for it between systems, so it can run into dynamics of the system above: only on request. Without counts, uses song_structure's counts (the ones already written in the labels where they still add up). Running it again replaces the counts in either form; clear=True removes them.| Parameter | Type | Description |
|---|---|---|
| clear | boolean | |
| color | string | |
| counts | array | |
| label_clearance | number | |
| label_size | number | |
| placement | string | |
| size | number | |
| staff | integer |
make_part_scoreMake a separate score containing only some parts (e.g. the drum kit) to build a chart in: saves the current score, writes a copy of its file without the other instruments (tempo, rehearsal marks, repeats and the title move to the kept staff), closes the original and opens the copy in its place (the plugin can only work in its own window). The original is saved and unchanged; if the copy can't be opened, the original is reopened. Works even when another instrument has a damaged bar. in_place=True instead removes the other instruments from the open score itself, without saving anything first (so a damaged bar in another instrument is never written again) and after backing up the full score (MusicXML export, plus a copy of its .mscz when it can be identified); it reports bars left that don't add up. Staff indices in the new score start again from 0.| Parameter | Type | Description |
|---|---|---|
| in_place | boolean | |
| output_path | string | |
| score_path | string | |
| staves * | array |
move_chord_symbolMove a chord symbol to another beat or bar, keeping its name. Refused when its name isn't readable (a chord symbol imported from MusicXML, until the score is saved, closed and opened again; saving alone is not enough): ask the user for the name, then set_chord_symbol at the new place and remove the old one. A target beat that already has a chord symbol, or that no note or rest starts on (a plugin can't add one there), is refused too.| Parameter | Type | Description |
|---|---|---|
| beat | number | |
| measure * | any | |
| staff | integer | |
| to_beat | number | |
| to_measure * | any |
next_elementMove cursor to the next element.next_staffMove cursor to the next staff.number_bars_as_playedMake the displayed bar numbers count repeated bars, as played: after a passage between repeat barlines played N times, the next bar's number jumps by (N - 1) x the passage length. Recomputes all bars (MuseScore's 'Add to measure number'), so it can be run again after changing repeats. exclude_from_count leaves bars out of the count, e.g. [1] for a silent pickup or intro bar. reset=True removes all offsets and exclusions instead (plain 1..N numbering). Voltas are not taken into account. Needs MuseScore 4.6+. Tools take and give bars as printed, so after this call they go by the new numbers.| Parameter | Type | Description |
|---|---|---|
| exclude_from_count | array | |
| reset | boolean |
ping_musescorePing the MuseScore WebSocket API to check connection.prepare_measure_repeatPrepare measure-repeat signs: selects the measures that should become repeat signs, on the given staves, and returns what to click in MuseScore. The plugin API cannot place measure-repeat signs itself.| Parameter | Type | Description |
|---|---|---|
| bars | string | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| start_measure * | any |
prev_elementMove cursor to the previous element.prev_staffMove cursor to the previous staff.processSequenceRun several score commands in order in a single call. Each item is {"action": <name>, "params": {...}}, using the same camelCase action names and parameters as the plugin (e.g. "addNote" with pitch, duration, advanceCursorAfterAction).| Parameter | Type | Description |
|---|---|---|
| sequence * | any |
remove_annotationsRemove texts and marks from a range of bars, e.g. to redo part of a chart. kinds: 'texts' (add_text: cues, '*' marks, legends), 'labels' (boxed add_label texts), 'rehearsal_marks', 'tempo' (tempo markings, which also changes playback), 'voltas', 'markers' (Segno, Coda, To Coda, Fine) and 'jumps' (D.C., D.S. ...), which belong to the bar, not a staff, 'chord_symbols' (e.g. contains='G7', exact=True removes only G7s) and 'breaks' (system, page and section breaks). `contains` limits it to texts containing that string, e.g. '**'; `beat` to one beat of each bar. Defaults to the whole score. Highlights and note colors are removed with clear_highlights / clear_color instead.| Parameter | Type | Description |
|---|---|---|
| beat | number | |
| contains | string | |
| end_measure | any | |
| exact | boolean | |
| first_staff | integer | |
| kinds | array | |
| last_staff | integer | |
| start_measure | any |
remove_articulationsRemove articulations (by default the hi-hat symbols half_open, open, closed) from the chords that contain the chosen drums in a range of bars.| Parameter | Type | Description |
|---|---|---|
| drums | array | |
| end_measure | any | |
| first_staff | integer | |
| last_staff | integer | |
| pitches | array | |
| start_measure | any | |
| symbols | array |
renderShow the score as MuseScore engraves it, as an image: what get_score's text cannot show, such as overlapping chord symbols, marker placement, system and page breaks and spacing. page=N gives a whole page (for layout); measures='X-Y' crops those bars from their page at higher detail, with everything attached to them (chord symbols, texts, lyrics, markers), as they stand on their systems: the other bars of those systems are left blank, so a blank space before the first bar means the system starts earlier. Bars are named as printed in the score, as the user sees them. Render again after a change to check it.| Parameter | Type | Description |
|---|---|---|
| measures | string | |
| page | integer |
restore_backupBring back the version of the open score saved before an apply_measure_repeats edit (the newest backup by default) and reload it in MuseScore. The current version is backed up first.| Parameter | Type | Description |
|---|---|---|
| backup | string | |
| score_path | string |
select_current_measureSelect the current measure.select_custom_rangeSelect a custom range of ticks across staves. Useful for retrieving continuous phrasing that spans measure boundaries. end_staff is exclusive, so one staff N is start_staff=N, end_staff=N+1.| Parameter | Type | Description |
|---|---|---|
| end_staff * | integer | |
| end_tick * | integer | |
| start_staff * | integer | |
| start_tick * | integer |
set_chord_symbolSet the chord symbol on a beat: adds one, or changes the one there (the reply's `replaced` gives the old name). MuseScore reads the name as when typed, e.g. 'Bb7', 'F#m7b5', 'C/E'. A chord symbol sits on a note or rest: on a beat that none starts on (e.g. inside a half note) one already there can be changed, but a new one can't be added (a plugin limit): that is refused, with the beats that have one, and the user can add it by hand. Remove with remove_annotations(kinds=['chord_symbols']).| Parameter | Type | Description |
|---|---|---|
| beat | number | |
| chord * | string | |
| measure * | any | |
| staff | integer |
set_end_notesPrint notes at the end of the score, in a text frame after the last bar: a bold heading and one line per item, e.g. a summary of how a chart differs from the original (what was collapsed, which differences were dropped, what stays written out). Replaces notes added before (the report's `previous` lists them), so it can be re-run; append=True keeps their lines and adds the new ones; no heading and no lines removes them. Edits the score file and reloads it (undo with restore_backup).| Parameter | Type | Description |
|---|---|---|
| append | boolean | |
| heading | string | |
| lines * | array | |
| score_path | string |
set_instrument_soundChange the sound of an instrument on a staff.| Parameter | Type | Description |
|---|---|---|
| instrument_id * | string | |
| staff * | integer |
set_measure_numberSet the displayed number of one bar: add_to_number is MuseScore's 'Add to measure number' (the offset carries on to all later bars), exclude_from_count is 'Exclude from measure count'.| Parameter | Type | Description |
|---|---|---|
| add_to_number | integer | |
| exclude_from_count | boolean | |
| measure * | any |
set_measure_stretchMake bars wider or narrower, as Format > Stretch does: 1 is MuseScore's own width, 1.5 half as wide again, 0.8 narrower. Wider bars can push the next bars onto the next system; render to check.| Parameter | Type | Description |
|---|---|---|
| end_measure | any | |
| start_measure * | any | |
| stretch * | number |
set_measures_per_systemPut the same number of bars on every system over a range of bars (the whole score by default). method 'locks' (default) works as Format > Measures per system: system locks, which keep each system's bars when bars before them change. method 'breaks' puts a system break after every N bars instead (shown by get_score, and fixed to their bars). Either way the range's system breaks and locks are removed first, so the result is exactly N bars a system; per_system=0 only removes them, back to MuseScore's own layout. Page and section breaks stay. The reply's `systems` gives each system's first and last bar afterwards; render a page to see it.| Parameter | Type | Description |
|---|---|---|
| end_measure | any | |
| method | string | |
| per_system * | integer | |
| start_measure | any |
set_propertiesChange how elements look on every one find_elements finds with the same selection: placement ('above'/'below' the staff), align ('left'/'center'/'right'), font_size (points), offset ([x, y] in staff spaces, replacing the current one) or move_by ([dx, dy] added to it; y grows downwards, so [0, 1] moves down one space), and reset (put those properties back to the style's value). When placement changes, MuseScore also takes the style's offset for that side; move_by is added after. Refused when nothing matches. The reply lists the elements as they are afterwards; render to check.| Parameter | Type | Description |
|---|---|---|
| align | string | |
| beat | number | |
| contains | string | |
| end_measure | any | |
| exact | boolean | |
| first_staff | integer | |
| font_size | number | |
| kinds | array | |
| last_staff | integer | |
| move_by | array | |
| offset | array | |
| placement | string | |
| reset | any | |
| start_measure | any |
set_repeat_barlinesPut start and end repeat barlines around a range of bars, or remove them. Needs MuseScore 4.6 or newer; on older versions the measures are selected and the reply says which palette items to click.| Parameter | Type | Description |
|---|---|---|
| clear | boolean | |
| end_measure * | any | |
| play_count | integer | |
| start_measure * | any |
set_score_headerTidy the title frame at the top of the score: title, subtitle, composer, lyricist and the part name shown top-left in part scores (a long part name such as 'Player | Kit | Drums' runs into the title). Leave a field out to keep it, pass an empty string to remove it. Edits the score file and reloads it (undo with restore_backup).| Parameter | Type | Description |
|---|---|---|
| composer | string | |
| lyricist | string | |
| part_name | string | |
| score_path | string | |
| subtitle | string | |
| title | string |
set_song_structurePrint the song structure as a table on a new page at the end of the score, after the end notes: the song and artist under the heading (taken from the title frame unless given), then one row per section with its bars (as played), groove and fills, and the total. Get the rows from song_structure and give grooves and fills musical names. Replaces a structure page added before; no rows removes it. Edits the score file and reloads it (undo with restore_backup).| Parameter | Type | Description |
|---|---|---|
| artist | string | |
| heading | string | |
| rows * | array | |
| score_path | string | |
| song | string |
set_staff_muteMute or unmute a staff.| Parameter | Type | Description |
|---|---|---|
| mute * | boolean | |
| staff * | integer |
set_styleChange score style settings (Format → Style), given as {key: value} with MuseScore's internal keys. An unknown key is refused, and the settings before it stay applied. Returns each value as MuseScore reads it back after the change; check it with get_style or render when unsure.| Parameter | Type | Description |
|---|---|---|
| styles * | object |
set_tempoSet the tempo with a tempo marking (in quarter-note beats per minute) at the current cursor position, or at the start of the given bar.| Parameter | Type | Description |
|---|---|---|
| bpm * | number | |
| measure | any |
set_time_signatureSet the time signature.| Parameter | Type | Description |
|---|---|---|
| denominator | integer | |
| numerator | integer |
simplify_rollRewrite a cymbal roll (a run of repeated or tied cymbal notes, e.g. a crash swell) as one long note per bar, tied across barlines, with a tremolo: the same sound with far fewer symbols. The roll starts on start_beat of start_measure (default beat 1; earlier notes in that bar stay as written) and ends at the end of end_measure, or after end_beat in it. Lengths that no single note value can hold are written as tied notes. Notes of the first chord that are not part of the roll (e.g. a kick) move to voice 2 with their own length. Refuses (changing nothing) if other notes or rests sit inside the roll or it doesn't start and end where notes do. Edits the score file and reloads it (undo with restore_backup).| Parameter | Type | Description |
|---|---|---|
| drums | array | |
| end_beat | number | |
| end_measure * | any | |
| pitches | array | |
| score_path | string | |
| slashes | integer | |
| staff * | integer | |
| start_beat | number | |
| start_measure * | any |
song_structureOutline the song for a structure page: the sections (from the rehearsal marks) with how many bars each lasts as played (repeats counted), the grooves in it (bars that recur, named Groove A, B... with the drums they use; hi-hat openings, crashes and ghost notes don't make a new groove) and the fills (bars that don't recur). Each section's `count` is its length in fours as drummers count it (6 -> '4+2', 12 -> '3x4', bars before the first groove bar counted on their own: '2+4+2'); bars excluded from the bar count (a count-in) are left out. suggested_rows can go to set_song_structure as they are, but give the grooves and fills musical names first (e.g. 'Verse shuffle', 'Tom fill into chorus').| Parameter | Type | Description |
|---|---|---|
| staff | integer | |
| tolerance | number |
undoUndo the last action.Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.6K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- !No dynamic code executionScanned 33 source files and found 1 call to eval or shell execution, in dev/check_plugin_js_syntax.js:9. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdioserver.py:51
- Starts other programs
- 1 calldev/plugin_harness.py:195
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 13 callsdev/plugin_harness.py:259, dev/plugin_harness.py:262, dev/plugin_harness.py:278
- Lockfile
- uv.lock
Pattern matches on the source text of 33 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.6K words, fetched a month ago. The original in the repository is authoritative.
Read full README