 Hunt was elected as a Federalist to the Seventh Congress to fill the vacancy caused by the resignation of Joseph Peirce.He was reelected to the Eighth Congress and served from December 6, 1802, to March 3, 1805.He was an unsuccessful candidate for renomination in 1804.