Sheet Music OMR

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

Converts photos or scans of printed sheet music to MusicXML with optical music recognition

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

recognize_sheet Recognize sheet music

Recognize music notation from an image and return MusicXML. Small scores come back inline as 'musicxml'; large ones (return='auto', the default) are written to a file and come back as 'musicxml_path' plus a short 'score_summary' (title, parts with IDs and ranges, measures, key, time, tempo). Pass that path to other tools as musicxml_path. Use return='inline' to always get the text, return='path' to always get a file.

ParameterTypeDescription
image *stringFile path or base64-encoded image data
enginestringOMR backend to use. 'oemer' (default) is fast and works well for single/two-staff scores. 'audiveris' correctly separates multi-staff choir scores (SATB) into simultaneous parts, where oemer either fl…
formatstringInput format hint: 'path' or 'base64' (auto-detected if omitted)
returnstringHow 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…

recognize_sheet_to_file Recognize sheet music to file

Process sheet music image and save MusicXML result to filesystem. Returns the output_path (pass it to other tools as musicxml_path) and a short score_summary of the written score.

ParameterTypeDescription
input_path *stringPath to input image
enginestringOMR backend to use — see recognize_sheet's 'engine' parameter.
output_pathstringPath for output MusicXML file (auto-generated if omitted)

recognize_sheets Recognize multi-page sheet music

Process multiple pages of sheet music in order and return a single merged MusicXML. Like recognize_sheet, a large merged score (return='auto', the default) comes back as 'musicxml_path' plus a 'score_summary' instead of inline 'musicxml'; pass that path to other tools as musicxml_path. return='inline' or 'path' forces either form.

ParameterTypeDescription
images *arrayOrdered list of image file paths or base64-encoded images (one per page)
enginestringOMR backend to use — see recognize_sheet's 'engine' parameter.
returnstringHow 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…

list_capabilities OMR capabilities

List supported formats and available tools for this OMR server

list_supported_formats OMR formats (deprecated)

(Deprecated — use list_capabilities) List supported input and output formats

health_check OMR health check

Check that all runtime dependencies are available and return a human-readable status summary. Use this to verify the server is set up correctly, especially on first run.