The current study treats the magnetic field impacts on the mixed convection flow within an undulating cavity filled by hybrid nanofluids and porous media. The local thermal non-equilibrium condition below the implications of heat generation and thermal radiation is conducted. The corrugated vertical walls of an involved cavity have $${T}_{c}$$
T
c
and the plane walls are adiabatic. The heated part is put in the bottom wall and the left-top walls have lid velocities. The controlling dimensionless equations are numerically solved by the finite volume method through the SIMPLE technique. The varied parameters are scaled as a partial heat length (B: 0.2 to 0.8), heat generation/absorption coefficient (Q: − 2 to 2), thermal radiation parameter (Rd: 0–5), Hartmann number (Ha: 0–50), the porosity parameter (ε: 0.4–0.9), inter-phase heat transfer coefficient (H*: 0–5000), the volume fraction of a hybrid nanofluid (ϕ: 0–0.1), modified conductivity ratio (kr: 0.01–100), Darcy parameter $$\left(Da: 1{0}^{-1}\,\mathrm{ to }\,1{0}^{-5}\right)$$
D
a
:
1
0
-
1
to
1
0
-
5
, and the position of a heat source (D: 0.3–0.7). The major findings reveal that the length and position of the heater are effective in improving the nanofluid movements and heat transfer within a wavy cavity. The isotherms of a solid part are significantly altered by the variations on $$Q$$
Q
, $${R}_{d}$$
R
d
, $${H}^{*}$$
H
∗
and $${k}_{r}$$
k
r
. Increasing the heat generation/absorption coefficient and thermal radiation parameter is improving the isotherms of a solid phase. Expanding in the porous parameter $$\varepsilon$$
ε
enhances the heat transfer of the fluid/solid phases.