Shelton, the world number four, took the opening set. He blasted a return to claim his first break in Alcaraz's first service game, then held off two break points at 4-2.
"Every time we face each other, it's a great battle. It's going to be a great match-up in the future,"Alcaraz said after another close match with Shelton.
No other men's singles player has matched that total this year, even though Alcaraz missed four months with a wrist injury.
The third-ranked Spaniard played with strapping around his upper left leg after injuring a hamstring earlier in the week. He had little more than 24 hours to recover before the final.
Alcaraz grew frustrated as Shelton stayed composed, kept a high first-serve percentage and continued to deny him chances.
The second set took more than an hour to turn. Alcaraz broke for a 5-3 lead, drawing Shelton forward with a drop shot before hammering a winner and serving out the set.
In the decider, Shelton lifted a drop shot that drew applause from Alcaraz and held for a 4-3 lead. The American then faltered first in the tie-break.
Shelton missed two forehands and fell a double break behind at 4-1. Alcaraz guided a backhand return down the line on his first match point and roared in celebration.
Asked how he felt physically, Alcaraz said:"Today was a really important test.".