← Back to directory
R

ROS2 MCP

Community
Let AI agents inspect and operate ROS 2 robots through MCP.
Category
Other #195 of 678
Stars
★ 100 Popular
Transport
stdio (local process) · Streamable HTTP · SSE
Runtime
Docker · Python 3.10+
Credentials
No credential needed
License
MPL-2.0
Last commit
Tools
24
56FMRS · C

The source describes ROS2 MCP as an open-source MCP server that accesses the ROS 2 graph directly through rclpy. It supports discovery, data reading, and optional robot operations, with a read-only mode. The README lists Humble and Jazzy as supported, stdio as the default, and Streamable HTTP plus deprecated SSE as additional transports. Deployments need ROS 2/DDS access; HTTP transport has no built-in authentication.

Strongest · Setup experience 13/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
10/20
Maintenance
10/20
Documentation
13/20
Setup experience
13/20
Why each score
Reliability 10/20
The README lists 24 tools, read-only mode, DDS discovery warm-up, and mentions CI tests and a tool-classification check. However, only the README and manifest were available, so tests, initialization handshake, error handling, and actual tool behavior could not be verified. The score is moderate and capped at 12 by the static-review rule.
Security and permissions 10/20
The README says read-only mode hides publishing, service-call, and action-goal tools, and warns that HTTP has no authentication, recommending loopback or a private network. However, writes are allowed by default, and the evidence does not show per-operation confirmation for dangerous actions or scoped access controls. No evidence triggers a listed red line, but permission safeguards remain incomplete.
Maintenance 10/20
The README identifies an MPL-2.0 license, maintainer support channels, contribution paths, and a CI badge, indicating a license and maintenance entry points. The supplied material does not verify recent releases, commit activity, issue response, dependency updates, or a security-response process, so the score remains moderate.
Documentation 13/20
The README provides Docker and uv installation examples, tool categories, supported ROS distributions, read-only and HTTP risk guidance, DDS troubleshooting, and documentation links. However, detailed tool parameters are mostly deferred to generated documentation not supplied here, and evidence about error boundaries, platform limits, and dependency maintenance is limited.
Setup experience 13/20
The README gives a Docker quickstart, a uv path, and client configuration examples including Claude Code, and says the image supplies ROS 2. The uv path requires ROS 2 to be installed and sourced locally, network discovery may need extra configuration, and the examples could not be verified in this review, so the score is below the static-review cap of 15.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessRuns commands or codeUses the networkConnects to a database

Best for

  • Developers using ROS 2 Humble or Jazzy who want an MCP client to inspect live robot data.
  • Teams that want to restrict state-changing tools with read-only mode.
  • Use cases where clients need images, maps, or point clouds returned as PNG.

Not for

  • ROS 1 systems; the README explicitly says ROS 1 is not supported.
  • Users who need dedicated node or parameter tools; the README says these are not currently available.
  • Users needing support guarantees for untested or unshipped distributions such as Iron, Kilted, or Rolling.
  • Deployments that require the server to run away from the robot and connect only through rosbridge.

Required permissions

  • The server needs access to the ROS 2 graph; Docker deployments may need network configuration for DDS discovery.
  • In the default mode, registered tools can publish topics, call services, and send or cancel action goals.
  • Set ROS2_MCP_READONLY=1 to keep state-changing tools from being registered.
  • An optional ~/mcp_custom_messages:/app/custom_msgs mount supplies a custom messages directory.

Risks and side effects

  • Publishing, service calls, and action tools may change real robot state. Discover interfaces and confirm fields first; use small values and short durations.
  • Streamable HTTP has no built-in authentication. Anyone who can reach the port can use tools, including publishing tools. Keep it on loopback or a private network, or put an authenticated reverse proxy in front of wider access.
  • DDS discovery may be incomplete immediately after a Docker container starts, so the first list may be partial.

Setup

Before you start

Runtime:Docker · Python 3.10+

Other optional settings (14)
ROS2_MCP_READONLY optional Set to 1 to hide tools that publish, call services, or send or cancel action goals; no credential is needed.
ROS2_MCP_TRANSPORT optional Selects the transport: stdio, streamable-http, or sse; defaults to stdio.
ROS2_MCP_HOST optional Sets the HTTP server bind address; defaults to 127.0.0.1.
ROS2_MCP_PORT optional Sets the HTTP server port; defaults to 8123.
ROS2_MCP_ALLOWED_HOSTS optional Sets accepted Host headers for DNS-rebinding protection; the default depends on the bind address.
MCP_ROS_DISCOVERY_WARMUP optional Controls ROS graph discovery warm-up before the first tool call; automatically enabled by default in containers.
MCP_ROS_DISCOVERY_TIMEOUT_SEC optional Sets the maximum discovery warm-up wait in seconds; defaults to 5.0.
MCP_ROS_DISCOVERY_STABLE_SEC optional Sets the required no-change window during discovery warm-up in seconds; defaults to 1.0.
MCP_ROS_DISCOVERY_POLL_SEC optional Sets the discovery warm-up polling interval in seconds; the manifest default is 0.1.
MCP_ROS_DISCOVERY_DELAY_SEC optional Sets the minimum delay before the first tool proceeds in seconds; the manifest default is 0.0.
MCP_CUSTOM_PROMPTS optional Controls whether custom prompts are enabled; the manifest default is false.
MCP_PROMPTS_LOCAL optional Controls whether local prompts are used; the manifest default is false.
MCP_PROMPTS_PATH optional Sets the custom prompts directory; the manifest default is /app/ros2_mcp_prompts.
MCP_PROMPTS_MODULE optional Sets the prompts module name; the manifest default is extension_prompts.

