SuperAPI AI Directory

TopicForge

TopicForge is a read-only MCP (Model Context Protocol) server that lets AI agents inspect ROS2 computation graphs, recorded bag files, and the DDS layer beneath ROS. There is no write path in its code architecture, so it cannot publish messages to the bus or control robots, and no permission system needs to be configured. It provides eighteen typed tools that return frozen Pydantic schemas, with consistent output whether connected to a real robot or the built-in simulation fixture. It is suitable for ROS2 developers, robotics ML/CV engineers, and teams that cannot accept write paths in their production stack.

Open website

About this tool

TopicForge is a read-only MCP server designed to let AI agents safely inspect ROS2 systems. It communicates with clients through the MCP protocol and provides eighteen typed tools covering the ROS2 graph, bag files, and the DDS layer.

Purpose

TopicForge is mainly used for debugging and analyzing ROS2 robot systems. AI agents can read bus information and diagnose issues such as QoS mismatches without worrying about accidental writes or controlling the robot. It is suitable for ROS2 developers, robotics ML/CV engineers, and production teams that require strict read-only access.

Main capabilities

  • Read-only guarantee: There is no write path in the code; all tools are declared read-only in the MCP protocol (readOnlyHint), and tests ensure this.
  • Eighteen typed tools: They return frozen Pydantic schemas, with output contract version 2; each tool returns an object and a note, and units are included in field names.
  • ROS2 graph inspection: Can list topics and nodes, get topic and node information, inspect TF, perform graph diffs, diagnose issues, sample messages, and analyze bag files.
  • DDS layer inspection: Joins the domain as a read-only participant through Eclipse CycloneDDS bindings, reads built-in discovery topics, and can detect QoS mismatches (such as a BEST_EFFORT writer and a RELIABLE reader).
  • bag file analysis: Parses ros2 bag info or uses the rosbags library to read bags, providing per-topic time, rate, and anomaly observations (such as /clock jumps, topic silence, and timestamp regression).
  • Simulation mode: Requires no ROS2 environment; built-in deterministic fixtures (a small differential robot with LIDAR and an RGB camera) facilitate testing.
  • Multi-client support: Provides configuration examples for clients such as Claude Desktop, Cursor, VS Code, Windsurf, and Cline.
  • MCP prompts: Provides three prompts (diagnose-dds-bus, inspect-ros2-robot, diagnose-nav2) to guide the read-only call order.

Usage

  • Start the server via stdio or streamable-http transportserver. Default is stdio; HTTP mode requires specifying --transport streamable-http and --port (default 8765), binds to 127.0.0.1, and Bearer token authentication can be enabled using TOPICFORGE_HTTP_TOKEN.
  • Environment variable configuration: TOPICFORGE_MODE (live/auto/mock), TOPICFORGE_DDS_BACKEND (mock/cyclone/auto), TOPICFORGE_DDS_DECODE (on enables decoding), etc.
  • Installation: pip install topicforge, or use uvx. Image support requires installing the image extra dependency (pip install "topicforge[image]").
  • Client integration: Claude Desktop configuration in claude_desktop_config.json; Claude Code uses claude mcp add topicforge -- topicforge.
  • Examples and documentation: the examples/ directory provides walkthroughs against mock fixtures, and docs/ contains tool reference, client configuration, testing guides, etc.

Use cases

  • ROS2 development and debugging: quickly inspect topics, nodes, TF, and QoS configuration.
  • Robotics ML/CV engineering: analyze sensor data streams and bag files, and diagnose data anomalies.
  • Read-only monitoring in production environments: teams need AI-assisted analysis but write operations are prohibited.
  • Teaching and testing: use mock fixtures to learn or validate tools in environments without ROS2.

Limitations

  • Only read-only operations are supported; it cannot publish messages or control robots.
  • DDS validation is partial: the Cyclone adapter has been tested on real buses (Cyclone, Fast DDS, Dust DDS participants), but RTI, OpenDDS, CoreDX, etc. have not yet been observed.
  • User topic payloads are not decoded by default (TOPICFORGE_DDS_DECODE=on can enable it for ROS2 topics); peek_dds_samples returns empty for user topics.
  • Runtime liveness is not observed: silent but alive writers appear healthy; crashes and graceful departures cannot be distinguished.
  • Single-domain limitation: the server joins one domain atstartup; changes require a restart.
  • DDS security is not handled: participants without credentials see an empty secure bus.
  • QoS mismatch detection does not check Presentation, XTypes assignability, and runtime behavior.
  • No streaming or push subscriptions; tools are strictly request/response.
  • Telemetry is off by default; when enabled, it only logs locally and sends no network data.
  • Not hardened against adversarial input; designed for local trusted environments.