
利用MCP和ROS将Claude和GPT等AI模型与机器人连接起来。
概览
ROS-MCP-Server将大型语言模型(如Claude、GPT和Gemini)与机器人连接起来,实现双向通信,无需修改现有机器人源代码。 - →只需将 Rosbridge 节点添加到您现有的 ROS 设置中即可。- → LLM 既可以控制机器人,也能观察机器人上的所有动态。- → 发布和订阅主题,调用服务和动作,设置参数,读取传感器数据,实时监控机器人状态。- → 引导 LLM 发现可用的主题、服务、动作及其类型(包括自定义的),使其能够以正确的语法使用,无需手动配置。- →基于开放 MCP 标准构建,支持 Claude Code、Codex CLI、Gemini CLI、Claude Desktop、ChatGPT、Cursor 等。- → 兼容 ROS 2(Jazzy、Humble 等)和 ROS 1 发行版。 🏭 (视频)- MCP服务器将克劳德连接到一台生产工业机器人,仅有技术手册作为参考。
概述(AI 翻译)
ROS-MCP-Server将大型语言模型(如Claude、GPT和Gemini)与机器人连接起来,实现双向通信,无需修改现有机器人源代码。
为什么是ROS-MCP?
- 无需更改机器人源代码 →只需将
rosbridge节点添加到现有ROS设置中即可。 - 真正的双向通信 →大型语言模型既能控制机器人,也能观察机器人上发生的一切。
- 完整上下文 →发布和订阅主题,调用服务和动作,设置参数,读取传感器数据,实时监控机器人状态。
- 深度ROS理解 →引导LLM发现可用的主题、服务、动作及其类型(包括自定义的)——使其能够以正确的语法使用,无需手动配置。
- 支持任何基于开放MCP标准的MCP客户端→,支持Claude Code、Codex CLI、Gemini CLI、Claude Desktop、ChatGPT、Cursor等多种平台。
- 跨ROS版本运行 →兼容ROS 2(Jazzy、Humble等)和ROS 1发行版。
🎥 实际案例
🏭 示例 - 工业机器人末端执行器的AI代理诊断(视频)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
ROS MCP Server 🧠⇄🤖
ROS-MCP-Server connects large language models (such as Claude, GPT, and Gemini) to robots, enabling bidirectional communication with no changes to existing robot source code.
Why ROS-MCP?
- No robot source code changes → just add the
rosbridgenode to your existing ROS setup. - True two-way communication → LLMs can both control robots and observe everything happening on the Robot.
- Full context → publish & subscribe to topics, call services & actions, set parameters, read sensor data, and monitor robot state in real time.
- Deep ROS understanding → guides the LLM to discover available topics, services, actions, and their types (including custom ones) — enabling it to use them with the right syntax without manual configuration.
- Works with any MCP client → built on the open MCP standard, supporting Claude Code, Codex CLI, Gemini CLI, Claude Desktop, ChatGPT, Cursor, and more.
- Works across ROS versions → compatible across ROS 2 (Jazzy, Humble, and others) and ROS 1 distros.
🎥 Examples in Action
🏭 Example - AI Agent diagnosis of Industrial Robot End Effector (Video)
- The MCP server connects Claude to a production industrial robot, with only the technician manuals as reference.
- Claude discovers the robot’s custom topic and service types and their syntax on its own.
- From a single prompt to test the gripper, it reads the manuals, runs its own tests, finds an anomaly, and reports the root cause.
🤖 Example - Controlling “Wilson” with natural language (video)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →