pnc-diag-mcp: small offline Python tool for inspecting ROS 2 MCAP/DB3 bags without a ROS install
VictorLiu0725 released pnc-diag-mcp, an Apache-2.0 licensed Python utility that enables quick offline inspection of ROS 2 MCAP/DB3 and ROS 1 .bag recordings without requiring a local ROS 2 environment or Docker setup. The tool allows users to check topic rates, P95 jitter, timestamp gaps, and clock jumps via CLI before opening GUI tools like PlotJuggler. It supports YAML topic mapping for Nav2 and Autoware, includes a synthetic MCAP generator for testing, and wraps read-only inspect commands in a simple stdio MCP server. The code is available on GitHub at VictorLiu0725/pnc-diag-mcp.
Hi everyone,
I put together a small Apache-2.0 Python tool called pnc-diag-mcp for doing quick offline checks on ROS 2 .mcap / .db3 (and ROS 1 .bag) recordings without needing a local ROS 2 environment or Docker setup.
I normally use PlotJuggler when I need to actually plot and dig into signals, but when going through lots of large Nav2 / Autoware bags I wanted a quick CLI step first to check topic rates, P95 jitter, timestamp gaps, and clock jumps before opening a GUI. It reads timestamps directly without full deserialization, supports YAML topic mapping for Nav2 and Autoware, includes a synthetic MCAP generator for testing, and wraps the read-only inspect commands in a simple stdio MCP server.
Code is here if anyone wants to take a look:
Repository VictorLiu0725/pnc-diag-mcp
GitHub - VictorLiu0725/pnc-diag-mcp: Read-only ROS bag and MCAP inspection for PNC and...
Read-only ROS bag and MCAP inspection for PNC and LiDAR-SLAM, with timing audits, signal mapping, and an MCP Agent Skill.
You can test it without your own bag via:
pip install pnc-diag-mcp
python -m fault_sim_kit.generator
pnc-diag inspect data/golden/case_01_tf_jump
Curious if others here have lightweight scripts they run in CI to catch bad bag timestamps or dropped topics early.