Fluorescent and plasmonic labels and sensors have revolutionized molecular biology, helping visualize cellular and biomolecular processes1,2,3. Increasingly, such probes are now being designed to respond to wavelengths in the near-infrared region, where reduced tissue autofluorescence and photon attenuation enable subsurfacein vivosensing4. But even in the near-infrared region, optical resolution and sensitivity decrease rapidly with increasing depth. Here we present a sensor design that obviates the need for optical addressability by operating in the nuclear magnetic resonance (NMR) radio-frequency spectrum, where signal attenuation and distortion by tissue and biological media are negligible, where background interferences vanish, and where sensors can be spatially located using standard magnetic resonance imaging (MRI) equipment. The radio-frequency-addressable sensor assemblies presented here comprise pairs of magnetic disks spaced by swellable hydrogel material; they reversibly reconfigure in rapid response to chosen stimuli, to give geometry-dependent, dynamic NMR spectral signatures. The sensors can be made from biocompatible materials, are themselves detectable down to low concentrations, and offer potential responsive NMR spectral shifts that are close to a million times greater than those of traditional magnetic resonance spectroscopies. Inherent adaptability should allow such shape-changing systems to measure numerous different environmental and physiological indicators, thus providing broadly generalizable, MRI-compatible, radio-frequency analogues to optically based probes for use in basic chemical, biological, medical and engineering research.