Enables connection to the Bittle robot via Bluetooth, allowing remote control of movement and poses through an MCP protocol interface
pyBittle-mcp-server
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.
Features
- Connects to Bittle via Bluetooth
- Exposes movement and pose commands (forward, backward, turn, sit, rest, etc.)
- Integrates with MCP tools for remote and programmatic control
- Logs all activity to
bittle_mcp.log
Requirements
- Python 3.10+
- uv for package management
- Bittle robot with Bluetooth enabled
- pyBittle library
- mcp-server library
Installation & Setup
- Install uv (recommended for fast, reliable Python package management):
- Install dependencies:
Usage
- Configure Bluetooth: Ensure your Bittle robot is powered on and in Bluetooth pairing mode.
- Run the MCP server:The server will attempt to connect to Bittle and log status to
bittle_mcp.log
. - Integrate with MCP tools:
- This server exposes commands via the MCP protocol, making them accessible to any MCP-compatible client or tool.
- You can use the MCP CLI or other MCP tools to discover and invoke available commands on your Bittle robot.
- Example (using MCP CLI):
- All available commands are decorated with
@mcp.tool()
inserver.py
and are automatically registered with the MCP server.
Development
- The main logic is in
server.py
. - Logging is configured to output to both console and
bittle_mcp.log
. - Commands are decorated with
@mcp.tool()
for MCP exposure.
Troubleshooting
- If the server fails to connect, check Bluetooth pairing and ensure no other process is using the Bittle connection.
- Review
bittle_mcp.log
for detailed error messages.
License
MIT License
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
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.
Related MCP Servers
- AsecurityFlicenseAqualityA Python implementation of an MCP server that enables secure, local Bitbucket integration for AI applications, providing tools for repository management, branch creation, file operations, issue tracking, and pull request creation.Last updated -103Python
- -securityAlicense-qualityA ModelContextProtocol server that enables Claude AI to detect and scan nearby Bluetooth devices, providing Bluetooth sensing capabilities to Claude through a compatible MCP interface.Last updated -1PythonMIT License
- -securityFlicense-qualityA Python-based server that enables AI assistants to control robots by integrating the Model Context Protocol (MCP) with ROS 2, allowing for natural language commands that translate into robot movement via the /cmd\_vel topic.Last updated -42Python
- AsecurityAlicenseAqualityA server built on the Model Context Protocol that enables controlling the Unitree Go2 robot using natural language commands, which are translated into ROS2 instructions for the robot to perform corresponding actions.Last updated -126PythonApache 2.0