Agreed in terms of internal Federation “luxury automated space communism”. But the peaceful voluntary democratic (but Earth-dominated) inter-planetary alliance model is definitely based on mid-century America’s view of the first world. TOS was explicitly a Cold War metaphor