MuJoCo Modeling Agent
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MuJoCo Modeling Agent
交互式 MuJoCo 场景建模与机器人控制 Agent(可选原语 / 精细 STL 网格 / 场景模板动态建模 + 自然语言 / Web UI / FastMCP 闭环控制)
基于 mini-mobile-arm 轻量化扩展:在保留原有「两轮差速底盘 + 4 轴解析 FK/IK + 3S 虚拟 BMS + SafetyGate 硬安全门卫」闭环控制的基础上,新增 可选方式的动态 MuJoCo 场景建模引擎(MuJoCoSceneBuilder),支持通过中文自然语言、Web 控制台或 FastMCP 工具实时选择建模方式往 MuJoCo 场景中建模,并直接驱动机器人感知、抓取与避障。
一、三种可选 MuJoCo 建模方式
建模方式 | 适用场景 | 核心实现 |
| 需要工业级外观与倒角细节的测试件、料罐、障碍箱 | 复用 |
| 快速参数化生成基础几何体 | 实时生成标准 |
| 一键切换整套实验场景 | 内置 |
所有动态建模物体均通过
x, y ∈ [-1.0, 1.0]与出生点防干涉(r >= 0.22 m)边界校验,生成后自动热重载MjModel并同步到scan_scene()、机械臂抓取与 ToF 避障传感器。
Related MCP server: MuJoCo MCP
二、快速开始
1. 克隆并安装(Python 3.11+)
git clone https://github.com/poplar331/mujoco-modeling-agent.git
cd mujoco-modeling-agent
python -m venv .venv
# Windows PowerShell: .venv\Scripts\Activate.ps1
# Linux / macOS: source .venv/bin/activate
pip install -e ".[dev]"2. 运行全部测试(含动态建模 + 端到端抓放 + Web API)
pytest -v3. 启动 Web 控制台或对话终端
# 启动 Web 控制面板(内置「MuJoCo 建模」标签页,支持选择 mesh/primitive/模板并实时控制)
python scripts/run_web_ui.py
# 启动交互式中文对话终端(加 --viewer 打开 3D 实时物理视窗)
python scripts/run_cli.py --viewer对话建模与控制示例
有哪些建模方式用原语建模在 (0.45, 0.25) 放一个橙色球用精细网格在 (0.42, 0.18) 建一个紫色方块切换成多物体分拣模板把紫色方块抓起来放到蓝色垫子上切换成避障通道模板重置场景模型
4. FastMCP 工具列表(python scripts/run_mcp.py)
除原有的 read_robot_state、scan_scene、move_base、turn_base、pick_object、place_object 等控制工具外,新增 5 个建模工具:
list_modeling_options():查询可用建模模式、形状、颜色、模板与当前动态物体add_modeled_object(...):指定modeling_mode(mesh/primitive)、kind、shape、坐标、尺寸与颜色往 MuJoCo 添加物体remove_modeled_object(name):移除动态建模物体并重载物理场景apply_scene_template(template_name):一键切换default/sorting_station/obstacle_courseexport_scene_mjcf():导出当前完整 MJCF XML
三、工程边界说明
本项目已完成 MuJoCo 500 Hz 物理仿真、动态 MJCF 建模热重载、ROS 2 节点封装、FastMCP 服务与 14 项 pytest 自动化验证;实机串口后端(esp32_stub.py)与 ESP32_PROTOCOL.md 仅完成协议预留,尚未进行实物焊接与实机测试。
License
本项目采用 MIT License 开源。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real2sim: turn 3D scans, splats and video into sim-ready robot scenes for Isaac Sim and MuJoCo.
Build, edit and publish live 3D, AR and game scenes in ARClip from your AI assistant.
Build editable 3D scenes, direct characters and cameras, and export AI video references with MCP.
- VULKDeprecatedio.github.devjoaocastro
Generate, edit, and deploy immersive 3D/WebGL web projects from any MCP assistant.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes MuJoCo physics simulation to AI assistants via 65 MCP tools, enabling natural language control of robotics simulation, trajectory optimization, contact analysis, and video export.12MIT
- AlicenseNot gradedqualityDmaintenanceAdvanced robotics simulation platform enabling AI assistants to control complex physics simulations via natural language, built on MuJoCo and MCP.10MIT
- AlicenseAqualityCmaintenanceEnables instruction-driven editing of 3D indoor scene meshes, including object segmentation, geometric edits, rendering, and full plan/verify agent loops, through MCP tools.13MIT
- AlicenseBqualityBmaintenanceEnables AI agents to control the CoppeliaSim robotics simulator through a single token-optimized MCP tool, executing Python scene code, loading prebuilt robots, retrieving floor and scene hierarchy data, and capturing dual visual snapshots.181MIT