I doubt that McDonald's has put much if any particular effort toward building their restaurants into community centers. Without that, I'm not I'm comfortable calling it an achievement on their part. They just sort of fell into the role, and don't seem to have done much to expand it.
As for it being a failure of the society, I'd be tempted to argue the opposite. Lacking a suitable community center (for values of "suitable" that vary from community to community, and which I do not presume to dictate or even know), the community improvised one of its own from what was at hand. We can say that the aesthetics of the implementation are kind of bleak, but to have done it at all is a major success.
Notably with the Sikh's the langar hall (where langar, a free meal, is always served) is the hub of a Gurdwara - seemingly food is the great social leveller!
1. It's clean.
2. It's local.
3. It is welcoming.
4. There is no beauracracy.
Well yes, community centers are literally buildings, and as such, have expenses. Most US communities still have them, however, so it's probably not the money that's preventing them from existing.
A community center however is usually run by volunteers and is funded often as not by government money. The money comes with bureaucracy and there usually aren't enough volunteers to go around.
There are exception to both of the above of course. Some Mcdonald's are dirty and unwelcoming and some Community Centers are clean and simple.
But in the general case the above often holds true.