ROS MCP Server
概要
ROS MCPサーバーは、ユーザーがLLMを介して入力した自然言語コマンドをロボット制御用のROSコマンドに変換する機能群を提供することで、ロボットが複雑なタスクを実行し、様々な環境に効果的に適応するのを支援するように設計されています。さらに、 rosbridgeを利用することで、 ROSとROS2両方のシステムで動作するように構成されており、WebSocketベースの通信により、多様なプラットフォームに幅広く適用可能です。
このプロジェクトに基づく研究については、以下のリンク先のビデオをご覧ください。
Related MCP server: ROS MCP Server
サポートされているタイプ
ジオメトリメッセージ/ツイスト
センサーメッセージ/画像
センサーメッセージ/ジョイント状態
特徴
WebSocket ベースのユニバーサル互換性: rosbridge を使用して ROS および ROS2 システムの両方と通信し、ROS のバージョンに関係なくシームレスな統合を可能にします。
クロスプラットフォーム サポート: Linux、Windows、MacOS で動作し、さまざまな開発および展開環境に適しています。
LLM および AI システムとの簡単な統合: MCP 機能を介して自然言語コマンドをロボットのアクションに直接変換できます。
拡張機能セット: MCP ツール インターフェイスを拡張することで、新しいロボット制御機能やセンサー機能を簡単に追加できます。
ROS ノードの変更は不要: ロボットのコアコードを変更することなく、既存の ROS/ROS2 トピックおよびサービスと対話します。
ネイティブ ROS/ROS2 コマンドの互換性: オプションでローカル ROS/ROS2 ライブラリの使用をサポートしているため、WebSocket ベースの制御と並行してネイティブ ROS コマンドとツールを実行できます。
貢献
貢献を歓迎します!
タイプミスの修正、新しい機能の追加、改善の提案など、どのような場合でもご協力をお願いいたします。
このプロジェクトに貢献する方法の詳細については、貢献ガイドラインに従ってください。
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用のros-mcp-server自動的にインストールするには:
npx -y @smithery/cli install @lpigeon/ros-mcp-server --client claudeローカルにインストールする
uvインストール
uvをインストールするには、次のコマンドを使用します。
curl -LsSf https://astral.sh/uv/install.sh | shまたは
pip install uv仮想環境を作成してアクティブ化する(オプション)
uv venv
source .venv/bin/activateMCP サーバーの構成
MCP 設定を mcp.json に設定します。
"ros-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/ros-mcp-server",,
"run",
"server.py"
]
}Claude Desktop を使用する場合は、次のコマンドを使用して mcp.json を見つけることができます。
macOS/Linux
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsonウィンドウズ
code $env:AppData\Claude\claude_desktop_config.jsonMCP機能
関数のリストはMCPFUNCTIONS.mdにあります。
使い方
1. rosbridge に接続するための IP とポートを設定します。
server.pyを開き、LOCAL_IP、ROSBRIDGE_IP、ROSBRIDGE_PORTを変更します。(ROSBRIDGE_PORTのデフォルト値は9090です)
2. rosbridge サーバーを実行します。
ROS1
roslaunch rosbridge_server rosbridge_websocket.launchROS2
ros2 launch rosbridge_server rosbridge_websocket_launch.xml3. ros-mcp-serverをインポートした AI システムを実行します。
4.「ロボットを前進させる」と入力します。
5. rosbridge_serverとros topicを確認します。
rosbridge_serverros topic
シミュレーションテスト
NVIDIA Isaac Sim シミュレーション環境内で MOCA モバイル マニピュレータを使用した MCP ベースの制御。
Maintenance
Related MCP Servers
- FlicenseNot gradedqualityFmaintenanceA Python-based server that enables AI assistants to control robots by integrating the Model Context Protocol (MCP) with ROS 2, allowing for natural language commands that translate into robot movement via the /cmd\_vel topic.84
- AlicenseNot gradedqualityDmaintenanceEnables 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
- AlicenseNot gradedqualityDmaintenanceEnables robot navigation control and monitoring through natural language. Provides tools for robot positioning, navigation to coordinates, device status monitoring, task management, and emergency controls.MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to control a two-track robot through movement commands, providing independent track control, high-level directional driving (forward, backward, left, right), and emergency stop functionality.
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Intent execution engine for autonomous agent task routing
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/robotmcp/ros-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server