PITTSBURGH -- Sooner or later, the Pittsburgh Pirates had to get a hit with runners in scoring position.
After going 0-for-6, the Pirates finally got the big hit when Jordy Mercer singled up the middle with two outs in the bottom of the 11th inning to score Andrew McCutchen with the winning run as the Pirates beat the New York Mets 3-2 on Friday night.
McCutchen led off the 11th by drawing a walk from Gonzalez Germen (0-1) with the score tied 2-2 and then stole second as Pedro Alvarez struck out. Russell Martin was intentionally walked and Gaby Sanchez struck out before Mercer delivered.
The Pirates are hitting just .231 with runners in scoring position this season.
Pittsburgh won back-to-back games for the first time since ending July on a nine-game winning streak. They have gone 4-6 in July.
The Mets had their four-game winning streak snapped, one short of their season high. They had also been averaging 6.8 runs per game in the first six games of their nine-game road trip.
Starling Marte had two doubles for the Pirates.
Eric Young Jr., Daniel Muprhy and David Wright -- the top three hitters in the Mets' order -- had two hits each. Wright extended his hitting streak to 12 games after coming into the game 1-for-7 lifetime against Pittsburgh starter Charlie Morton.
Morton pitched seven innings in his longest outing in six starts after beginning the season on the disabled list while recovering from Tommy John reconstructive elbow surgery. He gave up two runs and six hits with one walk and four strikeouts.
The Pirates kept their major-league-best ERA at 3.09. Their starters have allowed more than three earned runs only once in the last 26 games.
New York's Jeremy Hefner gave up more than one earned run for the just the second time in eight starts since June 4 but still pitched well as he yielded two runs -- both on a home run by Alvarez in the first inning -- and three hits in seven innings. Hefner struck out three and had no walks.
After the Pirates took a 2-0 lead on Alvarez's 24th home run of the season, a drive to center field, the Mets tied it against Morton as Wright flared an RBI single in the sixth inning and Kirk Nieuwenhuis hit his third homer.
Wright was booed loudly each time he batted by the sellout crowd of 39,036. The fans were angry that Wright, the National League captain, originally bypassed Alvarez for next Monday night's All-Star Home Derby at Citi Field in New York before naming him to the squad on Thursday as an injury replacement for Colorado's Carlos Gonzalez.
NOTES: Mets RHP Matt Harvey, who has been scratched from Saturday night's scheduled start because of a blister on his right index finger, threw a bullpen session without pain before the game and has been cleared to pitch in the All-Star Game on Tuesday, which will be hosted by the Mets at Citi Field. ... New York RHP Frank Francisco, who has been on the disabled list all season while recovering from right elbow surgery, pitched one inning for the Rookie-level Gulf Coast League Mets on Friday and allowed one unearned run with one strikeout. It was Francisco's first game action since May 8 when he pitched for high Class A St. Lucie before having his rehab assignment stopped because of elbow pain. ... Pittsburgh acquired INF/OF Russ Canzler from Baltimore in a trade for minor-league RHP Tim Alderson and assigned him to Triple-A Indianapolis. Canzler had been designated for assignment by the Orioles. ... RHP Alex Torres (0-1, 0.51) makes his first start of the season on Saturday night for the Mets after 10 relief appearances, facing RHP A.J. Burnett (4-6, 3.05).