Ramsey interferometry as one of the most important high-precision measurement methods has prospects for inferring various properties of ultracold atoms and molecules. We investigate the multi-pulse Ramsey interferometry of a double-well Bose–Einstein condensate (BEC) in an optical cavity. Compared with the standard two-pulse Ramsey scheme, our multi-pulse Ramsey proposal greatly relaxes the requirements for both intensity and width of the pulses, allowing the interferometry to be achieved using weak and narrow pulses. When the pumping pulses characterizing the coupling between the cavity field and the atomic BEC are applied to the zero background field, we demonstrate the atomic Ramsey fringes in the time domain for different pulse numbers and different pulse widths. We find that although the multi-pulse Ramsey fringes are no longer sensitive to cavity-pump detuning, they can still record the information of the interaction between coherent atoms. We obtain the fundamental frequency of the multi-pulse Ramsey fringes analytically and find that it is proportional to the number of pulses. Particularly, it is shown that the minimum of the fundamental frequency is exactly the critical point of the phase transition of the system. For a nonzero background field, the results indicate that a nondestructive observation of atomic Ramsey fringes by cavity transmission spectroscopy is feasible. Our findings provide insights for improving the accuracy of Ramsey interferometry and for using interferometry to observe phase transitions.