You would need to serve some public good or interest. Here is a foundation that provides scholarships:
Typically you form a nonprofit corporation under state law and apply for exempt status with the IRS. What exactly is your question?
Have you look at the IRS webpage:
You typically need to provide a public benefit.