mcap
MCAP libraries for Python
Decision gist · record as of 2026-08-14
Yes. MCAP is actively maintained, has no known vulnerabilities, installs with minimal friction, and is widely used in robotics. The permissive MIT license poses no restrictions. Install it if you need to log or replay structured time-series data in robotics, autonomous systems, or similar domains where message-based recording is standard.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.7; lz4 and zstandard must be installed (handled automatically via pip).
- Low install friction with only two runtime dependencies (lz4 and zstandard).
- The package is actively maintained with recent commits and has been in development since 2022-02-14, indicating stable ongoing support.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing free use, modification, and distribution in both open-source and commercial projects with minimal restrictions.
last release 2026-06-18 (57 days) · last repo commit 2026-08-13 · 1,041 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,905,258 downloads/mo, #3,440 on PyPI
Alternatives
Verify before relying
pip install mcap
import mcap
# Write a simple MCAP file
with mcap.Writer(open('data.mcap', 'wb')) as writer:
writer.write_message(topic='/sensor', message=b'data')- Whether the package provides high-level APIs for common robotics use cases or requires lower-level serialization handling
- Performance characteristics (throughput, latency) under typical robotics workloads
- Interoperability with ROS or other robotics middleware ecosystems
What it is and what it does
MCAP is a file format and Python library for logging structured data, designed with robotics applications in mind. It handles recording of timestamped messages (such as sensor readings) into a single file that can be replayed or analyzed later. The format is serialization-agnostic, meaning you can store any message type, and it includes built-in compression support via lz4 and zstandard to handle large datasets efficiently.
The library is part of a cross-language ecosystem (C++, Go, JavaScript/TypeScript, Swift, Rust, and Python) maintained by Foxglove, so data recorded in one language can be read in another. It's designed to work well under resource constraints and varying durability requirements, making it suitable for embedded systems, edge devices, and production robotics deployments where reliability and efficiency matter.
Use it for
- Record sensor streams (camera, lidar, IMU) from a robot for offline analysis and algorithm development
- Log timestamped messages during autonomous system operation for debugging and performance review
- Archive structured telemetry data from multiple sources into a single queryable file for post-processing
- Share recorded robot runs across teams using a standardized, compressed format
- Replay recorded data through a pipeline to test perception or control algorithms without live hardware
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
MCAP is actively maintained, has no known vulnerabilities, installs with minimal friction, and is widely used in robotics. The permissive MIT license poses no restrictions. Install it if you need to log or replay structured time-series data in robotics, autonomous systems, or similar domains where message-based recording is standard.
Install
mcap on PyPI
Before you install
Low install friction with only two runtime dependencies (lz4 and zstandard). The package is actively maintained with recent commits and has been in development since 2022-02-14, indicating stable ongoing support.
Requires Python >=3.7; lz4 and zstandard must be installed (handled automatically via pip).
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install mcap
import mcap
# Write a simple MCAP file
with mcap.Writer(open('data.mcap', 'wb')) as writer:
writer.write_message(topic='/sensor', message=b'data')
Verify before relying
- Whether the package provides high-level APIs for common robotics use cases or requires lower-level serialization handling
- Performance characteristics (throughput, latency) under typical robotics workloads
- Interoperability with ROS or other robotics middleware ecosystems
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packageslz4zstandard |
| Maintenance | Actively maintained 57 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,905,258 / month, #3,440 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: mcap-1.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “robotics logging format”
- mcapMCAP is a logging library and file format for serializing structured…
- mcap-ros1-supportAdds ROS1 message serialization and deserialization support to the…
- pyulogParses ULog files (a self-describing logging format) and provides…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also encord · mcap-ros2-support · mcap-protobuf-support · mcap-ros1-support · foxglove-sdk · sapien · robosuite · flatbuffers · toppra