I got tired of spinning up a matching ROS 2 environment or waiting on PlotJuggler to parse multi-GB bags just to answer simple sanity checks ("did `/scan` drop frames?", "why is jitter spiking?", "did `header.stamp` go zero?").
I also wanted Claude Code / Cursor to help inspect bags without dumping 50,000 raw messages into the context window.
So I open-sourced **`pnc-diag-mcp`** (Apache-2.0, pure Python `>=3.10`, no local ROS 2 runtime required):
https://github.com/VictorLiu0725/pnc-diag-mcp
**What's included:**
- **Zero-deserialization scan** across `.mcap`, `.db3`/`.sqlite3`, and ROS 1 `.bag` files: checks per-topic Hz, median/P95 period, P95 jitter, gaps, timestamp regressions, and zero timestamps without decoding payloads.
- **Declarative YAML signal mapping** with bundled presets for **Nav2** and **Autoware Universe** (handles dot paths, array elements like `pose.covariance[0]`, and `FLU`/`FRD` conversions).
- **Read-only stdio MCP server (`uvx pnc-diag-mcp`)** with 3 bounded tools (`ping`, `inspect_bag_summary`, `sample_mapped_signals`) so AI agents don't blow up their context window.
- **`fault_sim_kit`**: generates 10 small synthetic `.mcap` test cases locally (TF jump, time desync, missing IMU/scan, zero stamps, etc.) so you can try it in 30 seconds.
```bash
pip install pnc-diag-mcp
python -m fault_sim_kit.generator
pnc-diag inspect data/golden/case_03_time_desync
```
Built this for my own Nav2 / LiDAR-SLAM debugging workflow β curious if anyone else here is using MCP tools with rosbag/MCAP workflows, and happy to hear what bag quirks or topic maps I should add next!