In space-division-multiplexed transmission systems, it is essential to realize fan-in/fan-out devices that connect the cores between multicore fibers and single-mode fibers. In this Letter, we propose a metasurface-based fan-in/fan-out device with nonuniform phase plates for heterogeneous 19-core fibers across the full C band. Our results show that an average insertion loss of 0.85 dB and a maximum crosstalk of −25.5 dB can be achieved at 1550 nm. Across the C band, the insertion loss and crosstalk are better than 2.78 dB and −19.96 dB, respectively. The proposed concept can flexibly handle various fiber configurations without additional complexity.