A control device includes: an acquisition unit that acquires, from a first endoscope connected to the control device, identification information that contains switch information indicating the number of switches of the first endoscope and contains function information indicating a function that is executable or not executable by the first endoscope a recording unit that records setting information that assigns predetermined functions to be executed corresponding to signals respectively input from switches of a second endoscope a setting unit that generates function setting information that assigns and sets functions to be executed corresponding to signals respectively input from the switches of the first endoscope, based on the identification information and the setting information and an executing unit that, when one of the signals is input from a switch, executes one of the functions assigned to the switch which inputs the one of the signals according to the function setting information.