Shafter is an unincorporated community in northwest Linn County, in the central region of the U.S. state of Missouri. It was named after General William Rufus Shafter, a Union Army general during the American Civil War. The town has a population of approximately 500 residents. The community is on Missouri Route DD one mile east of Missouri Route 139. Parson Creek flows past the west side of the community.