McKeesport is a city in Allegheny County, Pennsylvania, United States. The population was 17,727 at the 2020 census, and it is Allegheny County's second-largest city, after Pittsburgh. It is at the confluence of the Monongahela and Youghiogheny rivers and within the Pittsburgh metropolitan area. It was founded in 1795.