you can access them online at
http://fdncenter.org/ . . . their major publication is "The Foundation Directory," a really huge and really expensive book that you can find at better libraries (
http://fdncenter.org/marketplace/catalog/product_directory.jhtml?id=prod10002) . . . (check which edition they have, though . . . a new one is published every year, and foundation information changes constantly) . . . there's a topical index in the back of the Directory that you can use to find foundations interested in contributing to schools and libraries . . . your best bets are foundations in your own state, although some larger ones give nationally . . . there are also community foundations in many areas that give specifically in their own neighborhoods . . . good luck . . .