In this study, free convection in a cavity with differentially heated wavy walls is numerically investigated in the presence of a magnetic source. Polyharmonic spline radial basis function (RBF) is utilized to discretize the governing dimensionless equations formulated by stream function-vorticity. The effects of dimensionless Hartmann number, Rayleigh number, the number of undulations, amplitude of wave, and the location of magnetic source are visualized in streamlines and isotherms as well as calculating average Nusselt number through the heated wall. Results show that primary vortex in streamlines is altered with the impact of magnetic source. The augmentation of undulations and amplitude causes convective heat transfer to decrease if Ra = 10(5). The impact of location of magnetic source is noted close to the top wall.