Toucans are primarily birds of tropical evergreen forests, and the Neotropical lowland rainforest—humid, broad-leaved, and green year-round—is their classic habitat, though the family also uses montane cloud forest, gallery forest, savanna woodland, and forest edges, so "tropical evergreen forest" is a good general answer but not an exclusive rule.
The short answer needs one clarification up front: "toucan" is not a single species but a family, Ramphastidae, of roughly forty species in five genera (the exact count depends on the taxonomy followed). Nearly all are restricted to the Neotropics—southern Mexico through Central America and across northern and central South America to southern Brazil and northern Argentina. A few range into cooler highland forests, and some tolerate semi-open country. So the accurate statement is: tropical evergreen forest is the center of toucan diversity and abundance, but the family's habitat envelope is broader than rainforest alone, and there are no native toucans in the Old World tropics.
What "tropical evergreen forest" means here
Tropical evergreen forest is forest that keeps foliage and stays metabolically active year-round because rainfall is high and dry seasons are short or absent. It includes lowland and submontane rainforest, riverine and swamp forest, and montane cloud forest (which is evergreen but cooler and often wrapped in mist). Toucans reach their greatest variety in the lowland and foothill evergreen forests of Amazonia and the Chocó, where several species can share a landscape by partitioning fruit, insects, and nesting sites.
The fit is not accidental. Toucans are arboreal frugivores with large, lightweight bills that let them reach fruit on thin outer branches and pluck it without perching on twigs too slender to hold them. Evergreen forest supplies fruit more continuously than seasonal dry forest, so a fruit-based diet is feasible across the year. The birds also nest in tree cavities—often old woodpecker holes—which mature forest trees provide. Both features tie toucans to structurally complex, persistent forest rather than to open or frequently burned landscapes.
Where the claim holds best
In Amazonian terra firme and floodplain forest, toucans are conspicuous members of mixed frugivore flocks. The toco toucan (Ramphastos toco), the largest species, is something of an exception in its tolerance: it frequents savanna, palm groves, and edge habitats as well as forest. By contrast, many Ramphastos and Aulacorhynchus species, and the mountain toucans (Andigena), are more strictly forest-dependent. The emerald toucanet group and various aracaris are common in humid forest and adjacent shade-grown or secondary growth.
The pattern is therefore gradient-like: highest diversity and strongest association with closed evergreen forest in Amazonia and the humid Chocó; thinner but real presence in montane evergreen forest; and more marginal use of dry forest, cerrado woodland, and plantations by a subset of species. "Home to toucans" is true for tropical evergreen forest as a category, but the phrase should not be read as saying every toucan lives only there, or that every tropical evergreen forest on Earth has toucans. African and Southeast Asian rainforests, which are also tropical evergreen forest, have hornbills and other large-billed frugivores instead. That geographic point resolves most of the confusion behind the question.
Why the confusion arises
Three ambiguities explain divergent answers. First, "toucan" versus "toucanet": the small green toucanets are often overlooked, and their habitat notes differ from those of the big black-and-white toucans. Second, "tropical evergreen forest" versus "tropical rainforest": the terms overlap heavily, but evergreen forest can include cooler cloud forest and some swamp forest, and rainforest is commonly used for the lowland humid type. Third, range descriptions vary by source and by taxonomy, so a checklist for one country may list a species as forest-only while a regional guide notes its use of edges and orchards.
A useful counterexample is the saffron toucanet (Pteroglossus bailloni) of the Atlantic Forest of Brazil, Paraguay, and Argentina—humid, evergreen to semi-deciduous forest that is tropical to subtropical, showing that "tropical" in the loose sense stretches somewhat beyond the strict tropics. Another is the plate-billed mountain toucan (Andigena laminirostris) of the Andean slopes, an evergreen cloud-forest bird. These cases reinforce the core claim while showing its edges.
The practical takeaway
If the question is whether tropical evergreen forests are toucan habitat, the answer is yes, with the caveat that the association is strongest in the Neotropics and in humid lowland and montane forest, and that it is a family-level pattern rather than a rule for every species. If the question is whether a particular forest has toucans, geography decides: Neotropical evergreen forests may; Afrotropical and Indo-Malayan ones will not, because toucans are absent there.