Mechanical forces induced by high-speed oscillations provide an elegant way to dynamically alter the fundamental properties of materials such as refractive index, absorption coefficient and gain dynamics. Although the precise control of mechanical oscillation has been well developed in the past decades, the notion of dynamic mechanical forces has not been harnessed for developing tunable lasers. Here we demonstrate actively tunable mid-infrared laser action in group-IV nanomechanical oscillators with a compact form factor. A suspended GeSn cantilever nanobeam on a Si substrate is resonantly driven by radio-frequency waves. Electrically controlled mechanical oscillation induces elastic strain that periodically varies with time in the GeSn nanobeam, enabling actively tunable lasing emission at >2 mu m wavelengths. By utilizing mechanical resonances in the radio frequency as a driving mechanism, this work presents wide-range mid-infrared tunable lasers with ultralow tuning power consumption.