Read-only MCP server for ROS2 and DDS: topics, participants, QoS mismatches, bags.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
The safety-first read-only MCP for ROS2 robotics: graph introspection, bag analysis, and multi-vendor OMG DDS-RTPS observability. TopicForge lets AI agents inspect your ROS2 graph, recorded bag files, and the raw DDS layer beneath ROS, without ever publishing back to the bus. Eleven typed read-only tools (5 ROS2 graph + 3 DDS + 3 observability/bag) share a single Pydantic envelope so an LLM caller reads one schema across the whole stack. It joins a domain through one OSS Python participant (Eclipse CycloneDDS or eProsima Fast DDS) and reads the builtin discovery topics the OMG protocol standardizes, so it observes every conformant vendor on the wire (RTI Connext, OpenDDS, CoreDX, Dust DDS in Rust) with no proprietary binding. See
docs/dds-interop-matrix.mdfor the canonical multi-vendor positioning and the OMG May 2025 interop reference.
TopicForge is a production-minded MCP (Model Context Protocol) server that lets AI agents (such as Claude) inspect ROS2 topics, analyze ROS bag files, and (since v0.2.0) observe the raw DDS layer through a clean, structured tool interface. It is read-only by architecture, not by configuration: there is no write path to misconfigure, no permission system to audit, no liability conversation to have. The MCP client can see the robot stack; it cannot touch it.
This stance matters because the ROS-MCP space is no longer empty: general-purpose ROS-MCP servers exist that let an LLM publish topics, call services, and command robots. That shape is fine for demos; it is untenable for production fleets, defense systems, automotive AUTOSAR Adaptive surfaces, or anything safety-certified. TopicForge is the read-only alternative for those audiences, plus the robotics developers, ML/CV engineers, and teams that want their AI tooling to understand their robotics stack without commanding it.
LLM agents are good at reasoning over text, but ROS2 introspection lives in a CLI + DDS world they cannot directly reach. Without grounding, an LLM will hallucinate topic names, message types, and bag contents. TopicForge bridges that gap with a small, well-typed set of MCP tools, all read-only, all returning frozen Pydantic schemas that a downstream agent can parse without ambiguity:
| Tool | Purpose |
|---|---|
health_check | Environment & mode introspection |
list_topics | Discover the ROS graph |
get_topic_info | Structured info for a single topic |
sample_messages | Peek recent messages on a topic (publish-time timestamps for Header-stamped types) |
analyze_bag | Summarize a .mcap / .db3 / .bag recording |
Outputs are structured, JSON-serializable, and stable across runtime modes - they look the same whether the server is talking to a real robot or to its built-in mock fixtures. Every response carries a mode_effective field ("live" or "mock") so a downstream LLM can tell a real graph from the demo fixtures without re-reading health_check.
The mock adapter ships deterministic fixtures for a small differential robot (LIDAR + RGB camera). You do not need ROS2 installed to try the full tool surface - a clean Python 3.11 venv is enough.
Point any MCP client (Claude Desktop, see below) at this server and ask it to list the topics or analyze /tmp/demo.mcap - every tool returns realistic, typed payloads.
Layers are strictly separated:
server/ wires the whole graph and exposes build_app(settings).tools/ registers MCP tools on FastMCP. Handlers never call ROS directly.services/ validate inputs and orchestrate calls.adapters/ are the only code that knows how to talk to a specific backend. New backends (e.g. an rclpy-based adapter) plug in by implementing the RosAdapter protocol.models/ holds Pydantic schemas - the contract with MCP clients.config/ resolves runtime settings from the environment.| Mode | When to use | Backend |
|---|---|---|
mock | Local development, demos, CI, screencasts | Deterministic fixtures |
live | A machine with ROS2 installed and sourced | ros2 CLI wrappers |
auto | Detect ROS2; fall back to mock if not present | Best available (default) |
Mode is selected via the TOPICFORGE_MODE environment variable.
Requires Python 3.11+.
Or, if you have make:
Or:
Source your ROS2 distribution first, then:
TopicForge invokes the ros2 CLI under the hood, so it does not require rclpy to be importable. This keeps the live adapter portable across ROS2 distros.
Beyond ROS2 graph introspection, TopicForge observes the raw DDS bus directly via one of two OSS Python adapters (Eclipse CycloneDDS or eProsima Fast DDS) each joining as a read-only DDS-RTPS participant. By the OMG-DDS-RTPS protocol guarantee, both adapters see every conformant participant on the domain (RTI Connext, OpenDDS, CoreDX, Dust DDS in Rust, InterCOM, etc.) regardless of host language. See docs/dds-interop-matrix.md for the canonical multi-vendor positioning and the OMG May 2025 interop reference.
Useful for non-ROS DDS stacks (defense, aerospace, automotive AUTOSAR Adaptive, industrial integration) and for diagnosing why a ROS2 subscriber isn't receiving when the graph says it should. Same safety-first contract : read-only by architecture. The MiddlewareAdapter protocol does not expose a write method on any backend.
Install one or both OSS backends. The v0.4.0 auto-detect framework picks whichever you actually installed:
Then select a backend (or let auto-detect pick):
What the OSS install covers. Cyclone and Fast DDS are the two working backends; OpenDDS and Dust are stubs whose upstream Python bindings do not exist yet, and their install extras fail today. That is not a limitation on what you can observe: because discovery runs over the OMG-standardized wire protocol, a Cyclone participant already sees RTI Connext, OpenDDS, CoreDX and Fast endpoints on the same domain. You do not need a commercial adapter to observe a commercial bus.
A native RTI Connext adapter exists for the cases where the standard route is
not enough (secure domains needing vendor credentials, shared-memory-only
deployments, vendor-specific extensions). It requires the RTI Python binding
and an RTI license you already hold. See docs/pro.md for
commercial support and integration.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/topicforge)<a href="https://allmcps.com/mcp/topicforge"><img src="https://allmcps.com/api/badge/topicforge?style=directory" alt="TopicForge on AllMCPs" /></a>