The study of boundary layer flows over an irregularly shaped needle with small horizontal and vertical dimensions is popular among academics because it seems to have a lot of uses in fields as different as bioinformatics, medicine, engineering, and aerodynamics. With nanoparticle aggregation, magnetohydrodynamics, and viscous dissipation all playing a role in the flow and heat transmission of an axisymmetric [Formula: see text] nanofluid via a moving thin needle, this article provides guidance on how to employ a boundary layer for this purpose. In this case, we utilized the similarity transformation to change the dimensional partial differential equation into the dimensionless ordinary differential equation. We utilize MATHEMATICA to include shooting using RK-IV methods after identifying the numerical issue. Several characteristics were measured, leading to the discovery of a broad variety of values for things like skin friction coefficients, Nusselt numbers, velocity profiles, and temperature distributions. Velocity profile decreases with increasing values of [Formula: see text] and increases against [Formula: see text] Temperature profiles enhances with increasing values of [Formula: see text], and [Formula: see text] The reduction in skin friction between a needle and a fluid can be observed when the values of M and [Formula: see text] are boosted. Furthermore, it was also noticed an increase in heat transfer on needle surface dramatically when [Formula: see text], and M were raised, whereas [Formula: see text] displayed the opposite effect. The findings of the current study are compared with prior findings for a particular instance in order to confirm the findings. Excellent agreement between the two sets of results is found.