The warmest months in Mechanicsburg are usually July and June, with an average temperature of 21°C. January and February are the chilliest months, when the average temperature is 0°C. The rainiest months are May and June.