First on Google’s gift list to the city was transit passes for low-income kids, then it was free Wi-Fi in some San Francisco parks, now it’s $2 million for the homeless.

Perhaps it is “raining philanthropy,” as Mayor Ed Lee put it during Thursday’s storm.

The Mountain View tech giant, whose corporate shuttle buses have become the symbol of resentment over rising housing costs and displacement in San Francisco, said Thursday that it was donating a combined $2 million to organizations fighting homelessness in the city.

“This is our community. These are our neighbors,” said Justin Steele, a portfolio manager at Google.org, the company’s philanthropic arm, noting that many “Googlers” live in San Francisco.

Hamilton Family Center, a well-regarded nonprofit, will receive $1 million to eliminate the city’s homeless family wait list for shelter space by partnering with the San Francisco Unified School District to intervene quickly when at-risk families are identified.

The school district estimates there are 2,100 homeless kids in San Francisco public schools.

“What is most stunning about today’s announcement is that we haven’t done this already in terms of the partnership between Hamilton Family and our school district,” Supervisor Jane Kim said.

Larkin Street Youth Services will receive $500,000 to roll out a college and career preparation program for homeless youth to prevent them from becoming the next generation of chronically homeless adults.

The remaining $500,000 will go to HandUp, a direct donation platform that helps homeless and low-income people by crowdsourcing donations for things they need, like one mother who recently received dentures. The Google donation is to be used in a gift-matching campaign to double the value of other contributions.

“We need partners,” said Bevan Dufty, who, as the city’s homeless czar, is confronted daily with the seemingly intractable problem.

“We need people who are going to step in and help us change a dynamic that seems unchangeable at times.”

— John Coté

E-mail: cityinsider@sfchronicle.com, jcote@sfchronicle.com Twitter: @sfcityinsider, @johnwcote