Yes, caffeine is beneficial for cyclists. Studies show that consuming caffeine prior to exercise may result in improved performance, speed, power, and endurance capacity 
is a central nervous system stimulant that works by blocking adenosine and is found naturally in coffee, tea, and chocolate.
The recommended dose is 3-9 mg caffeine/kg, 30 - 90 minutes before cycling, which equates to 1-2 cups of brewed coffee for most people. Cyclists can consume up to 400-500mg caffeine/day (about 4-5 cups of coffee) to reap the performance benefits, but exceeding this amount may lead to negative side effects, like jitteriness or heart palpitations. Studies show that omitting caffeine or limiting intake to 50 mg/day 2-7 days before a race may maximize the benefits of caffeine on race day [2