PHILADELPHIA -- Jonathon Niese clearly hadn't been himself lately.

In his four starts back since shoulder discomfort sent him to the disabled list, the New York Mets starter went 0-4 with a 5.76 ERA. Going up against the Philadelphia Phillies, a team against which he had compiled a 7-6 record and a 3.03 ERA in 18 career starts, seemed a good way to help get him back on track.

Niese (6-8) certainly looked like the pitcher who had compiled a 2.98 ERA over the first few months of the 2014 season, throwing seven strong innings as the Mets beat the Phillies 5-3 Monday afternoon.

The Phillies got a decent effort from starting pitcher David Buchanan (6-6), a rookie making just the 12th start of his career. Buchanan gave up just one run and three hits through the first six innings, but then ran into trouble in the seventh, giving up a walk and an RBI double that tied the game at 2-2 before an out was recorded in that half of the inning.

A day after the Mets' bullpen blew a four-run lead over the final three innings, Phillies reliever Justin De Fratus wasn't able to get out of trouble.

After a single by shortstop Wilmer Flores, Mets catcher Anthony Recker came through, fouling three straight off De Fratus before connecting on a 3-2 pitch and sending it over the fence in left field for a three-run homer.

Though it was Jennry Majia who gave up two runs in the ninth inning to blow the game for the Mets on Sunday, Jeurys Familia nearly did the same on Monday. Familia gave up what was initially ruled a two-out, two-run home run to pinch hitter Chase Utley, but a review determined it was instead a ground-rule double.

Familia then got center fielder Ben Revere to fly to center for the final out of the game, but the Mets closer situation is still very much up in the air.

The Phillies had held a 2-1 lead since the fourth inning, when left fielder Darin Ruf's second home run of the year scored catcher Carlos Ruiz, but that was the only weak point of the afternoon for Niese.

It was his best outing since giving up one run in 7 2/3 innings to Milwaukee back on June 12. Before coming out in the first inning of a game on July 4 with that shoulder discomfort, he had put up six straight quality starts, and this was his first one since returning.

NOTES: Phillies 2B Chase Utley was given the day off, with Andres Blanco getting the start in his place. It was Utley's first off day since July 28, though he appeared in the ninth inning as a pinch hitter. ... Both the Phillies and Mets had yet to decide on their starters for their Tuesday games as of first pitch. The Phillies are traveling to Los Angeles to face the Angels and LHP C.J. Wilson (8-8, 4.82 ERA), while the Mets return home to host RHP Doug Fister (11-3, 2.49 ERA) Washington. ... This game marked the 20th-year anniversary of a 2-1 Phillies win over the Mets in 15 innings back on Aug. 11, 1994. That game is notable as it was the last one for both teams before a players' strike the next day wiped out the remainder of the season. ... New York improved its record in Philadelphia this season to 8-2, and the Mets are 13-3 in their last 16 games at Citizens Bank Park.