
wise-vision/ros2_mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
wise-vision/ros2_mcp は、https://github.com/wise-vision/ros2_mcp.からインポートされたMCPサーバー候補です。
概要
wise-vision/ros2_mcp は、https://github.com/wise-vision/ros2_mcp.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
ROS2 MCPはオープンソース(MPL-2.0)Model Context Protocolサーバーで、AIエージェント(Claude、Cursor、Codexおよびその他のMCPクライアント)がROS 2のトピック、サービス、アクションをライブロボット上でリストアップ、購読、公開、呼び出しできるようにします。ROS 2と直接rclpyを介して通信します:rosbridgeなし、ロボットの変更なし。トランスポート:stdio(デフォルト)、Streamable HTTPおよびSSE(MCP仕様で非推奨)。
すべてのツールは無料でオープンソースです。実際のマシンに導入する手助けが必要なら、商用サポートも利用可能です。
⚡ クイックスタート(30秒、Docker)
DockerとMCPクライアントが必要です。ROS 2自体はインストールする必要はありません。イメージに含まれています。
他のMCPクライアントは、stdioコマンドとして[docker run -i --rm -e ROS2_MCP_READONLY=1 wisevision/ros2_mcp:jazzyを実行します。次に「ROS 2トピックをリスト」と「/chatterから3つのメッセージを読み取る」*を尋ねます。
ロボットが手元にない?まずはデモパブリッシャーを立ち上げる:
uvを好む?ROS 2がインストールされてソースが供給されているマシン(サーバーにはrclpyが必要;あなたのディストリビューションに合ったPython、例えばJazzyの3.12を使う)で:
エージェントが物を動かせるようにしたい場合にのみ、-e ROS2_MCP_READONLY=1(または--read-only]フラグ)を削除してください。セキュリティを参照してください。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
ROS2 MCP
ROS2 MCP is an open-source (MPL-2.0) Model Context Protocol server that lets AI agents (Claude, Cursor, Codex and any other MCP client) list, subscribe to, publish on and call ROS 2 topics, services and actions on a live robot. It talks to ROS 2 directly through rclpy: no rosbridge, no changes to your robots. Transports: stdio (default), Streamable HTTP and SSE (deprecated by the MCP spec).
Every tool is free and open source. Commercial support is available if you want help putting it on a real machine.
⚡ Quickstart (30 seconds, Docker)
You need Docker and an MCP client. ROS 2 itself does not have to be installed: the image contains it.
# Claude Code (use :humble for a ROS 2 Humble system). Read-only: the agent can look, not act.
claude mcp add ros2 -- docker run -i --rm -e ROS2_MCP_READONLY=1 wisevision/ros2_mcp:jazzy
Any other MCP client: run docker run -i --rm -e ROS2_MCP_READONLY=1 wisevision/ros2_mcp:jazzy as its stdio command. Then ask: “List the ROS 2 topics” and “Read three messages from /chatter”.
No robot at hand? Start a demo publisher first:
docker run -d --name demo-robot ros:jazzy-ros-base bash -c \
'source /opt/ros/jazzy/setup.bash && ros2 topic pub -r 2 /chatter std_msgs/msg/String "{data: hello from the robot}"'
Prefer uv? On a machine with ROS 2 installed and sourced (the server needs rclpy; use the Python that matches your distro, e.g. 3.12 on Jazzy):
source /opt/ros/jazzy/setup.bash
uvx --python /usr/bin/python3 --from git+https://github.com/wise-vision/ros2_mcp mcp_ros_2_server
インストール
docker run -d --name demo-robot ros:jazzy-ros-base bash -c \