Surface-enhanced Raman spectroscopy (SERS) can boost the pristine Raman signal by ~ 108 times that could be exploited for producing innovative sensing devices with advanced properties. However, the inherent complexity of SERS systems restricts their further applications in rapid detection, especially in situ detection in narrow aera. Here, we construct an efficient and flexible SERS-based LOP sensor by integrating Ag/Au nanocap arrays obtained by Ag/Au coating polystyrene nanospheres on the optical fiber face. We obtain rich “hotspots” at the nanogaps between neighboring nanocaps and further achieve the excellent SERS performance with the assistance of laser induced thermophoresis on the metal film that can achieve high efficiency aggregation of detected molecules. We achieve a high Raman enhancement with a low detection limitation of 10-7 mol/L for the most efficient samples based on the above sensor. This sensor also exhibits good repeatability and stability under multiple detections, revealing the potential application in situ detection based on the reflexivity of optical fiber.