mcp server ros 2 for VS Code
io.github.wise-vision/mcp_server_ros_2
View ROS 2 nodes and topics, and call services and actions via MCP
client:VS Code
transport:stdio
runtime:oci
Install mcp server ros 2 in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "mcp-custom-prompts",
"description": "MCP_CUSTOM_PROMPTS",
"password": true
},
{
"type": "promptString",
"id": "mcp-prompts-local",
"description": "MCP_PROMPTS_LOCAL",
"password": true
},
{
"type": "promptString",
"id": "mcp-prompts-path",
"description": "MCP_PROMPTS_PATH",
"password": true
},
{
"type": "promptString",
"id": "mcp-prompts-module",
"description": "MCP_PROMPTS_MODULE",
"password": true
}
],
"servers": {
"mcp_server_ros_2": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/mcp/ros2:latest"
],
"env": {
"MCP_CUSTOM_PROMPTS": "${input:mcp-custom-prompts}",
"MCP_PROMPTS_LOCAL": "${input:mcp-prompts-local}",
"MCP_PROMPTS_PATH": "${input:mcp-prompts-path}",
"MCP_PROMPTS_MODULE": "${input:mcp-prompts-module}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs