Read-only MCP server for ROS2 and DDS robotics. Let an AI agent inspect topics, DDS participants, QoS mismatches and rosbags. No write path by architecture: it can never command your robot.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add topicforge -- python -m topicforge{
"mcpServers": {
"topicforge": {
"command": "python",
"args": ["-m", "topicforge"]
}
}
}Resumen de MCP Servers
# TopicForge
<!-- mcp-name: io.github.yaniswav/topicforge -->
[](https://pypi.org/project/topicforge/)
[](https://github.com/yaniswav/TopicForge/actions/workflows/ci.yml)
[](https://pypi.org/project/topicforge/)
[](https://github.com/yaniswav/TopicForge/blob/main/LICENSE)
[](https://github.com/yaniswav/TopicForge#security-model)
> **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 from PyPI, or eProsima Fast DDS with a binding you build from eProsima's sources) 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.md`](docs/dds-interop-matrix.md) for 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.
## Why it exists
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 except `health_check` 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`. `health_check` itself reports `mode` (the mode of the adapter actually serving requests) next to `requested_mode`.
## 30-second demo without ROS2
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 venv on Python 3.10 or later is enough.
```bash
pip install topicforge
TOPICFORGE_MODE=mock python -m topicforge
# Windows PowerShell: $env:TOPICFORGE_MODE="mock"; python -m topicforge
```
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.
## Quickstart
```bash
pip install topicforge
python -m topicforge --help
TOPICFORGE_MODE=mock python -m topicforge
```
## Architecture
```
+----------------------+
| MCP client (LLM) |
+----------+-----------+
| (stdio, MCP protocol)
v
+----------+-----------+
| topicforge.server | FastMCP entrypoint, lifecycle, tool registration
+----------+-----------+
|
v
+----------+-----------+
| topicforge.tools | Thin handlers - validate, delegate, serialize
+----------+-----------+
|
v
+----------+-----------+
| topicforge.services | Inspector / Health - orchestration & validation
+----------+-----------+
|
v
+----------+-----------+
| topicforge.adapters | ros2_live - subprocess wrappers over `ros2` CLI
| | ros2_mock - deterministic fixtures
+----------------------+
```
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.
## Runtime modes
| 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. `live` and `auto` degrade instead of failing: if `ros2` is not on PATH and no DDS backend comes up, the server serves the mock fixtures, and `health_check` reports `mode: "mock"` next to `requested_mode`. Only `TOPICFORGE_MODE=mock` forces fixtures unconditionally. The DDS backend is selected separately, see [Multi-vendor DDS support](#multi-vendor-dds-support-v030).
## Install from source
Requires Python 3.10+ (ROS 2 Humble on Ubuntu 22.04 ships Python 3.10).
```bash
git clone https://github.com/yaniswav/TopicForge.git
cd TopicForge
python -m venv .venv
source .venv/bin/activate # Linux / macOS
# .venv\Scripts\Activate.ps1 # Windows PowerShell
pip install -e ".[dev]"
```
Or, if you have `make`:
```bash
make dev
```
## Run
### Mock mode (no ROS2 required)
```bash
TOPICFORGE_MODE=mock python -m topicforge
```
Or:
```bash
make run-mock
```
### Live mode (requires ROS2)
Source your ROS2 distribution first, then:
```bash
source /opt/ros/humble/setup.bash
TOPICFORGE_MODE=live python -m topicforge
```
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.
### Multi-vendor DDS support (v0.3.0+)
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. The adapters read discovery data; they do not decode the payload of user topics (see the `peek_dds_samples` paragraph below).
**Validation status.** No DDS adapter has been exercised against a live multi-vendor bus yet. The unit tests run against the mock backend and against binding-free helpers; the real-bus rig under `scripts/integration/` is a dispatch shell that spawns no publisher and validates nothing (see [`scripts/integration/README.md`](scripts/integration/README.md)). The multi-vendor claim rests on the RTPS protocol guarantee, not on a recorded interop run by this project. For the multi-vendor positioning and its limits, see [`docs/dds-interop-matrix.md`](docs/dds-interop-matrix.md) and the [OMG May 2025 interop reference](docs/projet-file/references/omg-dds-interop-2025-05-08.xlsx).
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 the Cyclone backend from PyPI:
```bash
pip install topicforge[dds-cyclone] # Eclipse CycloneDDS
pip install topicforge[dds] # same thing today ([dds] resolves to [dds-cyclone])
```
There is no Fast DDS extra. The `fastdds` Python binding is not published on PyPI, so TopicForge no longer declares it (0.5.3 removed `[dds-fast]`, `[dds-opendds]`, `[dds-dust]` and `[dds-all-oss]`; an unclaimed package name in a published Lo que la gente pregunta sobre TopicForge
¿Qué es yaniswav/TopicForge?
+
yaniswav/TopicForge es mcp servers para el ecosistema de Claude AI. Read-only MCP server for ROS2 and DDS robotics. Let an AI agent inspect topics, DDS participants, QoS mismatches and rosbags. No write path by architecture: it can never command your robot. Tiene 3 estrellas en GitHub y su última actualización registrada es del 2026-10-01.
¿Cómo se instala TopicForge?
+
Puedes instalar TopicForge clonando el repositorio (https://github.com/yaniswav/TopicForge) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar yaniswav/TopicForge?
+
Nuestro agente de seguridad ha analizado yaniswav/TopicForge y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene yaniswav/TopicForge?
+
yaniswav/TopicForge es mantenido por yaniswav. La última actividad registrada en GitHub es del 2026-10-01, con 1 issues abiertos.
¿Hay alternativas a TopicForge?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega TopicForge en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/yaniswav-topicforge)<a href="https://claudewave.com/repo/yaniswav-topicforge"><img src="https://claudewave.com/api/badge/yaniswav-topicforge" alt="Featured on ClaudeWave: yaniswav/TopicForge" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.