Catalysis of the reaction: a phosphorylated MAP kinase + H2O = a MAP kinase + phosphate, where the MAP kinase (MAPK) is part of a MAPK signaling cascade that passes on a signal within an osmosensory signaling pathway.