 McClure was elected as a Democrat to the Twenty-fifth Congress.He was elected to the Twenty-sixth Congress to fill the vacancy caused by the death of William S. Ramsey.He served as secretary of state of Pennsylvania from 1843 to 1845, and was active in promoting the public-school system of Pennsylvania.