Skip to main content
Glama
rosbridge-mcp

rosbridge-mcp

by hieutachi

rosbridge-mcp

CI License: MIT Python 3.10+

rosbridge-mcp は、Model Context Protocol サーバーであり、AIエージェント(Claude Desktop、Cursor、VS Code、その他すべてのMCPクライアント)を、標準の rosbridge v2 プロトコル(WebSocket + JSON)を介して ROS 2 を実行するロボットに接続します。ロボットまたはROSマシン上で rosbridge_server を実行します。このMCPサーバーはネットワーク経由でそれに接続し、AIがトピックを観察し、ROSグラフとTFツリーを検査し、ロボットのカメラを通して見て、メッセージをパブリッシュし、サービスを呼び出し、ROS 2 アクションを駆動できるようにする11のツールを公開します。AIクライアントを実行するマシンにROSをインストールする必要はありません。

アーキテクチャ

+--------------------+   stdio (MCP)   +----------------+   WebSocket/JSON   +------------------+   DDS   +---------+
|  AI client         | <-------------> | rosbridge-mcp  | <----------------> | rosbridge_server | <-----> |  ROS 2  |
|  (Claude, Cursor,  |                 |  (this server) |    rosbridge v2    |  (on the robot)  |         |  graph  |
|   VS Code, ...)    |                 |                |      protocol      |                  |         |         |
+--------------------+                 +----------------+                    +------------------+         +---------+

Related MCP server: ROS2 MCP Server

クイックスタート(60秒)

pip install git+https://github.com/hieutachi/rosbridge-mcp.git

または、公開後:pip install rosbridge-mcp(PyPI — 近日公開予定)。

MCPクライアント設定に追加します(正確なファイルの場所については、以下のクライアント別ガイドを参照):

{
  "mcpServers": {
    "rosbridge": {
      "command": "rosbridge-mcp",
      "env": { "ROSBRIDGE_URL": "ws://<robot-ip>:9090" }
    }
  }
}

次に、エージェントにこう尋ねてみてください:「ロボットにはどんなトピックがありますか?」

自分に合ったパスを選ぶ

自分に合ったガイドを選んでください。各ガイドは自己完結しているため、このREADMEの残りを最初に読む必要はありません:

あなたは...

ガイド

Claude Desktop ユーザー — Claude からロボットと対話したい

docs/claude-desktop.md

Cursor または VS Code ユーザー — エディタ内でロボットツールを使用したい

docs/cursor-vscode.md

ROS 初心者、ロボット未所持 — シミュレータまたは Docker ですべてを試す、ハードウェア不要

docs/simulator-quickstart.md

実ロボットに接続する — LLM をハードウェアに近づける前の安全チェックリスト

docs/real-robot-safety.md

開発者 — コントリビュート、ツールの追加、またはコードを理解したい

docs/development.md

ツール

合計11ツール。すべてのツールはJSONを返します。メッセージと引数のペイロードは、rosbridge が使用するのと同じ ROS メッセージの JSON 表現を使用します(フィールド名は .msg/.srv/.action 定義と一致します)。

ツール

機能

変更の有無

list_topics

すべてのトピックとメッセージタイプ

なし

list_nodes

すべての実行中ノード

なし

list_services

すべての利用可能なサービス

なし

get_topic_snapshot

トピックからライブメッセージを収集

なし

get_tf_tree

TF座標フレームツリーのスナップショット

なし

get_camera_image

カメラフレームをbase64で1枚取得

なし

get_connection_status

接続と読み取り専用状態

なし

publish_message

トピックにメッセージをパブリッシュ

あり

call_service

任意のROSサービスを呼び出し

あり(読み取り専用では /rosapi 読み取りの許可リストを許可)

send_action_goal

ROS 2 アクションゴールを送信し、結果を待機

あり

cancel_action_goal

実行中のアクションゴールをキャンセル

あり

list_topics

すべてのトピックとそのメッセージタイプを一覧表示します。パラメータはありません。

{"topics": [
  {"name": "/chatter", "type": "std_msgs/msg/String"},
  {"name": "/cmd_vel", "type": "geometry_msgs/msg/Twist"},
  {"name": "/scan",    "type": "sensor_msgs/msg/LaserScan"}
]}

