McAfee is an unincorporated community located within Vernon Township in Sussex County, in the U.S. state of New Jersey.
Located at the intersection of Route 94 and the McAfee-Greens Corner Road (CR 517), the area was first settled in the mid-18th century.
The Sussex Railroad extended its line to McAfee in 1871, primarily to transport the iron and limestone being mined there.
At that time, McAfee Valley had one hotel, a small store, the post office, and a few dwellings.
On November 17, 1924, the word Valley was dropped from the name of the village, leaving the community known simply as McAfee.