There are different folklore about the origin of the temple. One of the legend says, The Bhagavathy,
Madayikkavilamma was residing in the
Rajarajeshwara Temple. But, as she was non-vegetarian she could not exist in the Shiva temple. She ordered the then King of that region to construct a separate shrine for her. In another legend, long ago Madayi was troubled by a demon
Darika and Madayikavilamma killed him and requested Shiva to enshrine in a temple near him. Lord Shiva ordered his disciple Parashuram to consecrate a shrine for the
Shakti. Parashurama created the
Madayippara and the
Holy shrine on it. The shrine is considered the last resort for the removal of
Occult Sorcery (Black Magic and Witchcraft). There used to be a "strothasamuchayam" known as "panchasthavi" in Kashmir province. There were Laghustuthi, ghatasthi, charchasthuthi, Ambasthuthi, sakalajananeestuthi. These five came under "sreevidyasambrathaaya" which stipulates like Aanavopayam, Saakthopayam, saambhavopayam, anupoyam etc. These were practiced by the Bhattakaaras of kashmir. One of the Bhattakarar travelled from kashmir towards south and he has built 13 temples of saakthyaaradhana. they are from north starting from mannampurath kavu of Neeleswaram, Thiruvarkkattu kavu or Madaayi kavum, Kalarivathulkkavu of Valapattanam, Mamanikkunnu kavu near Mattannur, Thiruvancheri kkavu near Koothuparambu, Kaliyam kavu near edacheri of Vadakara, Koyilandi kollam pisharikkavu, thiruvalayanaadu kavu of Kozhikode, Modikkunnathu kavu near Pattambi, Thirumandamkunnu kavu of Angadipurath, Kodungallurkkavu, Muthoot kavu of Thiruvalla, Panayannar kavu of Mannar near thiruvalla. The Pradanmar or the Brahmins performed the poojas came from Kashmir and they practiced Saaktheya pujas, which is practiced here at Madaayikkavu/ ==History==