In the quest for advanced drug delivery systems, magnetically responsive porous biomaterials have emerged as promising candidates due to their stimulus-driven drug release capabilities. However, conventional fabrication methods have been unable to achieve predictable drug release profiles with precise doses due to their complex and non-reproducible preparation methods. This study introduces a cost-effective 3D printing-based method for creating flexible porous elastomers embedded with NdFeB powders to render them magnetically sensitive. These versatile materials have controllable porosity, allowing for the fabrication of bulk and personalized drug delivery systems. These magnetically flexible porous elastomers exhibit extraordinary flexibility and can recover their original shape even after deformation. Comprehensive analyses including morphology, porosity, elastic modulus, and magnetic responsiveness validate the potential of the optimized material. It has been shown to be able to precisely deliver drug doses on demand via controlled magnetic fields. Furthermore, this study explores the integration of sensor data with robotic control to refine dose control and enable non-invasive drug release. By incorporating real-time data from sensors, the system can dynamically adjust the drug release parameters, ensuring optimal delivery at the target site. This approach enhances the precision and efficiency of drug delivery and improves safety by minimizing invasive procedures. This research advances the development of precise, efficient, and safer microrobotic drug delivery technologies, paving the way for innovative treatments and improved patient outcomes.