 He was elected treasurer of the city and county of Philadelphia in November 1891, and served until 1895.McCreary was elected as a Republican to the Fifty-eighth and to the four succeeding Congresses.He served as chairman of the United States House Committee on Ventilation and Acoustics during the Sixty-first Congress.