Mobile edge computing (MEC)-enabled optical interconnected edge networks are composed of multiple MEC servers deployed at base station (BS) locations or independently which are interconnected by optical networks, and terminal devices (TDs) access MEC servers by connecting to BSs through a wireless network. By assuming that TD's task offloading needs to be supported by specific services, this paper investigates task offloading in the MEC-enabled optical interconnected edge networks, where services for offloading tasks are deployed at different MEC servers, and the user's cost budget of task offloading is also taken into account. In the proposed task offloading scheme, for a task that needs to be offloaded, we first select the appropriate BS to access the optical interconnected edge networks, then the MEC server and optical transmission path are determined to carry out task offloading. We first formulate the task offloading problem as an Integer Linear Program (ILP) with the objective of minimizing the overall offloading cost of all tasks. To achieve the real-time solution, a heuristic is then proposed which divides the offloading operations into two procedures i.e., BS selection, and MEC server and path selection. The former is achieved by a genetic algorithm, and a strategy for properly selecting the MEC servers and the corresponding transmission paths is designed in the latter. Extensive numerical results are provided to validate the proposed task offloading scheme.