--- sidebar_label: Specification sidebar_position: 1 --- # MCAP Format Specification [compression_formats]: ./registry.md#compression-formats [message_encodings]: ./registry.md#message-encodings [schema_encodings]: ./registry.md#schema-encodings [profiles]: ./registry.md#profiles [feature_explanations]: ./notes.md ## Overview MCAP is a modular container file format for recording timestamped [pub/sub](https://en.wikipedia.org/wiki/Publish–subscribe_pattern) messages with arbitrary serialization formats. MCAP files are designed to work well under various workloads, resource constraints, and durability requirements. A [Kaitai Struct](http://kaitai.io) description for the MCAP format is provided at [mcap.ksy](https://github.com/foxglove/mcap/blob/main/website/docs/spec/mcap.ksy). ## Media Type The registered [media type](https://en.wikipedia.org/wiki/Media_type) for MCAP files is [`application/vnd.mcap`](https://www.iana.org/assignments/media-types/application/vnd.mcap), and the file extension is `.mcap`. Applications that transfer MCAP files over protocols carrying a media type, such as HTTP, should use this value. ## File Structure A valid MCAP file is structured as follows. The Summary and Summary Offset sections are optional. ```
[][]