Yes, мне is in the dative case. Russians often use these infinitive sentences for "should" questions. The subject of the infinitive then shows up in the dative, although it is often left out as...