Enables control of a two-track robot on Raspberry Pi hardware with Motor Hat, providing tools for independent track speed control, directional movement commands, and emergency stop functionality.
KentraBOT MCP Server
An MCP (Model Context Protocol) server for controlling a two-track robot. This server exposes tools to control motor speeds and direction, allowing LLMs to drive the robot.
Features
Movement Control: Independent control of left and right tracks.
High-Level Commands:
drivetool for easy direction control (forward, backward, left, right).Safety: Emergency
stoptool.Hardware Abstraction: Built with a modular driver system. Currently configured with a
Dummydriver for simulation/testing.
Installation
Prerequisites
Python 3.11 or higher
uv(recommended) orpip
Setup
Clone the repository:
git clone <repository-url> cd kentraBOT-MCPInstall dependencies: Using
uv:uv syncOr using standard
pip:python3 -m venv .venv source .venv/bin/activate pip install .
Usage
Running the Server
Start the MCP server using uv:
Or directly with python:
connecting to an MCP Client
Configure your MCP client (e.g., Claude Desktop, MCP Inspector) to run the server command above.
Example :
Tools
Tool | Description | Arguments |
| Set independent track speeds |
|
| Move in a specific direction |
|
| Stop both motors | None |
Hardware Configuration
Currently, the server is set to use the DummyRobot driver which logs actions to the console.
To use real hardware (e.g., Raspberry Pi with Motor Hat):
Implement a new driver in
src/kentrabot_mcp/drivers/.Inherit from
kentrabot_mcp.robot.Robot.Update
src/kentrabot_mcp/server.pyto initialize your new driver.