Modern mosques should appeal to the community they serve . For this reason , other facilities may also be available at the mosque , like health clinics , libraries and gymnasia . As mosques are supposed to appeal to the community , they may also have additional facilities , from health clinics to libraries to gymnasiums , to serve the community .