 McCarthy was deployed along with his regiment to Puerto Rico where they disembarked on July 25, 1898.McCarthy was mustered out of service on January 21, 1899.McCarthy served as a Democrat to represent Marlborough in the Ninth Middlesex District of the Massachusetts House of Representatives.