Freeman McGilvery (October 17, 1823 – September 3, 1864) was a United States Army artillery officer during the American Civil War. He gained fame at the Battle of Gettysburg for taking the initiative to piece together a line of guns that greatly contributed to the Union victory.