In planetary exploration, unmanned aerial vehicles (UAVs) play a crucial role in visual navigation, yet face the challenges of GNSS absence and environment degeneration, such as low-texture and non-structural features. To address this issue, we first propose MAR (match and refine), a unified deep learning-based feature matching framework. In the matching stage, it incorporates a retentive self-attention (RSA) module to enhance feature matching accuracy. In the refining stage, local feature windows surrounding the key-points are fed into a transformer network to refine the feature point positions and filter out mismatches. Then we develop MAR-VO, a monocular visual odometry system leveraging MAR to localize in planetary environments using feature extractor such as SuperPoint. To test the effectiveness in such scenarios, we construct a virtual planet-like dataset named Terrain-UAV with 24 sequences including 22800 images in total, using models built in blender. Experimental results show that MAR achieves competitive results in homography estimation and relative pose estimation on benchmark datasets, while outperforms on Terrain-UAV. In addition, our MAR-VO system yields better absolute pose estimation RMSE than monocular point-based VO systems using traditional features and deep learning methods on Terrain-UAV. Notably, with MAR framework, our VO system exhibits excellent generality, especially in low-texture planetary scenes.