Dash Robot MCP Server
Enables controlling Wonder Workshop's Dash robot through Claude, supporting movements, sounds, lights, head movements, and photo capture.
README
Dash Robot MCP Server
A Model Context Protocol (MCP) server for controlling Wonder Workshop's Dash robot through Claude. This allows Claude to autonomously control Dash's movements, lights, sounds, and head movements, as well as capture photos using a webcam.
Features
Robot Control
- Movement: Move forward, turn left/right, turn around (calibrated for accuracy)
- Sounds: Play 40+ built-in sounds (animals, vehicles, beeps, custom recordings)
- Lights: Control eye brightness and RGB colors for neck and ear LEDs
- Head Movement: Control head yaw (-53° to 53°) and pitch (-5° to 10°)
- Connection Management: Connect, disconnect, and stop the robot
Photo Capture
- Capture photos using a webcam via a separate FastAPI server
- Photos are returned to Claude for visual analysis
Prerequisites
- Python 3.11 or higher
- Wonder Workshop Dash robot
- Bluetooth Low Energy (BLE) support on your computer
- Webcam (optional, for photo capture)
Installation
1. Clone the Repository
git clone https://github.com/jakesimonds/mcpleasework.git
cd mcpleasework
2. Install Dependencies
# Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install the bleak-dash library (Dash robot BLE control)
pip install git+https://github.com/mewmix/bleak-dash.git
# Install project dependencies
pip install -e .
3. Configure Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"Dash Robot": {
"command": "/path/to/your/venv/bin/uv",
"args": [
"run",
"--with",
"mcp[cli],requests,opencv-python,pillow",
"--with",
"git+https://github.com/mewmix/bleak-dash.git",
"mcp",
"run",
"/path/to/your/mcpleasework/server.py"
]
}
}
}
Replace /path/to/your/ with the actual paths on your system. To find the uv path:
which uv # macOS/Linux
where uv # Windows
4. Start the Photo Server (Optional)
If you want photo capture capabilities:
cd photoServer
pip install fastapi uvicorn opencv-python
uvicorn app:app --port 5001
Keep this running in a separate terminal.
Usage
Testing the Server
Use the MCP development inspector to test the server:
mcp dev server.py
Available Tools
Once configured in Claude Desktop, you can ask Claude to:
connect_to_dash()- Connect to your Dash robotmove_dash_forward(distance)- Move forward (distance in mm, default 1000)dash_turn_left()- Turn 90° leftdash_turn_right()- Turn 90° rightdash_turn_around()- Turn 180°dash_say(sound_name)- Play a sounddash_head_movement(yaw, pitch)- Move the headdash_change_lights(eye_value, neck_color, left_ear_color, right_ear_color)- Change LED colorstake_photo()- Capture a photo (requires photo server)get_available_sounds()- List all available soundsget_sound_descriptions()- Get descriptions of soundsget_movement_limits()- Get parameter limitsget_color_examples()- Get available colorsdisconnect_dash()- Disconnect from the robot
Example Prompts
"Connect to Dash and make him say hello"
"Move Dash forward 500mm, turn right, and change his lights to blue"
"Take a photo and tell me what you see"
"Make Dash do a little dance with sounds and lights"
Project Structure
mcpleasework/
├── server.py # Main MCP server with Dash control tools
├── photoServer/
│ └── app.py # FastAPI server for photo capture
├── photo/ # Directory for captured photos
├── scripts/
│ └── screenshot.py # Webcam utility script
├── pyproject.toml # Project configuration and dependencies
├── requirements.txt # Pinned dependencies
└── README.md # This file
Development
Running Tests
pytest
Code Formatting
This project uses ruff and black for code formatting:
ruff check .
black .
Pre-commit Hooks
Install pre-commit hooks:
pip install pre-commit
pre-commit install
Hardware Notes
Dash Robot Calibration
The turn functions are calibrated for accurate 90° and 180° turns:
dash_turn_left(): 123° at 72 dpsdash_turn_right(): 270° workaround (hardware issue with right turns)dash_turn_around(): 185° at 72 dps
These values may need adjustment based on your floor surface and robot's wheel condition.
BLE Connection
The robot uses Bluetooth Low Energy. Ensure your computer's Bluetooth is enabled and the Dash robot is powered on before attempting to connect.
Troubleshooting
Cannot connect to Dash
- Ensure Bluetooth is enabled
- Turn Dash off and on again
- Make sure no other device is connected to Dash
Photo server not responding
- Check that the photo server is running on port 5001
- Verify your webcam is accessible:
ls /dev/video*(Linux)
Import errors
- Ensure
bleak-dashis installed:pip install git+https://github.com/mewmix/bleak-dash.git - Activate your virtual environment
Credits
This project was originally forked from pamelafox's MCP Python demo template and has been extensively modified for Dash robot control.
- Dash Robot: Wonder Workshop
- bleak-dash Library: mewmix/bleak-dash
- MCP SDK: Anthropic
License
MIT License - see LICENSE file for details
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。