The New York Mets have agreed to a two-year, $12 million deal with Antonio Bastardo, according to a source.

The deal is pending a physical.

Bastardo, 30, will join Addison Reed as the primary relievers setting up closer Jeurys Familia.

He went 4-1 with a 2.98 ERA and one save in 66 relief appearances with the Pittsburgh Pirates last season.