Originally assigned to the Cavalry Branch, MacKelvie later transferred to the Field Artillery Branch. He joined the 78th Field Artillery Regiment for World War I, and took part in the St. Mihiel Offensive in 1918.