A study of energy supply alternatives was carried out based on a cogeneration fuel cell system fed from the natural gas network of compact Mediterranean cities. As a case study it was applied to the residential energy demands of the L’Illa Perduda neighbourhood, located in the east of the city of Valencia and consisting of 4194 residential cells. In total, eight different alternatives were studied according to the load curve, the power of the system, the mode of operation and the distribution of the fuel cells. In this way, the advantages and disadvantages of each configuration were found. This information, together with the previous study of the energy characteristics of the neighbourhood, enabled selection of the most promising configuration and to decide whether or not to recommend investment. The chosen configuration was a centralised system of phosphoric acid fuel cells in cogeneration, with approximately 4 MW of thermal power and an operating mode that varied according to the outside temperature. In this way, when heating is required, the plant adjusts its production to the thermal demand, and when cooling is required, the plant follows the electrical demand. This configuration presented the best energy results, as it achieved good coverage of thermal (62.5%) and electrical (88.1%) demands with good primary energy savings (28.36 GWh/year). However, due to the high power of the system and low maturity (i.e., high costs) of this technology, would be necessary to make a large initial economic investment of 15.2 M€.