Unless something has changed in the last year, in MEX you must clear customs/immigration even for int'l - int'l connections, which can take some time at that time of night.
I hate to be stuck in MEX (poor lounges), but if you need to make that flight to FRA, note that you are cutting it very close.