In the Brazilian Cerrado, the Red-and-green Macaw (Ara chloropterus) populations are facing an accelerated rate of habitat loss. Despite this, their feeding areas and primary food sources remain poorly understood. In this study, I assessed the relationship between the diet of the Red-and-green Macaw and available food resources in a habitat mosaic from the fragmented Cerrado in Mato Grosso do Sul State, Brazil. Red-and-green Macaws fed on 20 native and five exotic species, mainly in dry habitats (Cerrado, dry forest, and an urban area along the Maracaju Cliffs) during the dry season, while year-round foraging in the riparian vegetation (Aquidauana River and streams). Then, the number of feeding macaws paralleled variations in food abundance and diversity, besides the number of food species. On the other hand, by using a wide variety of abundant foods, macaws' diet breadth presented high values throughout the year. The seasonal consumption of large-seeded fruits across the habitat mosaic displayed a gradient ranging from the urban area to dry habitats, along which macaws ate from exotic to Cerrado species. In this respect, Terminalia catappa seeds and Mangifera indica fruit pulp were important for Red-and-green Macaws in the urban area during the wet season, while Caryocar brasiliense seeds comprised the same in the Cerrado. At this site, both Dipteryx alata and Buchenavia tomentosa seeds composed much of the Red-and-green Macaws' diet during the dry season. Between those habitats, in the watercourse vegetation, macaws frequently foraged on palm fruits across seasons. Therefore, throughout the year, the abundance and variety of food resources strongly influenced the number of foraging Red-and-green Macaws across the habitat mosaic. Understanding the effect of varying seed availability on the spatial and temporal abundance patterns of Red-and-green Macaws, which primarily feed on large-seeded species, is central to developing effective conservation strategies. Due to the accelerated habitat loss, the Maracaju Cliffs emerge as crucial for the Red-and-green Macaw among the Cerrado remnants of Mato Grosso do Sul.