Multispectral magnetic resonance imaging (MRI) contrast agents are microfabricated three-dimensional magnetic structures that encode nearby water protons with discrete frequencies. The agents have a unique radiofrequency (RF) resonance that can be tuned by engineering the geometric parameters of these microstructures. Multispectral contrast agents can be used as sensors by incorporating a stimulus-driven shape-changing response into their structure. These geometrically encoded magnetic sensors (GEMS) enable MRI-based sensing via environmentally induced changes to their geometry and their corresponding RF resonance. Previously, GEMS have been made using thin-film lithography techniques in a cleanroom environment. While these approaches offer precise control of the microstructure, they can be a limitation for researchers who do not have cleanroom access or microfabrication expertise. Here, an alternative approach for GEMS fabrication based on soft lithography is introduced. The fabrication scheme uses cheap, accessible materials and simple chemistry to produce shaped magnetic hydrogel microparticles with multispectral MRI contrast properties. The microparticles can be used as sensors by fabricating them out of shape-reconfigurable, "smart" hydrogels. The change in shape causes a corresponding shift in the resonance of the GEMS, producing an MRI-addressable readout of the microenvironment. Proof-of-principle experiments showing a multispectral response to pH change with cylindrical shell-shaped magnetogel GEMS are presented.