ROS MCP Server

MIT License
44
  • Apple
  • Linux

Integrations

  • Supports control of simulated robots in the NVIDIA Isaac Sim environment, demonstrated with the MOCA mobile manipulator

  • Enables robot movement control by sending linear and angular velocity commands to ROS-enabled robots through the rosbridge WebSocket interface

概述

ROS MCP 服务器旨在支持机器人执行复杂任务并有效适应各种环境,它提供一组函数,将用户通过 LLM 输入的自然语言命令转换为用于机器人控制的 ROS 命令。此外,通过利用rosbridge ,它可以配置为与ROSROS2系统兼容,其基于 WebSocket 的通信使其能够广泛适用于各种平台。

基于该项目的研究可以在下面链接的视频中找到。

支持的类型

  • 几何信息/扭曲
  • sensor_msgs/图像

安装

通过 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/activate

MCP 服务器配置

将 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.json

MCP 功能

获取主题

  • 目的:从机器人的 ROS 系统中检索可用主题列表。
  • 返回:主题列表(List [Any])

pub_twist

  • 目的:通过设置线速度和角速度向机器人发送运动命令。
  • 参数
    • linear :线速度(列表 [Any])
    • angular :角速度(列表 [Any])

pub_twist_seq

  • 目的:向机器人发送一系列运动命令,实现多步运动控制。
  • 参数
    • linear :线速度列表(List[Any])
    • angular :角速度列表(List [Any])
    • duration :每个步骤的持续时间列表(List [Any])

子图像

  • 目的:从机器人的角度或周围环境接收图像。
  • 参数
    • save_path :默认情况下,图像保存到Downloads文件夹。

如何使用

1.设置IP和端口来连接rosbridge。

  • 打开server.py并更改你的LOCAL_IPROSBRIDGE_IPROSBRIDGE_PORT 。( ROSBRIDGE_PORT的默认值为9090

2.运行rosbridge服务器。

活性氧 1

roslaunch rosbridge_server rosbridge_websocket.launch

ROS 2

ros2 launch rosbridge_server rosbridge_websocket_launch.xml

3. 运行任何已导入ros-mcp-server AI 系统。

4. 输入“使机器人向前移动。”。

5.检查rosbridge_serverros topic

  • rosbridge_server
  • ros topic

模拟测试

在 NVIDIA Isaac Sim 模拟环境中使用 MOCA 移动机械手进行基于 MCP 的控制。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

通过提供能够通过自然语言命令精确操纵线速度和角速度的功能来促进机器人运动控制,与 ROS 和 ROS2 兼容。

  1. 支持的类型
    1. 安装
      1. 通过 Smithery 安装
      2. 本地安装
      3. uv安装
      4. MCP 服务器配置
    2. MCP 功能
      1. 获取主题
      2. pub_twist
      3. pub_twist_seq
      4. 子图像
    3. 如何使用
      1. 1.设置IP和端口来连接rosbridge。
      2. 2.运行rosbridge服务器。
      3. 3. 运行任何已导入ros-mcp-server AI 系统。
      4. 4. 输入“使机器人向前移动。”。
      5. 5.检查rosbridge_server和ros topic 。
    4. 模拟测试

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        An MCP server integration that enables Cursor AI to communicate with Figma, allowing users to read designs and modify them programmatically through natural language commands.
        Last updated 20 hours ago
        19
        5,185
        3,528
        JavaScript
        MIT License
        • Apple
        • Linux
      • A
        security
        F
        license
        A
        quality
        Enables users to control the cursor in Figma through verbal commands using an agentic AI agent, streamlining the design process with a new interaction method.
        Last updated a month ago
        19
        5,185
        1
        JavaScript
      • -
        security
        F
        license
        -
        quality
        Enables Cursor AI to interact with Figma designs, allowing users to read design information and programmatically modify elements through natural language commands.
        Last updated a month ago
        TypeScript
      • -
        security
        F
        license
        -
        quality
        A server that integrates Blender with local AI models via the Model Context Protocol, allowing users to control Blender using natural language prompts for 3D modeling tasks.
        Last updated a month ago
        13
        Python
        • Linux
        • Apple

      View all related MCP servers

      ID: 8797jpadki