list_nodes

すべての実行中ノードを一覧表示します。パラメータはありません。

{"nodes": ["/talker", "/listener", "/rosapi"]}

list_services

すべての利用可能なサービスを一覧表示します。パラメータはありません。

{"services": ["/rosapi/topics", "/rosapi/nodes", "/reset_odometry"]}

get_topic_snapshot

トピックにサブスクライブし、メッセージを収集し、サブスクライブを解除します。パラメータ:topic(必須)、count(デフォルト1)、timeout 秒(デフォルト5.0)、msg_type(オプション、通常はrosbridgeによって自動検出)。

入力:{"topic": "/chatter", "count": 2, "timeout": 3.0}

{"topic": "/chatter", "requested": 2, "received": 2,
 "messages": [{"data": "Hello World: 41"}, {"data": "Hello World: 42"}],
 "timed_out": false}

トピックがサイレントの場合、received は requested より少なく、timed_out は true です。ツールがタイムアウトより長くハングすることはありません。

publish_message (変更あり)

トピックをアドバタイズし、1つのJSONメッセージをパブリッシュします。パラメータ:topic、msg_type(完全なROS 2 タイプ、例:geometry_msgs/msg/Twist)、message(タイプに一致するJSONオブジェクト)。

入力:

{"topic": "/cmd_vel", "msg_type": "geometry_msgs/msg/Twist",
 "message": {"linear": {"x": 0.1, "y": 0.0, "z": 0.0},
             "angular": {"x": 0.0, "y": 0.0, "z": 0.2}}}

出力:{"published": true, "topic": "/cmd_vel", "type": "geometry_msgs/msg/Twist"}

call_service (変更あり)

任意のROSサービスを呼び出します。パラメータ:service(必須)、args(JSONオブジェクト、デフォルト {})、timeout 秒(デフォルト10.0)。

入力:{"service": "/rosapi/topic_type", "args": {"topic": "/scan"}}

{"service": "/rosapi/topic_type", "success": true,
 "values": {"type": "sensor_msgs/msg/LaserScan"}}

失敗した場合、ツールは発生させる代わりに {"success": false, "error": "..."} を返します。

send_action_goal (変更あり)

ROS 2 アクションサーバー(ナビゲーション、アーム動作など)にゴールを送信します。パラメータ:action_name、action_type(/action/ を含む完全なタイプ、例:nav2_msgs/action/NavigateToPose)、goal(JSONオブジェクト、デフォルト {})、timeout 秒(デフォルト30、最大120に制限)、wait_for_result(デフォルト true)。

入力:{"action_name": "/fibonacci", "action_type": "test_msgs/action/Fibonacci", "goal": {"order": 5}}

{"action": "/fibonacci", "goal_id": "send_action_goal:7", "success": true,
 "status": 4, "status_text": "succeeded",
 "values": {"sequence": [0, 1, 1, 2, 3, 5]},
 "last_feedback": {"partial_sequence": [0, 1, 1, 2, 3]}}

wait_for_result: false の場合、ツールは即座に {"goal_id": ..., "result_pending": true} を返します。その goal_id を cancel_action_goal に渡すと、後でゴールを停止できます。ROS 2 アクションをサポートする rosbridge_suite のバージョンが必要です。古いrosbridgeでは、ツールはハングする代わりにアップグレードを促すエラーを返します。

cancel_action_goal (変更あり)

以前に送信したアクションゴールをキャンセルします。パラメータ:action_name、goal_id(send_action_goal から)。

出力:{"cancel_sent": true, "action": "/navigate_to_pose", "goal_id": "send_action_goal:7"}

get_tf_tree

/tf と /tf_static を短時間リッスンして、ロボットのTF(座標変換)ツリーのスナップショットを取得します。パラメータ:timeout 秒(デフォルト2.0、最大10に制限)。

{"frame_count": 3,
 "frames": {
   "base_link": {"parent": "odom", "translation": {"x": 1.0, "y": 0.0, "z": 0.0},
                  "rotation": {"x": 0, "y": 0, "z": 0, "w": 1}, "source": "dynamic"},
   "laser":     {"parent": "base_link", "...": "...", "source": "static"}},
 "tree": {"odom": ["base_link"], "base_link": ["laser"]},
 "roots": ["odom"]}

