Updated

Flushing, NY (SportsNetwork.com) - Juan Lagares went 2-for-5 with a run scored and two RBI, including the go-ahead single in the sixth inning that propelled the New York Mets to a 4-2 victory against the Pittsburgh Pirates in the middle test of a three-game series at Citi Field.

Daniel Murphy doubled twice, scored a run and knocked in another for the Mets, who improved to 3-5 on a nine-game homestand that ends Wednesday afternoon.

A day after Jose Valverde blew a save and was given his release, New York used Jenrry Mejia for two innings to close out the win.

"Right now I feel pretty good," Mejia said of going two innings. "I don't know about tomorrow. We have to play catch tomorrow and see how it feels but now, I can throw like two more innings."

Edinson Volquez walked five and allowed two runs on four hits in five laborious innings, but the Pirates took him off the hook when Starling Marte hit a bases-loaded, two-run single in the sixth to even things at 2-2.

"It was a challenge for (Volquez) but he kept us in the game," Pittsburgh manager Clint Hurdle said of his starter.

The hit ended Jonathon Niese's outing, and Vic Black (1-0) got out of the inning by striking out pinch-hitter Ike Davis to leave the bags full.

The Mets got the two runs right back off reliever Jeanmar Gomez (0-2), who retired two in a row after walking Ruben Tejada to open the home sixth. Two wild pitches advanced Tejada to third, and Lagares took a payoff pitch into left to break the tie.

Murphy slapped Gomez's next pitch into the right-field corner, and Lagares raced all the way around from first for an insurance run.

Black, the player-to-be-named-later on a deal that sent Marlon Byrd to the Pirates at last year's trade deadline, struck out Gaby Sanchez to leave runners on the corners in the seventh, and Mejia got out of a jam in the eighth by getting pinch-hitter Pedro Alvarez to hit into a double play.

Mejia put two on in the ninth but got Sanchez to ground into a fielder's choice to earn his fourth save.

The Mets were playing for the first time with their new hitting coach and went 3-for-16 with runners in scoring position and left 10 on base.

Still, they jumped ahead early.

Bobby Abreu singled through the shift and into right field to bring in Murphy with the game's first run in the third frame, and Lagares, who made a spectacular catch to rob Andrew McCutchen of an extra-base hit in the first inning, doubled off the wall in left to plate Tejada in the fourth.

McCutchen answered Lagares' thievery in the third with a sensational, outstretched diving stab in right-center on a ball hit by his fellow center fielder.

Game Notes

There were 14 total walks ... Lamar Johnson was promoted to hitting coach after the Mets fired Dave Hudgens following Monday's loss ... Niese was charged with two runs on three hits and four walks. He has surrendered three runs or less in 14 consecutive starts ... Volquez has gone winless in his last eight road starts dating back to last year ... Black was recalled from Triple- A Las Vegas after Valverde was released.