In this paper, an inserted U-tapered fiber optic probe is proposed, which has the characteristics of simple structure, small size, easy to manufacture, easy to store, and can realize the detection of parameters in small space. In this work, firstly, we optimize the parameters of the linear taper sensor from the theoretical simulation and experiment, and then prepare the linear taper sensor structure into a U-tapered fiber optic probe according to the optimized parameters, and explore the influence of different U-tapered curvature radius on the interference spectrum. According to the research results, when the curvature radius of the U-tapered fiber optic probe is 1. 75 mm, the sensor has a good response to refractive index (RI), and the RI sensitivity is 386. 23 nm/RIU, the linear responsivity is 0. 998, and the measured temperature sensitivity is -0. 04 nm/℃, and the response to temperature is not significant. This work provides a feasible method for the future development of RI detection in narrow space.