get_camera_image

カメラトピックから1フレームをbase64として取得し、視覚対応モデルがロボットの見ているものを見られるようにします。パラメータ:topic(sensor_msgs/msg/CompressedImage トピック、例:/camera/image_raw/compressed を推奨)、timeout 秒(デフォルト5.0、最大30に制限)。

出力:{"topic": ..., "format": "jpeg", "data_base64": "...", "size_bytes": 51234}(生の Image トピックはさらに width/height/encoding を返します)。4MBを超えるフレームは返されません。ツールはメタデータと圧縮トピックを提案するエラーで応答します。

get_connection_status

接続状態と読み取り専用モードを報告します。パラメータはありません。

{"url": "ws://localhost:9090", "connected": true,
 "connected_since_unix": 1786903978.1, "active_subscriptions": [],
 "pending_service_calls": 0, "readonly": false}

会話例

あなた: ロボットは今、何を見ていますか?

エージェント: (list_topics を呼び出し、sensor_msgs/msg/LaserScan タイプの /scan を検出し、get_topic_snapshot を {"topic": "/scan", "count": 1} で呼び出す) レーザースキャナーは360の距離測定値を報告しています。最も近い障害物は、左約90度の方向に約0.4メートルです。真正面のスペースは少なくとも2.5メートル以上空いています。

あなた: わかりました、ゆっくり前進してください。

エージェント: (publish_message を {"topic": "/cmd_vel", "msg_type": "geometry_msgs/msg/Twist", "message": {"linear": {"x": 0.1}, "angular": {"z": 0.0}}} で呼び出す) 0.1 m/s の前進速度コマンドをパブリッシュしました。停止するタイミングを教えてください。ゼロ速度をパブリッシュします。

ビジョンと身体化AIのために

読み取り専用ツールのうちの2つは、視覚言語モデルをロボットの物理的現実に根付かせるために特に存在します:

  • get_camera_image は実際のカメラフレームをbase64として返します。視覚対応モデル(Claude、GPT-4o、またはVLAポリシーフロントエンド)は、何をすべきかを決定する前に文字通りロボットのカメラを通して見ることができます。

  • get_tf_tree はモデルにロボットの空間的骨格を提供します。どのフレームが存在するか(map、odom、base_link、camera、gripper)と、それらが互いにどのように配置されているか。

get_topic_snapshot(LiDAR、オドメトリ、ジョイント状態)および send_action_goal(ナビゲーション、マニピュレーション)と組み合わせることで、これは視覚と行動のエージェントが必要とする観察→推論→行動のループを、プレーンなWebSocket経由で、モデル側にROSインストール不要でカバーします。両方の知覚ツールは読み取り専用モードで動作するため、「見るだけで触らない」エージェントを安全に実行できます。

設定

環境変数

デフォルト

説明

ROSBRIDGE_URL

ws://localhost:9090

rosbridgeサーバーのWebSocket URL

ROSBRIDGE_MCP_READONLY

false

変更ツールを拒否(安全性を参照)

安全性

言語モデルに物理ロボットへの /cmd_vel のパブリッシュを許可することは、現実的なリスクです。ROSBRIDGE_MCP_READONLY=true を設定して読み取り専用モードで実行します。publish_message、send_action_goal、cancel_action_goal は拒否され、call_service は既知の読み取り専用 /rosapi イントロスペクションサービスの固定された許可リスト(topics、nodes、services、types、get_param、get_time、...)のみを許可し、リストにないもの(将来の未知の /rosapi サービスを含む)は拒否されます。読み取り専用の知覚ツール(get_topic_snapshot、get_tf_tree、get_camera_image)は引き続き機能します。実際のハードウェアでは、読み取り専用モードで開始することを強くお勧めします。詳細は 実ロボット安全チェックリスト と SECURITY.md の展開セキュリティモデルを参照してください。

プライバシーと法的情報

