The Confucius Temple along with neighbouring Bao'an Temple (保安宮) are part of the Dalongdong Cultural and Historical District (大龍峒).
Take the Red Line 2 to Yuanshan Station (圓山). After leaving by Exit 2, continue walking down Kulun St (庫倫街), take a right at the intersection of Dalong St (大龍街). The main entrance will be located on the right side.
A rental station is located slightly further along Dalong Street at the intersection of Hami Street. When exiting the temple, turn right and walk 70 meters.