Same as MIDI export, just choose "MusicXML" instead.
Before exporting from MuseScore:
You can export your score by following these steps in the desktop application: convert mscz to midi
to "guess" where notes should fall on a rhythmic grid, often leading to messy notation if the original MIDI was a "human" performance. MuseScore Studio 3. Modern AI & Advanced Workflows Same as MIDI export, just choose "MusicXML" instead
Implementation notes