Carbon nanotubes have gained significant attention due to their unique properties like small dimensions, high thermal conductivity, and unique architecture. These nanotubes have enormous potential in various fields such as nanomedicine, mechanical compound materials, sensor devices, bio-sensors, and many other applications. The present study investigates the impact of adding nanoparticles such as iron oxide (Fe3O4), single-walled carbon nanotubes (SWCNT), and multi-walled carbon nanotubes (MWCNT) on magnetohydrodynamics (MHD) oscillatory water-based flow over a porous medium. The aim is to examine the effect of heat and mass transfer rate and radiative viscous dissipation that interacts with Fe3O4 nanoparticles and carbon nanotubes. The governing equations of the dynamic nanofluid systems are transformed into a set of coupled nonlinear partial differential equations through suitable dimensionless transformations and further converted into ordinary differential equations by taking appropriate solutions for oscillatory-type nanofluid flow. The homotopy perturbation method is applied to solve the governing equations with oscillatory boundary conditions and the solution is also compared with the numerical solver bvp4c. The rate of increase in the temperature and Heat Transfer are computed by the linear slope regression method and results are computed for nanoparticles SWCNT, MWCNT, and Ferro. Also, Skin friction and rate of heat transfer are computed and compared for the nanoparticles with varying Peclet and Eckert numbers. The velocity profile and temperature profile of SWCNT/MWCNT/Ferro nanofluids are being compared. The heat transfer rate is observed to be high for Ferro nanoparticles compared to SWCNT and MWCNT.