The Mariazellerbahn ordered the Mh in 1906 to get more powerful locomotives with larger supplies for their new mountain section. The design was influenced by the Bosnian IVa5, but got a superheater and cylinders with simple expansion. Four driving axles ensured enough adhesion. To create enough flexibility for curves with a radius of 80 meters, it got a Krauss supporting tender. This steered the last driving axle in curves, leading to a rigid wheelbase of only two meters.
The first four Mh were built by Krauss at Linz in 1906. In the following year, two Mv were built to compare the superheated simples with saturated compounds. These had the same firebox, but a larger tube heating surface instead of the superheater. The piston valves of the Mh had been replaced by slide valves in the Mv. As the Mh was more successful, two more were built in 1908. This was able to haul 120 tonnes on the long 2.3 percent incline of the Mariazellerbahn with 30 km/h.
Their service on the Mariazellerbahn was very short due to the electrification that was completed in 1911. Five Mh were used in Bosnia during World War I. After the war, the Mh and Mv found work on other narrow gauge lines in Austria. While they had been assigned Reichsbahn class 99 during World War II, the Mh became ÖBB class 399 in 1953 and the Mv became class 299. The two Mv were already withdrawn in 1973 and rebuilt into snow plows. The Mh was used regularly by the Waldviertler Schmalspurbahnen until the eighties and hauled some trains until 2001. All six Mh are sill existing, of which three are currently in working condition.