Leg/wheel mobile robots, which have articulated legs ending in a wheel, can walk on legs as well as drive on wheels by switching between those two motive mechanisms in response to the terrain. However, effective control of the redundant degrees of freedom of leg/wheel mobile robots is complex. In this study, we propose a model predictive controller for leg configuration control that achieves both driving along the ground surface and climbing over a step. The proposed method simultaneously optimizes the robot pose, wheel positions, and joint angles. To consider the kinematic configuration of the legs explicitly, we formulate constraints on the relative position between the body and wheels. The ground contact condition of the wheels is approximately expressed as a continuous function with respect to each wheel’s relative position to the ground. This formulation induces smooth lifting of the wheels when the ground level abruptly changes, as when climbing a step. To prevent overturning, we evaluate the load distribution between each grounded wheel and constrain the body position to form a support polygon consisting of the grounded wheels. We conducted numerical simulations to verify that the proposed method achieves both driving on wheels and climbing over a step.