A Python server that enables remote control of Bittle robots via Bluetooth using the Model Context Protocol (MCP), allowing users to programmatically send movement and pose commands.
A Python MCP (Model Context Protocol) server for controlling the Bittle robot via Bluetooth. This server exposes a set of commands to move, pose, and interact with Bittle using the MCP protocol.
bittle_mcp.log
Install uv (recommended for fast, reliable Python package management):
curl -Ls https://astral.sh/uv/install.sh | sh
Install dependencies:
uv pip install -r requirements.txt # or, if using pyproject.toml: uv pip install -r pyproject.toml
Configure Bluetooth: Ensure your Bittle robot is powered on and in Bluetooth pairing mode.
Run the MCP server:
uv pip run python server.py
The server will attempt to connect to Bittle and log status to bittle_mcp.log
.
Integrate with MCP tools:
mcp call move_forward mcp call sit mcp call rest
@mcp.tool()
in server.py
and are automatically registered with the MCP server.server.py
.bittle_mcp.log
.@mcp.tool()
for MCP exposure.bittle_mcp.log
for detailed error messages.MIT License
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!