For the third night in a row, the Mets followed the same winning formula against the Rockies. Electric home crowd. Dominant starting pitching. Just enough offense.

Lather. Rinse. Win. Repeat.

On Wednesday night, it was Jacob deGrom throwing seven shutout innings, allowing only two hits and striking out 10 as the Mets won their third in a row, 3-0, before 37,175 at Citi Field.

DeGrom (11-6, MLB second-best 2.03 ERA) followed Jon Niese, who allowed two runs in seven innings on Monday, and Matt Harvey, who tossed eight shutout innings on Tuesday. The Mets have allowed two runs in the series and thrown 23 consecutive scoreless innings.

Noah Syndergaard starts this afternoon as the Mets try for a four-game sweep. The pitching talent just keeps on coming.

"Oh my gosh,'' said Tyler Clippard, who pitched a perfect eighth. "I was telling [Eric] O'Flaherty when he first got here, 'Just wait til you see our starters.' It's kind of eye-opening to see those guys go out there and see what they're capable of doing. They've been doing it the whole time I'm here. It's fun to watch.''

advertisement | advertise on newsday

The Mets, who improved to 41-18 at home, led the Nationals by three games in the NL East going into Washington's late game at the Dodgers.

Juan Uribe and Michael Cuddyer each drove in a run in the two-run fourth inning and Yoenis Cespedes hit his first home run as a Met in the eighth.

"When you have people who know how to win . . . people watch it and they learn from it,'' manager Terry Collins said. "It's catching in there.''

After the Mets went hitless for the first three innings against Jorge De La Rosa (7-5, 4.75), Juan Lagares led off the fourth with a single to center.

Uribe, who had been hitless in 14 at-bats, crushed a two-out RBI double to center for a 1-0 lead. Cuddyer, playing first base for the injured Lucas Duda (back) in his second game back from the disabled list, singled to center. The throw home hit the mound and bounced high as Uribe slid in safely to make it 2-0.

Mets videos

It was Cuddyer's 1,500th career hit. Uribe picked up his 1,500th with an infield hit in the sixth. "It's special,'' Cuddyer said. "Three thousand hits tonight. We're in the Hall of Fame if we can go as a tandem.''

DeGrom, who last won July 21, walked four, including Michael McKenry with two outs in the second. The Mets had not walked a batter since Saturday, a span of 302/3 innings.

"Four walks! I was shocked,'' Collins said.

DJ LeMahieu led off the fifth with a ground-rule double to right. McKenry walked again on a 3-and-1 pitch as LeMahieu stole third. DeGrom struck out No. 8 hitter Brandon Barnes before De La Rosa sacrificed McKenry to second. With the tying runs in scoring position, deGrom struck out Charlie Blackmon on a 97-mph fastball.

"I was trying to throw it by them,'' deGrom said. "So it worked out.''

advertisement | advertise on newsday

In the sixth, deGrom issued a one-out walk to Carlos Gonzalez before Uribe made a tremendous diving stop on a ball hit to his left by Nolan Arenado to get the second out at second.

Ben Paulsen walked, but deGrom struck out LeMahieu on a high 95-mph fastball.

DeGrom worked a 1-2-3 seventh, striking out pinch hitter Matt McBride on a curve to end his night at 103 pitches.