Hi and welcome,
Studio > More > MIDI Device Manager > Install Device, select YAMAHA MX from the list. Select the Input.