The East Midwood Jewish Center in Brooklyn needs $250,000 to replace its aging roof and another $250,000 to repair the water-damaged ceiling of its sanctuary, its director said. Then there is the aging boiler — the size of a small apartment — that has needed $20,000 worth of maintenance so far this winter.

Looming over those everyday concerns is something more existential: keeping everyone in the 96-year-old building alive and well at a time of rising anti-Semitism in New York and around the country.

Enhancing security for Jewish institutions, and how to pay for it, has become an urgent issue for religious leaders and local and state governments.

“I lose sleep over this building every night because I care about this institution and I want to protect it and I need the money to do it,” said Wayne Rosenfeld, the executive director of the synagogue, which provides Hebrew lessons for 50 students twice a week and social events for 150 older people on weekdays.