In the present study, we aimed to describe the composition of endoparasites associated with anurans from an altitudinal rainforest enclave in northeastern Brazil. Additionally, we tested if microhabitat use influences endoparasite abundance and richness, as well as the hypothesis that larger frogs tend to be more parasitized. We sampled 306 individuals from 25 anuran species that were necropsied and analysed using a stereomicroscope. The total endoparasite prevalence was 79.08%, with a parasitic community consisting of 46 taxa. Overall, we found the common pattern described for Neotropical amphibians, which is the predominance of generalist and direct-cycle parasites. Twenty new host records and two possible new parasite species were found, highlighting the importance of this type of inventory. We also observed that microhabitat use was associated with a significant difference in parasite richness between groups, in which arboreal and terrestrial species, and aquatic and arboreal species contributed to these differences. Moreover, larger frogs tended to be more parasitized regarding only an interspecific view. Our results suggest that parasite richness is directly related to infection cycle and how the host exploits its habitat.