As a US citizen presenting a us passport you do not need a visa to transit mexico. According to the mexican government website link below you will need to complete the very simple FMM form provided to you on the plane.
https://consulmex.sre.gob.mx/toronto...up-to-180-days