Does Switzerland have a monarchy?

No, it's a democracy republic. It has never been a monarchy

Switzerland is a confederation of 26 semi-independent cantons. A canton is equivalent to what is called a state in English-speaking federal countries.
Switzerland has a very democratic system of government.