The 6N137's output side uses a 5 V supply, but its input works with any 5 mA current at a forward voltage of about 1.5 V. Any standard-compliant MIDI output is able to drive that, even when using 3.3 V.