Sheet Music to MIDI — MCP Tool

Convert sheet music PDFs and images to MIDI directly from Claude Desktop, Cursor, or any MCP-compatible AI agent.

20 credits per conversion

MCP Tool: convert_sheet_to_midi

AI-powered optical music recognition that converts printed sheet music into editable MIDI and MusicXML files.

Input: PDF, PNG, JPG
PDFPNGJPG
Output: MIDI, MusicXML
MIDIMusicXML

Parameters

file_url (required) — URL of the sheet music file
output_formats — List of output formats (default: ["midi", "musicxml"])
convert_midi — Whether to generate MIDI (default: true)

How It Works

From sheet music to MIDI in your AI chat.

1

Configure MCP

Add the Melogen MCP server URL and your API key to your AI agent's settings.

2

Ask Your AI

Say something like: "Convert this sheet music to MIDI" and provide the file URL.

3

Get Results

Your AI receives download URLs for the MIDI and MusicXML files.

Usage Example

Here's how the tool call looks behind the scenes.

Example prompt to your AI agent:

Please convert this sheet music to MIDI: https://example.com/score.pdf

// MCP Tool Call (handled automatically by your AI agent)
{
  "tool": "convert_sheet_to_midi",
  "arguments": {
    "file_url": "https://example.com/score.pdf",
    "output_formats": ["midi", "musicxml"],
    "convert_midi": true
  }
}

// Response
{
  "task_id": "abc123",
  "status": "completed",
  "download_urls": {
    "midi": "https://api.melogenai.com/files/abc123.mid",
    "musicxml": "https://api.melogenai.com/files/abc123.musicxml"
  },
  "message": "Sheet music converted successfully."
}

Why Use This MCP Tool?

Convert sheet music to MIDI without leaving your AI chat. Professional-grade OMR powered by the same engine trusted by 50,000+ musicians.

50K+
Active Users
1M+
Sheets Converted
120+
Countries

No Manual Upload

Just paste a URL in your AI chat. No browser, no drag-and-drop.

Multiple Output Formats

Get both MIDI and MusicXML in a single call.

AI-Integrated Workflow

Your AI can process the MIDI data further — transpose, analyze, or edit.

Production-Grade Engine

Same OMR engine used by 50,000+ musicians on the web platform.

Frequently Asked Questions

Common questions about the Sheet Music to MIDI MCP tool.

Our AI achieves high accuracy on clearly printed sheet music. Handwritten or low-quality scans may have lower accuracy. Multi-page scores are supported.

Yes, multi-page PDF scores are fully supported. Each page is processed and combined into a single MIDI/MusicXML output.

The file_url must be a publicly accessible URL. You can use any file hosting service, cloud storage, or direct link.

Output is standard MIDI and MusicXML compatible with any DAW, notation software (MuseScore, Finale, Sibelius), or music application.

Sheet Music to MIDI — MCP Tool

Convert sheet music PDFs and images to MIDI directly from Claude Desktop, Cursor, or any MCP-compatible AI agent.

Get API Key