The article presents results of a scientific project focused on studying the opportunities for using urban agriculture to improve the environment and meet the needs of fresh produce in the town Sofia. The object of research is the output of good quality agricultural produce on unoccupied spaces and in particular roofs of buildings. The influence of the urban environment on the quality and quantity of the outputs of agricultural production has been established by testing different technologies when growing a range of crops and breeding of bees. The obtained data and results give opportunities for increasing public awareness of the benefits of urban agriculture, which is leading to environmental improvements and meeting the needs of fresh produce in large cities, and for sustainable and integrated development of urban areas, based on European policies related to increasing Europe's green infrastructures and natural capital. The used methodology showed its applicability and possibility for comparative analyses for most major cities in Bulgaria.