テレメトリなし、データ収集なし。 監査済み(2026-08):このパッケージが開く唯一のネットワーク接続は、設定した ROSBRIDGE_URL へのWebSocketです。分析、ホームコールバック、クラッシュレポート、隠れたHTTP呼び出しはなく、コードにはメッセージ内容のディスクへのログ記録は含まれていません。バンドルされたモックサーバーは 127.0.0.1 にのみバインドします。ツールによって返されるロボットデータは、排他的にMCPクライアントに送られます(MCPクライアントは選択したLLMにそれを転送します。その部分はお客様の管理下にあり、当社の管理下にはありません)。

ライセンスコンプライアンス。 すべてのランタイムおよび推移的依存関係は、このプロジェクトのMITライセンスと互換性のあるライセンスを保持しています。直接:fastmcp(Apache-2.0)、websockets(BSD-3-Clause)。主要な推移的:mcp(MIT)、pydantic(MIT)、starlette(BSD-3-Clause)、httpx(BSD-3-Clause)、anyio(MIT)、cryptography(Apache-2.0/BSD-3)。1つの推移的依存関係である certifi はMPL-2.0です。これはファイルレベルのコピーレフトであり、certifi自身のファイルの変更にのみ適用され、MITの使用と再配布と互換性があります。依存関係ツリーのどこにもGPL/AGPL/プロプライエタリコードはなく、このリポジトリ内のすべてのコードは、このプロジェクトのために書かれたオリジナル作品です。

FAQ

AIクライアントが実行されている場所にROSをインストールする必要がありますか? いいえ。Python 3.10+のみが必要です。ROSとrosbridgeはロボット上(またはDocker内、シミュレータ内)で実行されます。このサーバーはWebSocketを介してそれらと通信します。

ROS 1でも動作しますか? rosbridge v2プロトコルは同じであるため、基本的な操作はROS 1の rosbridge_server でも動作します。ROS 1タイプ名(std_msgs/String)を使用してください。CIでテストされているのはROS 2のみです。

エージェントが接続できないと言っています。 rosbridgeが実行されていること(ros2 launch rosbridge_server rosbridge_websocket_launch.xml)、ROSBRIDGE_URLが正しいホスト/ポートを指していること、ポート9090が到達可能であること(ファイアウォール)を確認してください。docs/内の各ガイドにはトラブルシューティングセクションがあります。

ロボットやシミュレーターなしで試せますか? はい — python -m rosbridge_mcp.mock_server 9090 を実行すると、ダミーのトピックを持つ偽のrosbridgeが起動し、ROSBRIDGE_URLを ws://localhost:9090 に設定します。

私のデータはどこかに送信されますか? サーバーは設定した ROSBRIDGE_URL にのみ接続します。トピックデータはMCPクライアントに返され、そのクライアントが使用しているLLMに転送されます — センサーデータは適切に扱ってください。

ロードマップ

ステージごとの目標、成果物、および各ステージに必要なリソースを含む段階的計画: ROADMAP.md を参照。ハイライト:v0.2 アクションクライアント + TF + カメラスナップショット(v0.2.0で完了)、v0.3 HTTPトランスポート + Dockerイメージ + rosbridge認証/TLS、v0.4 マルチロボットフリート + MCPリソース(URDF/マップ)、v1.0 安定API + 公式MCPレジストリ登録 + Gazebo/Isaac Simの例。

このプロジェクトを支援する

rosbridge-mcpは、一人の開発者がパートタイムで、初期段階で構築・維持しています。現在存在するものは実際に動作し、テスト済みです:11のツール(トピック、サービス、ROS 2アクション、TF、カメラスナップショットをカバー)、43の自動テスト(コミットごとにCIで実行)、5つのユーザーパスに対するシナリオ別ドキュメント、読み取り専用セーフティモードとサービス許可リスト、監査済みのゼロテレメトリコードベース。

ロードマップ を実現するために必要なもの(正直に述べます):

  • v0.3(デプロイとセキュリティ): パートタイムの開発週数、Dockerイメージビルド用の小さなクラウドVMまたはセルフホステッドランナー、そして最も重要なのは、rosbridge認証/TLS層のセキュリティに詳しいレビュアー。

  • v0.4(フリート): 2台以上の同時実行ロボットまたはシミュレーターインスタンスへのアクセス、および実際のロボティクス研究室からの設計フィードバック(学術または産業パイロットパートナーを探しています)。

  • v1.0(安定性とエコシステム): 持続的なメンテナー時間(週2日/四半期)、Isaac Sim検証用のRTXクラスGPUワークステーション1台(ロードマップ全体で主要なハードウェア要求)、およびオプションでハードウェアインザループCI用の低コストロボット($1~3k)。

