Trying to use my phone for MIDI... anyone know how to do this?

I have a Samsung Tab A and a Galaxy S7. Was trying to find a way to send midi commands to MainStage. I guess you can’t just plug your Android phone into a Mac and expect it to work. Of course it has to be more complicated than that. Anyone have any idea how to do this?

I want to be able to customize touch-key buttons then have them trigger shortcut commands or parameter changes in MainStage. I need this for when I’m playing live.