NEW YORK (AP) David Wright had a go-ahead double in the seventh inning, Yoenis Cespedes homered again and the New York Mets won their eighth straight, 4-3 over the Miami Marlins on Monday night.

With two outs and runners on first and second, David Wright hit a fastball from reliever Kyle Barraclough (2-1) to the deepest part of the park, well over the head of scrambling center fielder Christian Yelich, for a ground-rule double - scoring pinch-runner Eric Young Jr. and giving the Mets a 4-3 lead.

Travis d'Arnaud also homered for New York. Cespedes connected for the ninth time in 13 games.

More from FoxSports

Hansel Robles (4-2) pitched a scoreless seventh for the win. Jeurys Famila was perfect in the ninth for his 41st save in 46 opportunities.

Logan Verrett, making a spot in start in place of Matt Harvey, who was skipped in the rotation to limit his innings, pitched one-run ball for five.

YANKEES 4, RAYS 1

ST. PETERSBURG, Fla. (AP) - Alex Rodriguez had a tying, two-out RBI double in the ninth and Slade Heathcott followed with a three-run homer, leading the Yankees to a victory over the Rays.

The victory moved the Yankees within three-games of AL East-leading Toronto.

Erasmo Ramirez held the Yankees hitless until Carlos Beltran led off the eighth with a hot shot that took a short-hop off first baseman Richie Shaffer and went into right field.

Tampa Bay stopped a 21-inning scoring drought and took a 1-0 lead on Logan Forsythe's eighth-inning RBI double.

The Yankees rallied in the ninth. Down to their last out, Brett Gardner was walked by Brad Boxberger (4-10) on four pitches and stole second. Then Rodriguez tied Craig Biggio for 21st place all-time with his 3,060th hit.

Heathcott homered after Brian McCann was intentionally walked, setting off a raucous celebration in the New York dugout.

INDIANS 8, ROYALS 3

CLEVELAND (AP) - Carlos Carrasco overcame a home run on his first pitch of the game to throw six strong innings, and Lonnie Chisenhall drove in three runs as the Indians beat the Royals.

Carrasco (13-10) let Alex Gordon hit his first pitch deep into the seats in right field, but that was the only run he allowed. The right-hander, who struck out nine, was making his second start since coming off the disabled list with a sore right shoulder.

Lonnie Chisenhall drove in three runs for the Indians, who entered play trailing Texas by 4 1/2 games for the AL's second wild-card spot. Cleveland, which has won 13 of 18, also got back to the .500 mark (71-71).

Edinson Volquez (13-8) allowed four runs in five innings for Kansas City, which has lost eight of 10, while Gordon was 4 for 5.

ORIOLES 2, RED SOX 0

BALTIMORE (AP) - Kevin Gausman pitched six innings of two-hit ball to earn his first victory in six weeks, Adam Jones had two RBIs and the Orioles beat the Red Sox for their fifth win in six games.

Caleb Joseph had three hits for the Orioles, who moved two games ahead of the last-place Red Sox in the AL East. Baltimore trails four teams in the hunt for the second AL wild-card spot.

Gausman (3-6) struck out seven, walked four and allowed only one runner past second base. The right-hander was 0-4 in his previous seven starts.

Brad Brach worked the seventh inning, Darren O'Day and Brian Matusz shared the eighth and Zach Britton got three straight outs to complete the three-hitter and earn his 33rd save.

Eduardo Rodriguez (9-6) gave up one run and five hits in 5 1-3 innings for Boston.

TWINS 7, TIGERS 1

MINNEAPOLIS (AP) - Eduardo Escobar homered and drove in two runs and Tyler Duffey struck out seven while pitching into the seventh inning to lead the Twins to a victory over the Tigers.

Duffey (3-1) gave up one run on seven hits and walked two in 6 1-3 innings, and Joe Mauer went 3 for 5, extending his streak of games reaching base to 34 for the Twins, who entered the night trailing the Texas Rangers by one game for the American League's second wild card.

Kyle Lobstein (3-8) gave up six runs on seven hits in just 1 2-3 innings for the Tigers. J.D. Martinez had two hits for Detroit, but Steven Moya had four of the team's 11 strikeouts.

NATIONALS 8, PHILLIES 7, 11 innings

PHILADELPHIA (AP) - Jayson Werth hit two homers and drove in five runs, and Yunel Escobar had the game-winning RBI in the 11th inning to lift the Nationals to a victory over the Phillies.

Pinch-hitter Danny Espinosa led off the 11th with a walk, moved to second on Cameron Rupp's passed ball and went to third on Anthony Rendon's single. Espinosa then scored on Escobar's high chopper to second base off Luis Garcia (3-5).

The groundout made a winner of Jonathan Papelbon (4-2), who blew his first save of the season by allowing Freddy Galvis' solo homer in the 10th.

Rendon homered and had four hits and Bryce Harper also homered for the Nationals, who remained 9 1/2 games behind the first-place Mets in the NL East. It was Washington's second straight win after snapping a five-game losing streak on Sunday.

Ryan Howard and Cody Asche also homered for Philadelphia.