Brad Miller hit a solo homer and a double for the Phillies, who pulled within 2½ games of the Chicago Cubs for the second NL wild card.
Pete Alonso hit his 43rd homer and Wilson Ramos extended his hitting streak to 25 consecutive games with a fourth-inning double for the Mets, who are four games behind the Cubs.
After the Mets tied it at 2 on a wild pitch in the top of the eighth, Bryce Harper led off the bottom half with a single against Daniel Zamora (0-1), who was just recalled from the minors. Jeurys Familia walked Rhys Hoskins before Miller flied out to deep center, allowing both runners to advance. Cesar Hernandez was intentionally walked to load the bases for Kingery, who lined a 1-0 pitch into the left-center gap.
Hector Neris (3-5) got the final five outs for Philadelphia.
New York tied it in the eighth when Brandon Nimmo, playing in his first game since May 20 due to a neck injury, scored from third on a wild pitch by Neris during a crazy inning.
The Mets put runners on second and third with one out for Jeff McNeil, who entered Sunday batting .326. But his slump reached 0 for 13 when he grounded to Hoskins at first base and he threw out Rajai Davis at the plate.
Davis slid headfirst on the play and took out the legs of veteran umpire Joe West, who ended up laying on Davis for several seconds before finally being helped up by Neris and calling Davis out.
Neris was brought in after Mike Morin allowed the first two batters to reach before Luis Guillorme’s sacrifice bunt advanced both runners.
Phillies starter Zach Eflin pitched seven stellar innings, allowing only Alonso’s first-inning homer and two other hits. But manager Gabe Kapler elected to pinch-hit for Eflin in the seventh with Philadelphia ahead 2-1 even though the right-hander had thrown just 84 pitches.
Mets starter Marcus Stroman also pitched well, giving up two runs on seven hits with six strikeouts and two walks in six-plus innings. Stroman was lifted after Adam Haseley’s leadoff double in the seventh.
Miller was a late addition to the lineup after shortstop Jean Segura was scratched due to the death of his grandmother.
Mets: 2B Robinson Cano, on the injured list since Aug. 5 with a torn left hamstring, is planning a second rehab start Monday at Class A Brooklyn. If all goes well, Cano told reporters after Saturday’s game that he could join the Mets as early as Tuesday.
Phillies: OF Jay Bruce was reinstated from the 10-day IL. Out since Aug. 9 with a left flexor strain, Bruce was batting .250 with 10 homers and 29 RBIs in 34 games with Philadelphia. He grounded out while batting for Eflin in the seventh.
Mets: Open a three-game set in Washington on Monday afternoon. RHP Noah Syndergaard (9-7, 4.14 ERA) will look to bounce back from his last start against the Cubs when he allowed a career-high 10 runs (nine earned) in three innings. RHP Joe Ross (3-3, 5.36) goes for the Nationals.
Phillies: LHP Drew Smyly (2-6, 6.95) opposes Reds RHP Anthony DeSciafani (9-7, 4.05) in the first of four games at Cincinnati.
Source: Fox Sports