Web-based MuJoCo viewer powered by viser.
Maintained. Last release 3 weeks ago, commits in 5 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install mjvisermjviser
A web-based MuJoCo viewer built on Viser.
Quick start
Run it directly with uvx (nothing to install):
uvx mjviser path/to/model.xml
Or pip install mjviser and run mjviser path/to/model.xml.
mjviser also does fuzzy path matching against the current directory:
mjviser humanoid # finds **/humanoid*.xml
mjviser shadow_hand # finds **/shadow_hand*.xml
Use --port to bind to a specific port (default: 8080):
mjviser model.xml --port 7070
If robot_descriptions is available, you can load any of its 57 MuJoCo models by name:
uvx --with robot_descriptions mjviser go1
[!NOTE]
uvxdefaults to the system Python and may not respectrequires-pythonconstraints (astral-sh/uv#8206). If your system Python is 3.14+, where MuJoCo can't build yet, pass-p 3.13explicitly:uvx -p 3.13 mjviser path/to/model.xml.
Python API
import mujoco
from mjviser import Viewer
model = mujoco.MjModel.from_xml_path("robot.xml")
data = mujoco.MjData(model)
Viewer(model, data).run()
Open the printed URL in your browser. You get most of what the native MuJoCo viewer offers: simulation controls, joint and actuator sliders, contact and force visualization, camera tracking, keyframes, and more.
Extension points
Viewer accepts three optional callbacks: