Matt Holliday and Kolten Wong each had three hits and drove in two runs. Holliday was 3 for 3 and Wong was 3 for 4 with a double and stolen base.
Cardinals starter Carlos Martinez allowed one hit in three scoreless innings.
Mets starter Daisuke Matsuzaka gave up two runs and six hits in two innings and struck out two. John Lannan, competing with Matsuzaka to become New York's fifth starter, allowed two runs and three hits in two innings.
New York's Anthony Recker hit an opposite-field homer to right in the seventh against Alexander Reyes.