In this work, the Ti3C2 MXene was modified with Fe3O4 nanoparticles to obtain a composite with in-plane optical anisotropy and surface plasmon properties. Based on a side-polished D-shaped fiber (DSF), this Fe3O4/Ti3C2 MXene (F/M) composite exhibits a tunable nonlinear optical (NLO) absorption response under 1.5 μm laser excitation with different polarization states. The modulation depths can be obtained from 0.9% to 12.1%. As an application, the ultrafast erbium-doped fiber laser (EDFL) with multiple pulsed laser operations was demonstrated using the F/M-DSF device as a saturable absorber (SA). Both stable Q-switching and mode-locking operations were demonstrated in the same all-fiber laser cavity, which generated pulsed laser with microsecond and sub-picosecond durations respectively. In addition, the bound state (BS) of solitons in harmonic mode-locked lasers with the pulse time interval of 3 ps and the highest order of 30th was also realized. This versatile and simple-structured all-fiber laser has great potential in various applications, such as optical communication. With the numerical simulations, the dynamic of F/M composite-based soliton mode-locking was also explored, illustrating the mechanism of soliton formation and propagation. This work not only expands the advanced applications of F/M composite in ultrafast photonics but also provides a new perspective for designing and optimizing its ultrafast modulating performance.