MIAMI — New York Mets left-hander Steven Matz will undergo surgery next week to remove bone spurs in his pitching elbow and will miss the rest of the season.

Matz, who has not pitched since Aug. 14, is expected to be ready for spring training.

The news Tuesday before the Mets’ game at Miami was the latest blow for a team riddled this year by injuries but still in contention for an NL wild-card berth.

Matz’s availability for the postseason had already been doubtful because he has been sidelined for more than a month because of tightness in his left shoulder.

Matz finishes the year 9-8 with a 3.40 ERA in 22 starts.