Ayvalı is a village in Taşköprü District, in Kastamonu Province, Türkiye. Ayvalı lies at 649 m above sea level, 1.6 km from the Küre mountains. It has 615 inhabitants. The nearest city is Kastamonu, 19.9 km to the southwest. Among the landmarks around are Mahmut Bey Mosque (23 km), Pompeiopolis (21 km) and Nasrullah Mosque (20 km).