In this study, a semi analytical method for transverse and axial vibration of single-walled boron nitride nanotube (SWBNNT) under moving a nanoparticle is presented. The surrounding elastic medium as Pasternak foundation and surface stress effect are included in the formulations of the proposed model. Using Timoshenko beam theory (TBT), Hamilton’s principle and nonlocal piezoelasticity theory, the higher order governing equation is derived. The influences of surface stress effects, spring and shear parameters of Pasternak foundation and aspect ratio are also investigated on the free and forced vibration behavior of SWBNNT under moving a nanoparticle. Through an inclusive parametric study, the importance of using surrounding elastic medium in decrease of normalized dynamic deflection is proposed. It is demonstrated that the values of shear modulus have significant role on the vibration behavior of SWBNNT. The influences of surface stresses on the amplitude of normalized dynamic deflection are also discussed. The output result's of this study has significant influences in design and production of micro electro mechanical system (MEMS) and nano electro mechanical system (NEMS) for advanced applications.