The Mets have zero momentum heading into an eight-game homestand, but at least they have their manager back.

Terry Collins was released from a Milwaukee hospital Monday after completing an overnight stay for precautionary tests. Collins, according to the team, will return to the dugout Tuesday when the Mets open a three-game series against the Pirates at Citi Field.

Collins, 67, departed Miller Park before Sunday’s first pitch after “feeling ill” — with unspecified symptoms — according to assistant general manager John Ricco.

All tests came back negative, according to the team.

Bench coach Dick Scott replaced Collins for the Mets’ 5-3 loss to the Brewers that completed a 10-game road trip. The Mets finished 5-5 on the trip and fell 4 ½ games behind the Nationals in the NL East.

But the Mets will view the glass as half full.

“For the most part, I think [the trip was] pretty decent,” Curtis Granderson said. “We ran up against some good teams and teams that are playing well. You’re always going into the other team’s ballpark, so that makes it difficult when you are doing it.”

Now they get a rematch with the Pirates, who swept a doubleheader against the Mets last week at PNC Park before losing the series finale. The victory by the Mets snapped their nine-game losing streak against the Pirates, dating to 2014.

Jacob deGrom, Noah Syndergaard and Bartolo Colon are lined up for the Pirates series. DeGrom will be pitching on six days’ rest because the Mets needed spot starter Logan Verrett on Saturday following the doubleheader in Pittsburgh.

Collins had to choose between Steven Matz and deGrom for Sunday’s game in Milwaukee and picked Matz based on the fact, of the two, deGrom seemed to have more arm stiffness following the doubleheader.

DeGrom (3-2) hasn’t recorded a victory since April 30 against the Giants, but the righty allowed two earned runs or fewer in three of the starts in which he received a no-decision.

Monday’s off day came at the perfect time for a bullpen that was overextended to the point the team added reliever Erik Goedell to the roster on Sunday and demoted Verrett.

Simply, the Mets need more offensive production after a road trip in which they averaged 3.4 runs. On the bright side for the Mets, Yoenis Cespedes appears to have emerged from his recent slump and Granderson is enjoying a hot streak for the first time this season, but Michael Conforto, Neil Walker, Asdrubal Cabrera and Kevin Plawecki are all scuffling.

Walker had a rough trip on multiple fronts: In addition to his recent offensive woes, he left Saturday’s game with tightness in back and didn’t play Sunday. On Thursday he took a scalding one-hopper off his chest that forced him to leave the game and kept him on the bench a day later.

The Mets will get the Braves and Royals to complete the homestand and have visions of a hot stretch to catch the Nationals, whom they will face again this month in Washington.

“If you think about it, besides one stretch early in the year, we really haven’t put everything together and we’re still sitting right where we are,” Scott said, referring to the team’s second-place standing. “That is probably why guys are still so encouraged by everything.”