I can't speak from personal experience, as I've never lived anywhere with partisan mayoral elections. Even Kansas City, MO, city council is non-partisan. (Although, it doesn't seem to routinely develop pro-mayor and anti-mayor factions.)
Even if KC elections are nonpartisan, Sly James is obviously a Democrat.
Most of KC's recent mayors look like Democrats. Funkhouser's about the only hard one to figure out.
Conversely, I assume most of Overland Park's mayors have been Republican. But it's impossible to know for sure a lot of the time.