The New York Mets have reached a two-year, $20 million deal with free-agent infielder Jed Lowrie, league sources told ESPN on Thursday, adding a versatile veteran to an overhauled team that hopes to compete in the loaded National League East this season.

The 34-year-old Lowrie is coming off the best year of his career, setting highs with 23 home runs, 99 RBIs and 78 walks as the surprising Oakland A's made the postseason.

He'll join an infield that already includes the newly acquired Robinson Cano at second base, Todd Frazier at third base and Jeff McNeil in a utility role -- the same sort of move-around-the-diamond spot Lowrie will likewise fill, according to sources.

The deal reconnects Lowrie with Brodie Van Wagenen, his former agent who was hired this winter as Mets general manager and has made a number of splashes in hopes of reinvigorating the moribund Mets. The trade for Cano and closer Edwin Diaz, which cost the Mets prospects Jarred Kelenic and Justin Dunn, was the biggest.

Jed Lowrie will join the Mets' crowded infield. (Photo by Ezra Shaw/Getty Images)

New York also has signed reliever Jeurys Familia, catcher Wilson Ramos and traded for center fielder Keon Broxton and utilityman J.D. Davis.

Before he played 157 games last season, Lowrie reached 100-plus games just twice -- in 2013 and 2014 with the A's -- in his 10-year career. In 2018, Lowrie, who has settled in as a second baseman the past three years, again went into spring training free of any injuries after coming off one of his best seasons in 2017, and he delivered in having a durable, consistent campaign.

How the Mets fit in Lowrie and spread plate appearances with a crowded infield will be part of the challenge manager Mickey Callaway faces following a 77-85 season. Lowrie's patient approach and ability to switch hit make him a likely part of the Mets' everyday lineup.

Lowrie helped the A's make the playoffs three times in his tenure, hitting .271/.341/.413 with 60 homers and 320 RBIs in 687 games. His career line is .262/.335/.414 with 104 homers and 509 RBIs in 1,109 games.