Single frequency fiber lasers have attracted intense attention in the high precision measure, optical communication and Raman spectroscopy due to their special features including narrow spectral linewidth, low-intensity noise and fiber compatibility [1][2][3][4][5]. Tunable fiber lasers with broad wavelength-sweeping range or fast wavelength-sweeping speed have become key components in dense wavelength division multiplexing (DWDM) transmission systems or high-resolution spectroscopy. Various optical components can achieve wavelength tuning in the field of fiber laser including an acoustic-optic filter [6,7], an electro-optic filter [8], or a fiber Bragg grating filter [9]. However, these devices are usually high-cost and complicated, and needs expensive electronic drivers. Especially, these components cannot be compatible with an all-optical communication system to achieve all-optical wavelength conversion and optical cross-connect. Recently, two-dimensional (2D) material-based all-optical devices have been reported and achieved all-optical modulation and switcher, all-optical actively Q-switching, all-optical thresholding, all-optical wavelength conversion and all-optical information loading [10][11][12][13][14][15][16]. Zhang et al. [17] reported that an all-optical wavelength tuner with a wavelength tuning range of 1.6 nm and a 3-dB spectral width of 0.05 nm was realized when the all-optical modulator (AOM) was inserted into a fiber laser. However, the wavelength tuning range is still very narrow, limiting its practical application in many fields, such as optical communication and spectroscopy. Exploring novel optical structure and optical materials are effective ways to achieve high-performance all-optical wavelength tuning.MXenes, graphene-like 2D materials, have attracted increasing attention as an emerging class of 2D materials due to their outstanding merits including ultrafast optical response, broadband optical absorption and tunable optoelectrical properties, which have exhibited development potential in the fields of the energy storage system, water purification, sensors and electronic devices [18][19][20][21][22][23]. The general formula is M n+1 X n T x (n=1, 2 or 3), where M and T are transition metal and surface terminations, and X is carbon and/or nitrogen [24]. So far, more than 30 types of MXenes have been produced experimentally such as Ti 3 C 2 , Ti 2 C, Nb 2 C and V 2 C [25,26]. In contrast to carbide-based MXenes, nitride-based MXenes exhibit higher electronic conductivity and stability under ambient conditions [27,28]. However, the fabrication of nitride-based MXenes remains challenging due to the intricacy in synthesis and low stability in etchants [29]. In 2016, Urbankowski et al. [29], for the first time, synthesized nitride-based MXenes (Ti 4 N 3 T x ) by heating Ti 4 AlN 3 in a molten fluoride salt. Ti 4 N 3 has a higher density of states than Ti 3 C 2 according to the computation. Surface-enhanced Raman scattering activity of the synthesized Ti 2 NT x achieved a Raman enhancement fac...