Run the Docker image containing ROS 2 and configure its container command as the MCP client's stdio command. The manifest provides docker.io/wisevision/ros2_mcp:jazzy. The README also gives this Claude Code example: claude mcp add ros2 -- docker run -i --rm -e ROS2_MCP_READONLY=1 wisevision/ros2_mcp:jazzy. For a source-based run, install and source ROS 2 on the machine and use a matching Python version. See the installation guide for client-specific steps.

Check that it works

After starting the server, confirm ros2_topic_list appears in the client's tool list. Ask it to list ROS 2 topics and check that it returns a topic list.

Troubleshooting

  1. If topic or service lists are incomplete just after container startup, retry once and check whether DDS discovery can cross the container boundary.
  2. On Linux, if a container cannot discover the ROS graph, the README suggests trying host networking; results depend on DDS and network configuration.
  3. If custom messages or service types are unavailable, check that the package defining the type was sourced before starting the server.
  4. For Streamable HTTP, check the container listen address and port mapping, and remember that the server has no built-in authentication.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the available ROS 2 topics.
  • Read three messages from the /chatter topic.
  • Show the current occupancy grid map as an image.

Tools 24

ros2_topic_list read-only
List ROS 2 topics.
ros2_service_list read-only
List ROS 2 services.
ros2_list_actions read-only
List ROS 2 actions.
ros2_interface_list read-only
List ROS 2 interfaces.
ros2_get_message_fields read-only
Show the field names and types for a message type.
ros2_topic_subscribe read-only
Subscribe to a ROS 2 topic and read messages.
ros2_subscribe_multiple_topics read-only
Subscribe to multiple topics; images are returned as PNG.
ros2_topic_publish writes
Publish a message to a ROS 2 topic; this may change robot state.
Show 16 more tools
ros2_publish_multiple_topics writes
Publish to multiple ROS 2 topics with a configurable frequency and duration; this may change robot state.
ros2_service_call writes
Call a ROS 2 service; the service may have side effects.
ros2_send_action_goal writes
Send a ROS 2 action goal, optionally waiting for its result; this may change robot state.
ros2_action_request_result read-only
Request a ROS 2 action result.
ros2_action_subscribe_feedback read-only
Subscribe to ROS 2 action feedback.
ros2_action_subscribe_status read-only
Subscribe to ROS 2 action status.
ros2_cancel_action_goal writes
Cancel a ROS 2 action goal; this affects an active action.
ros2_get_map_as_image read-only
Convert an OccupancyGrid map to PNG.
ros2_get_pointcloud_as_bev read-only
Convert a PointCloud2 point cloud to a bird's-eye-view PNG.
ros2_get_messages_stored_in_influx_data_base read-only
Retrieve historical messages from the WiseVision Data Black Box.
ros2_viewer_app read-only
Open an interactive image, point cloud, or plot viewer.
ros2_viewer_config read-only
Configure the viewer.
ros2_stream_start read-only
Start a viewer data stream.
ros2_stream_next read-only
Read the next item in a data stream.
ros2_stream_next_image read-only
Read the next image in a data stream.
ros2_stream_stop read-only
Stop a data stream.

Use cases

Let an AI agent discover ROS 2 topics, services, actions, and message fields.
Read live topic data, analyze messages, and inspect maps or point clouds.
Publish messages, call services, or send and cancel action goals when explicitly authorized.
Analyze or relay ROS 2 topics with custom prompts.

Supported clients

Claude DesktopPartial support
Visual Studio Code CopilotPartial support
WarpPartial support
CodexPartial support

Listed from the project's documentation, not tested by this site.

Overview

ROS2 MCP is an MPL-2.0 open-source MCP server that connects directly to the ROS 2 graph through rclpy. It can discover, subscribe to, and publish on topics; call services and actions; and view maps, point clouds, and historical messages. It supports ROS 2 Humble and Jazzy. stdio is the default transport; Streamable HTTP and deprecated SSE are also supported. Read-only mode removes tools that can change robot state.

Similar servers

Source revision 4f287b046977 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/ros2-mcp.svg)](https://followmcp.com/en/servers/ros2-mcp)