James Foster spent all his life in Dorchester, Massachusetts, as a yeoman, a farmer who owned the land he worked.
He was born in Dorchester on 13 April 1651, a son of Capt. Hopestill Foster and Mary Bate. He married a woman named Anna, and their daughter Silence was born in 1677.
In 1694 James bought twelve acres of upland, the dry ground above the marshes, near the road to Castle Island, the fort in Boston Harbor. He bought it from the heirs of his late brother Hopestill. Two years later he joined Anna and his brothers and sisters in selling other family land to Matthias Puffer.