The doctor that performs endoscopy to examine the upper GI is a gastroenterologist, a specialist in the digestive system.