rerun-mcap
What it does
This skill guides the agent through turning an MCAP recording file into data that Rerun can show. It is for people who record robot or sensor logs in the MCAP format.
When to use it
- ✓When you want to convert an MCAP recording file so you can view it in Rerun.
- ✓When you need to pick which MCAP topics to include or how to decode custom protobuf messages.
- ✓When the converted MCAP data comes out empty and you need to find out why.
Skill link
https://github.com/rerun-io/rerun/blob/main/skills/rerun-mcap/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My MCAP recording converts to Rerun but the result is empty. What is wrong?”
5 new skills a week. 1 minute to read.
How it works
The skill explains how each topic in the recording becomes a Rerun entity and which standard message types should be kept as they are. It also lists common reasons the output comes out empty.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Rerun MCAP ingestion
McapReader turns an MCAP file into a lazy chunk stream: one entity per topic
at the topic's path, message payloads decoded by pluggable decoders. This
skill covers the reader's options, what each topic becomes, and the failure
modes that yield an empty stream with no error. Stream mechanics (filter, drop,
lenses, merge, write) are in rerun-chunk-processing.
The API
from rerun.chunk import McapReader
reader = McapReader(mcap_path) # see help(McapReader) for the full option set
stream = reader.stream()
A URDF embedded in the MCAP can be ingested as well (then see rerun-urdf).
What a topic becomes
With the default decoders (decoders=None), the message schema name decides what a topic becomes — pass archetypes through, lens only the raw :message topics:
| MCAP schema name | decodes to | what to do |
|---|---|---|
foxglove.FrameTransforms |
Transform3D |
pass through; do not hand-build |
foxglove.CameraCalibration |
Pinhole |
pass through |
foxglove.CompressedVideo |
VideoStream (real sample bytes) + CoordinateFrame |
pass through |
other foxglove.* well-known types |
the matching archetype | pass through |
ros2 well-known types (ros2msg / ros2_reflection) |
archetype | pass through |
your own schemas.proto.* / custom protobuf |
one <schema.name>:message struct |
attach semantics with a DeriveLens + Selector |
So a camera topic already arrives as Pinhole, its video as VideoStream, and a frame_transforms topic as Transform3D — only custom messages (e.g. a custom joint states schema, a custom gripper status enum) come through reflection or raw only and need lenses.
The foxglove decoder does the schema→archetype mapping; because foxglove messages are protobuf-encoded it rides on the protobuf decoder, so keep decoders=None (verified: decoders=["protobuf"] alone leaves foxglove.CameraCalibration a raw :message; adding foxglove makes it a Pinhole). Confirm on your file: McapReader(path).stream(), then read McapSchema:name and a few Chunk.format() before deciding anything is missing or needs rebuilding.
- Entity path = topic name (
/sensors/joint_statesstays/sensors/joint_states). Filter early:McapReader(path).stream().filter(content="/sensors/**"). - A reflection-decoded message lands as one struct component named
<fully.qualified.MessageName>:message. Navigate it withSelector(Selector(".joint_positions")) inside lenses; this is how custom messages get Rerun semantics attached (see the DeriveLens patterns inrerun-chunk-processing). - Topic regexes use RE2 syntax and are not anchored:
cammatches/external/cam_lowand/camera_info. Anchor explicitly (^/external/cam) when it matters. Prefer reader-level topic filtering over.filter(...)when you can, so excluded topics are never decoded at all.
When to use the low-level mcap package instead
McapReader keeps payloads in columnar chunk streams; that is almost always what you want.
Drop to mcap.reader.make_reader only when you need raw record metadata without payloads, or when you need to rewrite the container itself (re-registering schemas, channels, and messages).
Gotchas
- Empty stream, no error: a topic regex that matched nothing, or a channel
whose decoder produced no rows. Check
Chunk.format()on a few chunks ofreader.stream().to_chunks()against a tiny test file, or compare topic names with themcapCLI / package first. - Topic regexes are unanchored RE2; excludes run after includes.
timeline_type="timestamp"interprets MCAP log times as wall-clock ns since epoch. If the recording's clock is wrong, fix it at the reader withtimestamp_offset_nsrather than mutating timestamps downstream.- Decoder subsets silently skip topics no decoder claims; when a topic is
missing, retry with
decoders=Noneto rule out decoder selection. - Example fix-lenses are dataset-specific. Before copying a
MutateLenslike thePinhole:resolutionswap from therobot_data_preprocessingexample, read the raw component fromMcapReader(path).stream()and confirm the defect exists in your data — applied blindly it corrupts correct calibration (a correct 648×480 flipped to 480×648). foxglovederives both the camera'sPinhole:child_frameand the video'sCoordinateFrame:framefrom each message's.frame_id(plus an image-plane
FAQ
Can the skill decode my own message types?
Yes. It covers decoding custom protobuf messages, which become one structured component for each message type.
Why should some topics be passed through without changes?
Standard types such as coordinate transforms and camera calibration already decode to Rerun types, so the skill says to keep them as they are.
Does it cover robot models stored in the recording?
A robot model in the file is handled by a related skill, rerun-urdf.
Details
Original description by the author
Ingest MCAP files into Rerun chunk streams with rerun.chunk.McapReader. Read when converting an MCAP recording, selecting topics or decoders, decoding custom protobuf messages, or when an MCAP-derived stream comes out empty. Builds on rerun-chunk-processing (stream mechanics) and rerun-data-model (what the topics should become).
repo: rerun-io/rerun
Popularity
- GitHub stars
- 12k
- Ranking position
- #11555
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
investigate-puffin
12kLets your agent investigate Puffin profiler recordings (.puffin files), find slow code sections and compare traces from before and after a change.
rerun-blueprint
12kTeaches your agent to change how the Rerun viewer looks by writing a blueprint for a recording or table, including layout, views and hidden columns.
rerun-catalog-queries
12kHelps your agent query a Rerun catalog from Python faster, with tips on round trips, payload size and slow dataset reads.
rerun-chunk-processing
12kTeaches your agent to build Rerun data pipelines with readers and lenses that convert MCAP, Parquet, video or RRD files into recordings.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.