"I think to do it, the guys actually have to believe it can happen," Posey said.
He delivered on an even bigger stage Monday as San Francisco saved its season once again. The Giants won their 20th NL pennant and reached their 19th World Series.
Cain walked off the mound to a standing ovation when Jeremy Affeldt entered with two outs in the sixth. Affeldt then got Daniel Descalso to pop out with two runners on.
Yadier Molina had four hits but got little help from the rest of the Cardinals, who went 1 for 21 with runners in scoring position over their final three games.
"It's about the team that's hot, and we went on a cold streak," Cardinals manager Mike Matheny said. "We got to this point by being that team that was hot and taking advantage of opportunities. But we just couldn't make it happen these last two games."
Cain added an RBI single to his cause and got some sparkling defense behind him.
The play of the game went to shortstop Brandon Crawford, who made a leaping catch of Kyle Lohse's liner to end the second inning with runners on second and third that would have been a run-scoring hit.
In the third, Scutaro, the second baseman, made a tough stop on a short hop by Carlos Beltran, and left fielder Gregor Blanco ran down a hard-hit ball by Allen Craig in left-center to end the inning.
Cain's second-inning single made San Francisco the first team in major league postseason history to have a starting pitcher drive in a run in three straight games.
Brandon Belt hit a solo homer in the eighth for his first clout of the postseason.
It took production from everybody, even the pitchers, for these scrappy Giants to rally back from the brink one more time.
Cain certainly did his part to keep the staff rolling.
The 16-game winner, who didn't surrender an earned run during his team's title run two years ago, reached 46 pitches through two innings but settled in nicely the rest of the way to avenge a loss to Lohse in Game 3.
Cain even got to repay Holliday for his hard slide into Scutaro at second base in Game 2 here a week earlier. Cain plunked Holliday in the upper left arm leading off the sixth, drawing cheers from the crowd.
The right-hander escaped trouble in the second with runners on second and third when Crawford made his catch.
Holliday returned to the lineup after missing Game 6 a night earlier with tightness in his lower back. He received loud boos when he stepped in to hit in the first from a fan base still angry about his slide that injured Scutaro's hip.
Beltran is still left 0-fer the World Series, winless in three Game 7s during his 15-year career. And to think just last fall he was on the other side with the Giants as they missed the playoffs a year after winning the club's first World Series since moving West in 1958.
The Cardinals went an NL-best 12-4 from Sept. 16 to the end of the season to earn the NL's second wild card on the second-to-last day of the season, then won 6-3 in a winner-take-all playoff at Atlanta to reach the division series. The Cardinals then rallied from a 6-0 deficit with a four-run ninth inning to stun the Washington Nationals 9-7 in Game 5.
Scutaro joined Hideki Matsui (2004 Yankees), Albert Pujols (2004 Cardinals) and Kevin Youkilis (2007 Red Sox) with 14 hits in a league championship series.
Sandoval's run-scoring groundout in the first that put his team ahead gave him at least one RBI in five straight postseason games, matching home run king Barry Bonds' franchise record set in 2002.
NOTES: The Giants snapped an 0-5 skid in deciding Game 7s. ... The Tigers and Giants will meet for the first time in the postseason. ... Beltran stole his third base of the postseason in the first, making him 11 for 11 in his postseason career — most in a postseason without being caught. ... This was the first NLCS Game 7 since 2006, when the Cardinals beat the Mets and Beltran struck out looking against Adam Wainwright with the bases loaded to end it. ... The Giants are 11-17 in franchise history facing elimination.
Copyright 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.