All true.
Good points.
And I recently saw the DS9 episode with the Bell Riots.
My point is that the Federation (some officers and citizens, anyway) talks a lot about how 'evolved' it is, and while it cites how humans have learned from the past mistakes of humanity, it doesn't seem to present the wars of the past as inevitable class conflict in the Marxist sense.
Fed ideology seems less bloodthirsty than Marx.
It reminds me more of Comtean Positivism than Marxism. But I'm not an expert on either ideology.
I do see how it could be read as quasi-Marxist, though.
They've achieved full communism, if you will.
All social and economic problems of note have been solved.
EDIT