Autoware MCP Server
Universal bridge between AI agents and Autoware autonomous driving stack, enabling AI-driven mission planning, real-time vehicle control, and adaptive decision-making.
README
Autoware MCP Integration
The Autoware MCP Server provides a universal bridge between ANY AI agent (Claude, GPT, Gemini, or custom agents) and the Autoware autonomous driving stack through the Model Context Protocol (MCP). This enables AI-driven mission planning, real-time vehicle control, and adaptive decision-making for autonomous vehicles.
Click the image above to watch the full autonomous driving demo
Key Features
- Universal AI Support: Works with any MCP-compatible AI agent (Claude, GPT, Gemini, etc.)
- Full Vehicle Control: Complete control over Autoware's autonomous driving features
- Real-Time Monitoring: Concurrent monitoring of perception, planning, and vehicle state
- Launch Management: Start, stop, and manage ROS2 launch sessions
- Safety Systems: Comprehensive safety validation at every level
- Mission Execution: Support for complex multi-step missions with waypoints
Quick Start
Prerequisites
- Ubuntu 22.04 LTS
- ROS2 Humble
- Python 3.10+
- Autoware 0.45.1
Installation
# Clone the repository
git clone https://github.com/your-org/autoware-mcp.git
cd autoware-mcp
# Install uv (Python package manager)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install dependencies with uv
uv sync --all-extras --dev
Basic Usage
- Start the MCP Server:
# Source your ROS2/Autoware workspace
source ~/autoware/install/setup.bash
# Start the MCP server
uv run autoware-mcp
- Connect with Claude Code:
Add to your Claude Code configuration file (
claude_desktop_config.json):
{
"mcpServers": {
"autoware": {
"command": "uv",
"args": ["run", "autoware-mcp"],
"env": {
"ROS_DOMAIN_ID": "your_domain_id"
}
}
}
}
- Example Prompts for AI Agents:
Since AI agents may not have specific knowledge about autonomous driving, use clear, step-by-step prompts:
To launch a planning simulation:
Please launch a planning simulation for Autoware using the MCP tools.
Use the start_launch tool with the planning_simulation_mcp.launch.py file.
To run an autonomous driving sequence:
Please run the complete autonomous driving sequence:
1. Initialize the vehicle's localization at the starting position
2. Clear any existing route and set a new route to the goal position
3. Change the operation mode to autonomous
4. Monitor the vehicle's progress until it reaches the destination
5. Stop the simulation when complete
To monitor vehicle state:
Please check the current vehicle state including position, speed, and route status
using the get_vehicle_state and get_current_route MCP tools.
Available MCP Tools
System Management
health_check- Get complete system health statuscheck_autoware_status- Check running Autoware componentsverify_ros2_environment- Verify ROS2 setup
Launch Management
start_launch- Start ROS2 launch filesstop_launch- Stop launch sessionslist_launch_sessions- View active sessionsget_session_status- Get detailed session information
Vehicle Control
set_operation_mode- Change between stop/autonomous/local/remote modesinitialize_localization- Set initial vehicle poseset_route- Set route to destinationset_route_points- Set route with waypointsget_current_route- Get current route status
Vehicle Monitoring
get_vehicle_state- Get vehicle position, speed, and kinematicsmonitor_operation_mode- Monitor current operation modemonitor_localization_state- Check localization statusmonitor_motion_state- Monitor motion readiness
ROS2 Interface
list_ros2_nodes- List all active ROS2 nodeslist_ros2_topics- List all ROS2 topicslist_ros2_services- List all ROS2 servicescall_ros2_service- Call any ROS2 servicepublish_to_topic- Publish to any ROS2 topicecho_topic_messages- Capture messages from topics
Documentation
For comprehensive documentation, please refer to the Developer Guide
Configuration
Create a configuration file config/custom.yaml:
mcp_server:
host: 0.0.0.0
port: 8080
autoware:
ros_domain_id: 42
ad_api_url: http://localhost:8888
safety:
max_velocity: 50.0 # m/s
max_acceleration: 3.0 # m/s²
emergency_deceleration: -8.0 # m/s²
Development
Running Tests
# Unit tests
pytest tests/unit -v
# Integration tests (requires Autoware)
pytest tests/integration -v
# Simulation tests
pytest tests/simulation -v
# All tests with coverage
pytest --cov=autoware_mcp --cov-report=html
Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
Safety Notice
WARNING: This system is designed for research and development purposes. Always ensure:
- A safety driver is present during real vehicle testing
- Emergency stop mechanisms are properly configured
- All safety validations are enabled
- Testing is conducted in controlled environments
Troubleshooting
Common Issues
- ROS2 Connection Issues:
export ROS_DOMAIN_ID=42
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
- MCP Server Not Responding:
- Check firewall settings
- Verify Autoware is running
- Check logs:
tail -f logs/mcp_server.log
- Performance Issues:
- Monitor resource usage:
htop,nvidia-smi - Check ROS2 topics:
ros2 topic hz /topic_name - Review latency metrics in Grafana dashboard
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Acknowledgments
- Autoware Foundation for the autonomous driving stack
- Model Context Protocol contributors
- ROS2 and Open Robotics community
Support
For issues and questions:
- GitHub Issues: Create an issue
- Documentation: Read the docs
- Community: Join our Discord
Roadmap
- [ ] Multi-vehicle coordination support
- [ ] Enhanced perception monitoring
- [ ] Cloud-based mission management
- [ ] V2X communication integration
- [ ] Advanced ML-based planning
- [ ] Simulation environment integration
Note: This project is under active development. APIs and features may change.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
