GO2 Sport MCP Server
Enables controlling a Unitree GO2 robot's motion (forward, backward, left, right, stop, stand up, and move with custom velocities) via MCP tools, using ROS2 commands.
README
GO2 运动控制脚本与 MCP 服务
当前目录现在同时提供:
- go2_motion_control.py:命令行脚本
- server.py:FastMCP 服务
- mcp_server.json:MCP 配置示例
底层都通过 ROS2 向 /api/sport/request 发布 unitree_api/msg/Request 控制 GO2。
命令行用法
cd /home/huang/xxx_go2sport
python3 go2_motion_control.py forward --duration 2
python3 go2_motion_control.py backward --duration 2
python3 go2_motion_control.py left --duration 2
python3 go2_motion_control.py right --duration 2
python3 go2_motion_control.py stop
python3 go2_motion_control.py move --vx 0.2 --vy 0.0 --vyaw 0.3 --duration 3
MCP 启动
stdio 模式:
cd /home/huang/xxx_go2sport
python3 server.py
或:
cd /home/huang/xxx_go2sport
./run_mcp_server.sh
HTTP 模式:
cd /home/huang/xxx_go2sport
python3 server.py --transport streamable-http --host 127.0.0.1 --port 8000
MCP 工具
go2_drive_directiongo2_movego2_stand_upgo2_stopgo2_motion_defaults
MCP 配置
示例文件见 mcp_server.json。
如果你要把它放进 Claude Code / Cursor 的 MCP 配置,可直接用:
{
"mcpServers": {
"go2-sport-control": {
"command": "python3",
"args": [
"/home/huang/xxx_go2sport/server.py"
],
"env": {
"PYTHONPATH": "/home/huang/xxx_go2sport",
"GO2_REQUEST_TOPIC": "/api/sport/request",
"GO2_DEFAULT_LINEAR_SPEED": "0.3",
"GO2_DEFAULT_ANGULAR_SPEED": "0.8",
"GO2_DEFAULT_DURATION": "2.0",
"GO2_DEFAULT_RATE": "10.0",
"GO2_STAND_UP_WAIT": "1.5"
}
}
}
}
控制协议说明
MOVE请求api_id = 1008STOP_MOVE请求api_id = 1003STAND_UP请求api_id = 1004MOVE参数格式:{"x": vx, "y": vy, "z": vyaw}
go2_drive_direction 在未显式传 speed 时,前进/后退默认使用 0.3 m/s,左转/右转默认使用 0.8 rad/s。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.