This paper presents a numerical investigation of the flow of a non-Newtonian tangent hyperbolic nanofluid over a nonlinearly stretched surface, taking into account factors such as thermal radiation, prescribed surface temperature, and a chemical reaction mechanism. Furthermore, the analysis includes the consideration of both viscous dissipation and the influence of a magnetic field within a Darcy porous medium. A mathematical framework for addressing the issue, rooted in the principles of conserving momentum, energy, and mass. The MATHEMATICA tools were employed to apply the shooting technique in order to solve the modeled equations describing the temperature, velocity, and concentration fields of the proposed physical system. Graphs are used to illustrate how certain key parameters affect the profiles of concentration, velocity, and temperature. Data tables are utilized to display information pertaining to the local Nusselt number, local Sherwood number, and local skin friction coefficient. The present results have been confirmed through a comparison with previously published findings. This research holds significant importance as it focuses on the extensive utilization of tangent hyperbolic nanofluids in cooling electronic components that produce substantial heat during their operation. The observed pattern indicates that as the local Weisbsenberg number, magnetic number, local porous parameter, and power law index increase, there is a reduction in the boundary layer thickness. Conversely, in the instances of concentration and temperature distributions, an escalation in these parameters leads to an expansion of the boundary layer thickness.