MuseScore -- Index -- Tuplets

To create a triplet first create a note with a duration of the whole triplet. Then select the note and press Ctrl + 3 to change it to a triplet. Similarly Ctrl + 5 changes the note to a quintuplet.
First select a note:
Ctrl + 3 creates a triplet:
which can be further edited