The main objective of this study was to assess the influence of surrounding forest and agricultural landscapes on the bird communities within cities. Using the point count method, we collected data and analyzed the species richness and relative abundance of breeding birds. We found differences in the species richness and relative abundance of breeding birds between urbanized areas surrounded by forests and agricultural landscapes. However, both types of landscapes significantly differed in terms of bird community structure. The highest relative abundances of bird species were observed in city forest parks and cities surrounded by forest landscapes, while the lowest abundances were detected in highly urbanized areas. Cities surrounded by forests exhibited an additional nine species compared to other areas. The ecological grouping of species revealed that cities surrounded by forests had higher relative abundances of typical forest species, such as the Great Tit (Parus major), Eurasian Blue Tit (Cyanistes caeruleus), Common Chaffinch (Fringilla coelebs), and European Pied Flycatcher (Ficedula hypoleuca), whereas cities surrounded by agricultural landscapes were characterized by bird communities adapted to open or semi-open landscapes with specific feeding and nesting behaviors. The presence of specialist forest species in the composition of urban bird communities enhances biological diversity, which is crucial for the stability of both urban ecosystems and bird communities.