This paper presents a numerical study of the problem of unsteady thermo bioconvection boundary layer flow of a nanofluid containing gyrotactic microorganisms along a stretching sheet under the influence of magnetic field and viscous dissipation. With the help of usual transformation, the governing equations are transformed into unsteady nonlinear coupled partial differential equations. The numerical solution is obtained by using an explicit finite difference scheme. The model used for the nanofluid incorporates the effects of Brownian motion and thermophoresis. From the results it is found that both magnetic parameter and bioconvection Rayleigh number have positive effect on the dimensionless Nusselt number and density number of the motile microorganisms while the opposite behavior became clear in the case of Grashof number and Eckert number. The rescaled velocity, temperature, concentration and the density of motile microorganisms depend strongly on the governing parameters.