NEW YORK -- Giancarlo Stanton, the Miami Marlins right fielder and one of the four National League players scheduled to compete in Monday's Home Run Derby, arrived at Citi Field at 2 p.m. Friday and took Derby-style batting practice from Marlins manager Mike Redmond.

Several hours later, the New York Mets participated in the real thing.

Third baseman David Wright and first baseman Lucas Duda each hit mammoth two-run homers Friday as the Mets routed the Marlins, 7-1.

Duda's blast into the second deck in right field gave the Mets a 4-1 lead in the third. Two innings later, Wright homered into the second deck -- one of his career-high-tying four hits -- in left field to extend the lead to 6-1.

"Stanton goes up there pretty often -- I was trying to impersonate him, I guess," Wright said with a grin. "That's about all I've got. They usually end up in that Party Deck or that first row. This one went a little further."

The Mets, who have had one of the most anemic offenses in baseball for most of the first half of the season, have suddenly started hitting the ball a lot further. New York has blasted 25 homers since June 17, including 16 in its last 10 games at Citi Field, where well-hit fly balls went to die during a brisk spring.

"It's really hard to describe what it's like playing here in the early season, when it's cold and it's damp and the ball just doesn't go anywhere," Mets manager Terry Collins said. "We told them: 'Look, when it starts to warm up, it's a different park. It's a fair park.'"

The Mets haven't exactly been fattening up on patsies, either: They are 6-2 on a 10-game homestand in which they have won games started by a pair of All-Stars -- Texas right-hander Yu Darvish and Atlanta right-hander Julio Teheran -- as well as Friday's opposing starter, Marlins right-hander Henderson Alvarez, who entered the evening with a 2.27 ERA this season, including an 0.84 mark in three starts against the Mets.

"We've done a really nice job of beating some good teams and some really good pitchers," Wright said. "Henderson absolutely dominated us this year. So for us to go out there (and) make the adjustments gives us some confidence going forward that we can go out there and beat some really good pitchers."

Wright finished 4-for-4 with singles in the first, third and seventh. It was the 19th four-hit effort for Wright, who is hitting .385 (25-for-65) in his last 17 games, a stretch in which he has raised his average from .262 to .285.

"David's a guy who can carry us -- and has," Duda said.

Center fielder Juan Lagares had three hits, including a sixth-inning RBI single, for the Mets (43-50), who moved within 1 1/2 games of the Marlins for third place in the NL East. Shortstop Ruben Tejada had an RBI single.

Right-hander Zack Wheeler (5-8) won his second straight start after allowing one run over 6 1/3 innings. Wheeler gave up five hits and two walks while striking out six. He also helped himself out with an RBI double during the Mets' two-run second.

"The way these guys are swinging the bats, you can let up a run like I did tonight and be all right with it," Wheeler said.

Left fielder Christian Yelich had an RBI single in the fifth for the Marlins (44-48), who have lost 10 of 16. Shortstop Adeiny Hechavarria had two hits.

The Marlins had won each of Alvarez's last 10 starts, but that streak came to an end when he allowed six runs on eight hits over six innings. Alvarez (6-4) walked none and struck out three.

"He's done a lot of great things out there and has gotten us a bunch of wins," Redmond said. "Tonight wasn't his night. But hopefully he will start a new streak with his next start."

NOTES: The Mets signed OF Michael Conforto, their first-round pick in last month's draft, and assigned him to short-season Class A Brooklyn. Conforto, wearing uniform No. 88, took batting practice before Friday's game. ... Mets manager Terry Collins said he will try to give 2B Daniel Murphy, the team's lone All-Star, some rest this weekend. Murphy has started 90 of the Mets' 93 games. ... Marlins RHP A.J. Ramos (shoulder inflammation) is scheduled to begin a rehab assignment at Double-A Jacksonville on Monday. Manager Mike Redmond said Ramos could return immediately after the All-Star break. ... Redmond will serve as the pitcher for Marlins RF Giancarlo Stanton during Monday's Home Run Derby.