あなたができる支援(難易度順):

  1. リポジトリにスターを付ける — 可視性は初期プロジェクトに貢献者を引き寄せるのに本当に役立ちます。

  2. 自分のロボットやシミュレーターで試す — ROSディストリビューションとrosbridgeバージョンを添えてIssueを開いてください。互換性レポートは、これを堅牢にするための最も安価な方法です。

  3. PRを投稿する — docs/development.md は10分でコードベースを説明しており、ロードマップの各項目はクレーム可能です。

  4. スポンサーまたはパートナーになる — あなたの研究室や企業がシミュレーター時間、ハードウェア、GPUワークステーション、または資金提供された開発時間を提供できる場合、github.com/hieutachi までご連絡ください。

関連リソース

ロボティクスを始めるなら、Robotics RL & UAV ebook は著者による強化学習とUAVロボティクスをカバーした補助学習リソースです。

コントリビューション

コントリビューションを歓迎します! CONTRIBUTING.md と開発ガイド を参照してください。コミットには署名オフ(DCO)をお願いします。

ライセンス

MIT — LICENSE を参照。依存ライセンスは寛容で互換性があります:fastmcp(Apache-2.0)、websockets(BSD-3-Clause)。GPL/AGPLの依存関係はありません。


Tóm tắt tiếng Việt

rosbridge-mcp là một MCP server cầu nối giữa AI agent (Claude Desktop, Cursor, VS Code...) và robot chạy ROS 2 thông qua giao thức rosbridge (WebSocket + JSON). Không cần cài ROS trên máy chạy AI client.

Tài liệu được chia theo từng kịch bản — chọn đúng hướng dẫn cho bạn trong thư mục docs/:

  • Dùng Claude Desktop — cấu hình JSON từng bước trên Windows/macOS/Linux

  • Dùng Cursor / VS Code — cấu hình mcp.json trong editor

  • Chưa có robot — chạy thử với Docker (ros:humble + rosbridge) hoặc TurtleBot3/Gazebo, hoặc mock server đi kèm

  • Có robot thật — checklist an toàn: bật ROSBRIDGE_MCP_READONLY=true trước, đọc /odom, /scan để hiểu robot rồi mới mở quyền publish /cmd_vel

  • Developer — kiến trúc code, cách thêm tool mới, chạy test với mock (không cần ROS)

11 tool: list_topics, list_nodes, list_services, get_topic_snapshot, publish_message, call_service, send_action_goal, cancel_action_goal, get_tf_tree, get_camera_image, get_connection_status. Bật ROSBRIDGE_MCP_READONLY=true để chặn mọi thao tác ghi (publish, action) khi làm việc với robot thật — các tool đọc (TF, camera, topic) vẫn hoạt động bình thường.

Tài liệu học kèm theo của tác giả: Robotics RL & UAV ebook — ebook về học tăng cường (reinforcement learning) và robot UAV.

Available Tools

11 tools
call_serviceA

Call any ROS service with JSON args and return the response values.

Rejected when ROSBRIDGE_MCP_READONLY is set, unless the service is on the fixed allowlist of known read-only /rosapi introspection services (topics, nodes, services, *_type, *_details, get_param, get_time, ...).

Args: service: Full service name, e.g. "/rosapi/topic_type" or "/reset_odometry". Discover names with list_services. args: JSON object matching the service request definition, e.g. {"topic": "/scan"} for /rosapi/topic_type. Default {}. timeout: Max seconds to wait for the response (default 10.0).

Returns {"service", "success": true, "values": {...}} on success, or {"service", "success": false, "error": "..."} on failure/timeout (with any related rosbridge status errors under "rosbridge_status").

Inputs: service (required), args, timeout. Returns: object

cancel_action_goalA

Cancel a previously sent ROS 2 action goal.

Rejected when ROSBRIDGE_MCP_READONLY is set.

