Passive harmonic mode locking of an erbium-doped fiber laser based on few-layer molybdenum disulfide(MoS2)saturable absorber(SA) is demonstrated. The few-layer MoS2 is prepared by the chemical vapor deposition(CVD) method and then transferred onto the end face of a fiber connector to form a fiber-compatible Mo S2SA. The 20 th harmonic modelocked pulses at 216-MHz repetition rate are stably generated with a pulse duration of 1.42 ps and side-mode suppression ratio(SMSR) of 36.1dB. The results confirm that few-layer MoS2 can serve as an effective SA for mode-locked fiber lasers.