MB

mergeos-bounties/ros2-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

12 stars 29 forks 品質 83 トレンド 23MIT

ros2-mcp — MCP server for AI agents to inspect and control ROS2

概要

is an MCP (Model Context Protocol) server so AI agents (Grok, Cursor, Claude, …) can graphs — topics, nodes, services, TF, actions — without hand-writing every ros2 CLI call. This installs the (ros2-mcp) and the (skill + MCP server from .mcp.json). After pip install "git+https://github.com/mergeos-bounties/ros2-mcp.git", point any MCP host at: — merge examples/claude_desktop_config.json into Claude MCP config. All packages speak (ros2-mcp serve). Default mode is (offline, no simulator/terminal/GIMP required). All packages ship with as the default. Parameter names and value: " " so MCP host transcripts and CI logs do not accidentally capture runtime configuration. Use ROS2_MCP_MODE=live only when a live ROS2 graph is available. Build a ROS2 Humble image with ros2-mcp installed into an isolated Python environment: Serve MCP over stdio from the container:

README

以下は原文 README の抜粋です。原文を見る。

ros2-mcp

ros2-mcp is an MCP (Model Context Protocol) server so AI agents (Grok, Cursor, Claude, …) can inspect and control ROS2 graphs — topics, nodes, services, TF, actions — without hand-writing every ros2 CLI call.

Product: mergeos-bounties/ros2-mcp


Install (one command)

pip install "git+https://github.com/mergeos-bounties/ros2-mcp.git" && grok plugin install mergeos-bounties/ros2-mcp --trust

This installs the Python CLI (ros2-mcp) and the Grok plugin (skill + MCP server from .mcp.json).

Check:

ros2-mcp version
ros2-mcp doctor
ros2-mcp demo
grok plugin list
grok mcp list

Local clone:

git clone https://github.com/mergeos-bounties/ros2-mcp.git
cd ros2-mcp
pip install -e ".[dev]"
grok plugin install . --trust

Other agents (stdio MCP)

After pip install "git+https://github.com/mergeos-bounties/ros2-mcp.git", point any MCP host at:

Field Value
command ros2-mcp
args ["serve"]
env ROS2_MCP_MODE=mock

Claude Desktop — merge examples/claude_desktop_config.json into Claude MCP config.

Cursor — merge examples/cursor_mcp.json.

Grok config.toml (manual, without plugin):

[mcp_servers.ros2_mcp]
command = "ros2-mcp"
args = ["serve"]
env = { ROS2_MCP_MODE = "mock" }

Or one-shot:

pip install "git+https://github.com/mergeos-bounties/ros2-mcp.git"
grok mcp add ros2-mcp -- ros2-mcp serve

Supported AI agents / hosts

Agent / Host MCP support Setup
Grok (CLI / TUI / Build) Yes grok plugin install mergeos-bounties/ros2-mcp --trust then pip install "git+https://github.com/mergeos-bounties/ros2-mcp.git"
Claude Desktop Yes Copy examples/claude_desktop_config.json into Claude MCP settings
Cursor Yes Merge examples/cursor_mcp.json into Cursor MCP config
Claude Code Yes stdio MCP: same command/args as Claude Desktop / Grok
VS Code (MCP / Continue / Cline) Yes Generic stdio server config pointing at ros2-mcp serve
Windsurf / Cascade Yes stdio MCP entry with ros2-mcp + serve
GitHub で README 全文を見る

インストール

docker run --rm ros2-mcp:humble demo
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "ros2-mcp": { "command": "ros2-mcp", "args": ["serve"], "env": { "ROS2_MCP_MODE": "mock" } } } }