ROS MCP Server
概述
ROS MCP 服务器旨在支持机器人执行复杂任务并有效适应各种环境,它提供一组函数,将用户通过 LLM 输入的自然语言命令转换为用于机器人控制的 ROS 命令。此外,通过利用rosbridge ,它可以配置为与ROS和ROS2系统兼容,其基于 WebSocket 的通信使其能够广泛适用于各种平台。
基于该项目的研究可以在下面链接的视频中找到。
Related MCP server: ROS MCP Server
支持的类型
几何信息/扭曲
sensor_msgs/图像
sensor_msgs/联合状态
特征
基于 WebSocket 的通用兼容性:使用 rosbridge 与 ROS 和 ROS2 系统进行通信,无论 ROS 版本如何,都能实现无缝集成。
跨平台支持:适用于 Linux、Windows 和 MacOS,适用于不同的开发和部署环境。
轻松与 LLM 和 AI 系统集成:自然语言命令可以通过 MCP 功能直接转换为机器人动作。
可扩展的功能集:通过扩展MCP工具接口,轻松添加新的机器人控制或传感器功能。
无需修改 ROS 节点:无需更改机器人的核心代码即可与现有的 ROS/ROS2 主题和服务进行交互。
本机 ROS/ROS2 命令兼容性:可选择支持使用本地 ROS/ROS2 库,因此您可以运行本机 ROS 命令和工具以及基于 WebSocket 的控制。
贡献
欢迎投稿!
无论您是修正拼写错误、添加新功能还是提出改进建议,我们都非常感谢您的帮助。
请遵循贡献指南以获取有关如何为该项目做出贡献的更多详细信息。
安装
通过 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.设置IP和端口来连接rosbridge。
打开
server.py并更改你的LOCAL_IP、ROSBRIDGE_IP和ROSBRIDGE_PORT。(ROSBRIDGE_PORT的默认值为9090)
2.运行rosbridge服务器。
活性氧 1
roslaunch rosbridge_server rosbridge_websocket.launchROS 2
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