Star right-hander Max Scherzer and the New York Mets have agreed to a three-year, $130 million contract, sources familiar with the situation told ESPN's Jeff Passan.

Scherzer can opt out of the contract after the second season of the deal, the sources said.