In situ-forming biocompatible hydrogels have great potential in various medical applications. Here, we introduce a pHresponsive, self-healable, and biocompatible hydrogel for cell scaffolds and the development of a tumor spheroid phantom for magnetic resonance imaging. The hydrogel (pMAD) was synthesized via amino-yne click chemistry between poly(2-methacryloyloxyethyl phosphorylcholine-co-2-aminoethylmethacrylamide) and dialkyne polyethylene glycol. Rheology analysis, compressive mechanical testing, and gravimetric analysis were employed to investigate the gelation time, mechanical properties, equilibrium swelling, and degradability of pMAD hydrogels. The reversible enamine and imine bond mechanisms leading to the sol-to-gel transition in acidic conditions (pH ≤ 5) were observed. The pMAD hydrogel demonstrated potential as a cellular scaffold, exhibiting high viability and NIH-3T3 fibroblast cell encapsulation under mild conditions (37 °C, pH 7.4). Additionally, the pMAD hydrogel also demonstrated the capability for in vitro magnetic resonance imaging of glioblastoma tumor spheroids based on the chemical exchange saturation transfer effect. Given its advantages, the pMAD hydrogel emerges as a promising material for diverse biomedical applications, including cell carriers, bioimaging, and therapeutic agent delivery.