Prediction of ferromagnetic Weyl semimetal and antiferromagnetic topological insulator phases in MnHg2Te3