Im not suggesting you should do the following...
And this is probably more complex than what you need, but, you can decouple the AC with a capacitor and read the entire positive/negative AC waveform directly with the ADC input and a few resistors.
ie,
ADC input with 5K resistor to VCC and another 5k resistor to GND (so that the ADC sits at 2.5V assuming 5V VCC)
Then you could connect mains through a large resistor, say 330K, and then a 100nF capacitor connected onto the ADC input.
(Mains earth will of course need to connect to your GND to complete the circuit)
This will generate the AC waveform centered at 2.5V on the ADC input. The amplitude of the AC signal will depend on the resistors/cap used.
Then you can measure the waveform in software using the MCU and do stuff like calculate the peak volts as well as RMS. You can also sample/store the actual AC waveform.
A quick simulation seems to indicate 330K, 100nf and 2x 5K is about right for 220V AC to +/- 2.4V on ADC input. However you should understand what you're doing and why it works before trying it.
And just let me say again, this isn't a good idea from a safety standpoint.