You can get a 5-pack for $11.99 via Amazon Prime: https://www.amazon.com/HICTOP-Pieces-Printer-Endstops-Mechanical/dp/B014Y0VGOU
These have the JST-XH connectors. Cheaper sets have the black connectors for 0.1" spaced bare pins, like on a RAMPS board.