# Ros2mcp

> Expose arbitrary ROS 2 services and topics as MCP tools and list topics as resources.

- **Type:** MCP server
- **Install:** `agentstack add mcp-ngres-ros2mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ngres](https://agentstack.voostack.com/s/ngres)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [ngres](https://github.com/ngres)
- **Source:** https://github.com/ngres/ros2mcp

## Install

```sh
agentstack add mcp-ngres-ros2mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

Expose arbitrary [ROS 2](https://www.ros.org/) services and topics as [MCP](https://modelcontextprotocol.io/) tools and list topics as resources.

The `mcp_server` node can translate any ROS topic and service into a MCP resource or tool (including source comments as parameter descriptions).

[](https://www.youtube.com/watch?v=yN2vLpf2-HE)

# Demo Setup

The demo can be run on Linux, macOS, and Windows using [Pixi](https://pixi.sh/dev/installation/).

1. Clone the repository.
```bash
git clone https://github.com/nico0302/ros2mcp.git
```

2. Start Gazebo and Rviz2 and the demo node:
```bash
pixi run demo-tb4
```
This might take a while on the first run as it downloads the necessary assets.

3. After Gazebo and Rviz2 are running, select the `2D Pose Estimate` tool in Rviz2 to set the robot's initial position by clicking in the center of the map and dragging to right:

4. Connect a MCP client to the demo server on `http://localhost:8080`
This project includes a simple MCP client that can be run with:
```bash
# make sure to set your OPENAI_API_KEY environment variable
export OPENAI_API_KEY=your_openai_api_key
pixi run demo-client
```

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ngres](https://github.com/ngres)
- **Source:** [ngres/ros2mcp](https://github.com/ngres/ros2mcp)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-ngres-ros2mcp
- Seller: https://agentstack.voostack.com/s/ngres
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
