July and August are typically the warmest months in Mechanicsburg when the average temp is 71°F. January and February are the coldest months when the average temperature is 35°F. May and August are the months with the most rain.