Boston Gear was the go-to place in the 1930s. Now if you need one gear it is cheaper to buy another locomotive.
There was a guy here in San Diego who hobbed gears for the O Scale club. Their K-Line Berk ate its axle gear. I never met him.
Maroon and I both seek gear sets for the Adams Diesel trucks. But not at $50 each for ten or more.