 McCook was elected to the United States House of Representatives in the Forty-fifth Congress as a delegate from Lower Manhattan, and served from 1877 until 1883.He was defeated for a fourth term in the elections of 1882.Among his duties was serving on the House committee that oversaw military affairs.