There should be a minimum insertion line on the seatpost, but maybe they don't all have that.
You definitely need a larger frame. The only way I can see to make that one work is with a longer seatpost (if that is possible) and a really long riser stem. Don't fret though, used mountain bikes are usually pretty cheap (if you want another mountain bike), and you can transfer your tires and seat to the new one.