Audio to MIDI — MCP Tool
Convert MP3, WAV, FLAC, and other audio files to MIDI directly from Claude Desktop, Cursor, or any MCP-compatible AI agent.
MCP Tool: convert_audio_to_midi
AI-powered polyphonic audio transcription that detects notes, rhythms, and timing from any audio recording.
Parameters
file_url (required) — URL of the audio filesave_stems — Save separated instrument stems (default: false)quantize — Quantize MIDI to nearest beat (default: false)How It Works
From audio to MIDI in your AI chat.
Configure MCP
Add the Melogen MCP server URL and your API key to your AI agent's settings.
Ask Your AI
Say: "Convert this audio to MIDI" and provide the file URL.
Get Results
Your AI receives the download URL for the transcribed MIDI file.
Usage Example
Here's how the tool call works.
Example prompt to your AI agent:
“Please convert this song to MIDI: https://example.com/song.mp3”
// MCP Tool Call (handled automatically by your AI agent)
{
"tool": "convert_audio_to_midi",
"arguments": {
"file_url": "https://example.com/song.mp3",
"save_stems": false,
"quantize": false
}
}
// Response
{
"task_id": "xyz789",
"status": "completed",
"download_urls": {
"midi": "https://api.melogenai.com/files/xyz789.mid"
},
"message": "Audio converted to MIDI successfully."
}Why Use This MCP Tool?
Transcribe audio to MIDI directly in your AI workflow. AI-powered polyphonic detection for any audio format.
All Audio Formats
MP3, WAV, FLAC, OGG, M4A — any audio format works.
Polyphonic Detection
Detects multiple simultaneous notes and instruments.
Chain with AI
Your AI can analyze the MIDI output, suggest edits, or convert further.
Fast Processing
GPU-accelerated inference delivers results in seconds.
Frequently Asked Questions
Common questions about the Audio to MIDI MCP tool.
Yes, our AI can detect multiple simultaneous notes. Solo instruments give the best results, but complex arrangements are also supported.
Audio files up to 30 minutes are supported for premium users. The conversion cost is 20 credits regardless of length.
Yes, vocal melodies can be transcribed to MIDI. For best results, use isolated vocal tracks.
When enabled, the AI separates the audio into individual instrument tracks before transcription, which can improve accuracy for complex mixes.
Audio to MIDI — MCP Tool
Convert MP3, WAV, FLAC, and other audio files to MIDI directly from Claude Desktop, Cursor, or any MCP-compatible AI agent.
Get API Key