Args: action_name: The action the goal was sent to, e.g. "/navigate_to_pose". goal_id: The goal_id returned by send_action_goal.

Returns {"cancel_sent": true, "action", "goal_id"}. The cancellation outcome (status "canceled") is reported by the action server via the goal's result. Requires rosbridge_suite with ROS 2 action support; on an older rosbridge the tool returns an error advising an upgrade.

Inputs: goal_id (required), action_name (required). Returns: object

get_camera_imageA

Grab one frame from a camera topic, for vision-capable models.

Read-only — works in readonly mode. Subscribes to topic, waits for one sensor_msgs/msg/CompressedImage (preferred) or sensor_msgs/msg/Image (raw) message, and returns the frame as base64. This is the bridge for VLM / vision-language-action workflows: the model can literally look through the robot's camera before deciding how to act.

Args: topic: Camera topic, e.g. "/camera/image_raw/compressed". Prefer a compressed topic — raw images are large and may exceed the size limit below. timeout: Max seconds to wait for a frame (default 5.0, clamped to at most 30.0).

Returns {"topic", "format" (e.g. "jpeg"), "data_base64", "size_bytes"}, plus "width"/"height"/"encoding" for raw images. Frames larger than 4 MB are not returned: the tool responds with an error suggesting a CompressedImage topic instead (raw metadata is still included).

Inputs: topic (required), timeout. Returns: object

get_connection_statusA

Report the current rosbridge connection status and readonly mode.

Takes no arguments. Returns {"url", "connected", "connected_since_unix", "active_subscriptions", "pending_service_calls", "readonly"}. The connection is opened lazily, so "connected" is false until another tool has been used. Check this first when other tools report errors.

Inputs: no named parameters. Returns: object

get_tf_treeA

Snapshot the robot's TF (coordinate transform) tree.

Subscribes briefly to /tf and /tf_static, merges every transform seen into a parent→child frame tree. Read-only — works in readonly mode. Useful for spatial reasoning: which frames exist (map, odom, base_link, camera, gripper, ...) and how they are connected.

Args: timeout: Seconds to listen for transforms (default 2.0, clamped to at most 10.0). Static transforms are latched and arrive immediately; dynamic ones need the robot to be publishing.

Returns {"frame_count", "frames": {child_frame: {"parent", "translation": {x,y,z}, "rotation": {x,y,z,w}, "source": "static"|"dynamic"}}, "tree": {parent: [children...]}, "roots": [frames with no parent seen]}. An empty tree usually means nothing publishes /tf on this robot (or the listen window was too short).

Inputs: timeout. Returns: object

get_topic_snapshotA

Read live data from a topic: subscribe, collect up to count messages (or until timeout seconds elapse), then unsubscribe.

Args: topic: Topic name including leading slash, e.g. "/scan" or "/odom". count: How many messages to collect (default 1, clamped to at most 100). Use more to observe a value changing over time. timeout: Max seconds to wait (default 5.0, clamped to at most 60.0). The tool never blocks longer than this, even on a silent topic. msg_type: Optional full message type, e.g. "sensor_msgs/msg/LaserScan". Usually omit it; rosbridge resolves the type of existing topics.

Returns {"topic", "requested", "received", "messages": [...], "timed_out", "timeout_s"}. If "timed_out" is true, nothing (or not enough) was published within the timeout — the topic may be silent, misspelled, or not exist. If the rosbridge connection drops mid-collection, the tool returns immediately with {"error", "connection_lost": true} instead of waiting out the timeout.

Inputs: topic (required), count, timeout, msg_type. Returns: object

list_nodesA

List all ROS nodes currently running on the robot.

Takes no arguments. Returns {"nodes": ["/talker", "/rosapi", ...]}. Useful to check whether an expected driver or controller is up.

Inputs: no named parameters. Returns: object

list_servicesA

List all ROS services currently available on the robot.

Takes no arguments. Returns {"services": ["/reset_odometry", ...]}. Use before call_service to find the exact service name.

Inputs: no named parameters. Returns: object

list_topicsA

List all ROS topics currently known to the robot, with message types.

Takes no arguments. Returns {"topics": [{"name": "/scan", "type": "sensor_msgs/msg/LaserScan"}, ...]}. Call this first to discover what the robot exposes before subscribing or publishing.

