Chicago Cubs sign right-handed pitcher Marcus Stroman

New York Mets starting pitcher Marcus Stroman delivers during the first inning of a baseball game against the Boston Red Sox at Fenway Park, Tuesday, Sept. 21, 2021, in Boston (Charles Krupa/AP).

CHICAGO —  The Chicago Cubs landed one of the top remaining free agent starting pitchers, agreeing Wednesday to a $71 million, three-year contract with right-hander Marcus Stroman.

Stroman gets $25 million in each of the next two seasons and has a $21 million player option for 2024. His option price could increase by $2 million each for 160 innings in 2022 and ’23.

Stroman announced he was leaving the New York Mets for Chicago in a series of tweets a few hours before the labor contract between players and owners was set to expire. The Cubs later confirmed the deal.

Stroman cited the “culture and passion everywhere” in the city and said he’s “beyond excited to pitch in front one of the best fan bases in all of sports.”

He’s also looking forward to playing at Wrigley Field, saying it’s “the only big league stadium I haven’t pitched at in my career. Crazy. Can’t wait to call it home!”

Improving the Cubs’ pitching was a priority for president of baseball operations Jed Hoyer after the team ranked among the worst in baseball with a 4.87 ERA. The 30-year-old Stroman figures to give the rotation a huge boost. He went 10-13 with a 3.02 ERA and tied for the major league lead with 33 starts for the Mets this year.

Stroman was an All-Star with Toronto in 2019 before getting traded to New York that season, then sat out the 2020 season because of the COVID-19 pandemic. He is 61-60 with a 3.63 ERA over seven seasons with the Blue Jays and Mets.

Stroman figures to anchor the Cubs’ rotation along with Kyle Hendricks and newcomer Wade Miley. Alec Mills, Adbert Alzolay, Justin Steele and Keegan Thompson are also in the mix for starting spots.

The Cubs are retooling after going 71-91 this year, their first losing record since 2014. They claimed Miley off waivers from Cincinnati on Nov. 7.

Chairman Tom Ricketts said in an October letter to fans that the Cubs would “be active in free agency and continue to make thoughtful decisions to bolster our team this offseason.”

Chicago also finalized contracts with catcher Yan Gomes and outfielder Clint Frazier on Wednesday.

Gomes agreed to a $13 million, two-year contract that includes a club option for 2024.

The Cubs also have Willson Contreras behind the plate, but he is eligible for free agency after next season and the team could decide to trade him if the sides can’t reach a long-term deal this winter. Chicago also could use Gomes to provide more rest for Contreras, who turns 30 in May.

The 34-year-old Gomes played for Washington and Oakland this year, batting .252 with 14 homers and 52 RBIs in 103 games.

Frazier agreed to a one-year contract after batting .186 with the Yankees last season. The No. 5 overall pick in the 2013 amateur draft, he hit .239 in five seasons for New York.

When submitting content, please abide by our submission guidelines, and avoid posting profanity, personal attacks or harassment. Should you violate our submissions guidelines, we reserve the right to remove your comments and block your account. Sportsnet reserves the right to close a story’s comment section at any time.