You can get an MRI with an x-series chip implanted, it’s MRI compatible. Check out our FAQ’s MRI section; https://forum.dangerousthings.com/t/x-series-implantable-transponder-faq/#faq-mri
That said, if you would like to remove the chip before getting the MRI, you can remove it easily; https://www.youtube.com/watch?v=BNHazc43q_Q
Magnets I would remove completely before getting the MRI. Removal is also simple, but not as easy as removing an x-series transponder. Partly because of their shape, and partly because of where magnets are typically installed (fingertip).