Inputs: no named parameters. Returns: object

publish_messageA

Publish a JSON message to a ROS topic (advertises the topic first).

CAUTION: this can move a real robot. Rejected when ROSBRIDGE_MCP_READONLY is set. Prefer reading relevant sensor topics (e.g. /scan, /odom) before commanding motion, and publish zero velocity to stop.

Args: topic: Target topic, e.g. "/cmd_vel". msg_type: Full ROS 2 message type with the "/msg/" segment, e.g. "geometry_msgs/msg/Twist" or "std_msgs/msg/String". message: JSON object whose fields match the message definition, e.g. {"linear": {"x": 0.1, "y": 0.0, "z": 0.0}, "angular": {"x": 0.0, "y": 0.0, "z": 0.2}} for a Twist. Omitted fields default to zero/empty on the ROS side.

Returns {"published": true, "topic": ..., "type": ...} on success. The tool briefly waits for rosbridge 'status' errors after publishing; if rosbridge rejected the message (e.g. wrong msg_type), the result includes "rosbridge_warnings" — treat those as the publish having failed.

Inputs: topic (required), message (required), msg_type (required). Returns: object

send_action_goalA

Send a goal to a ROS 2 action server via rosbridge.

CAUTION: actions typically make the robot move (navigation, arm motion). Rejected when ROSBRIDGE_MCP_READONLY is set.

Args: action_name: Action name, e.g. "/navigate_to_pose". action_type: Full action type with the "/action/" segment, e.g. "nav2_msgs/action/NavigateToPose". goal: JSON object matching the action's goal definition. Default {}. timeout: Max seconds to wait for the result when wait_for_result is true (default 30.0, clamped to at most 120.0). wait_for_result: If true (default), block until the action finishes and return its result. If false, return the goal_id immediately — use cancel_action_goal with that id to stop the goal later.

Returns, when waiting: {"action", "goal_id", "success", "status", "status_text" (succeeded/aborted/canceled/...), "values" (result fields), "last_feedback" (most recent feedback values, or null)}. When not waiting: {"action", "goal_id", "result_pending": true}.

Requires rosbridge_suite with ROS 2 action support (ops send_action_goal / cancel_action_goal). Against an older rosbridge the tool detects the rejected operation (via rosbridge status errors, or timeout as fallback) and returns an error advising to upgrade rosbridge_suite on the robot.

Inputs: action_name (required), action_type (required), goal, timeout, +1 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct operation in the ROS ecosystem: listing resources, reading topic data, publishing, calling services, managing action goals, retrieving TF and camera data, and checking connection status. There is no overlap, and the descriptions clearly differentiate their purposes.

    Naming Consistency4/5

    The tools follow a verb_noun pattern, but use a mix of verbs: 'list_' for discovery, 'get_' for retrieval, and 'publish_', 'call_', 'send_', 'cancel_' for actions. While all are descriptive and readable, the lack of a single unified prefix across all tools keeps it from being a perfect 5.

    Tool Count5/5

    With 11 tools, the server is well-scoped for a ROS bridge interface. Each tool covers a distinct aspect of ROS interaction (topics, services, actions, TF, camera), and the number is neither too sparse nor overwhelming.

    Completeness4/5

    The tool surface covers core workflows: discovery, reading and writing topics, calling services, managing actions, and retrieving transforms and images. A minor gap is the lack of a dedicated tool to list available actions, but this can be partially achieved via list_services or documentation.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables control of ROS/ROS2 robots through natural language commands by translating LLM instructions into ROS topics and services. Supports cross-platform WebSocket-based communication with existing robot systems without requiring code modifications.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI tools to interact with ROS2 robotics systems through natural language commands. Supports topic publishing/subscribing, service calls, message analysis, and auto-discovery of ROS2 interfaces for debugging and controlling robots.
      Mozilla Public 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Enables controlling robots in ROS environments through natural language, supporting topics, services, actions, and GUI tools.
      24
      36
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables large language models to interact with ROS robots seamlessly, allowing natural language control, real-time sensor monitoring, and autonomous task execution without modifying existing robot code.
      Apache 2.0