
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A Spring Boot application that implements the Model Context Protocol, exposing robot control commands as AI-callable tools that relay instructions over MQTT to an mBot2 robot.
Spring Boot MCP server for controlling an mBot2 robot via MQTT is cataloged as an MCP server attributed to deemkeen. A Spring Boot application that implements the Model Context Protocol, exposing robot control commands as AI-callable tools that relay instructions over MQTT to an mBot2 robot. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Spring Boot MCP server for controlling an mBot2 robot via MQTT are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
When an AI invokes a tool through the MCP server, the command is sent via MQTT to the robot, which executes it based on the received message.
README.md · fc91d7341ed9 · Fetched 2026-11-13 10:29:41 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
https://github.com/user-attachments/assets/a11d68c5-dc52-4dab-9741-bc1cf47e2ec9
This project demonstrates how to control an mBot2 robot using Spring AI and Model Context Protocol (MCP). With this setup, AI models can control a physical robot through simple natural language commands like "explore" or "turn left".
The system consists of:
The Spring application exposes robot control commands as AI-callable functions, allowing AI models to control the physical robot through natural language.
Run the included Docker Compose file to set up the MQTT broker:
cd mbotmcp/assets
docker-compose up -d
This creates a message queue that will relay commands between your app and robot.
Set the following environment variables:
MQTT_USERNAME=your_username # leave blank if not configured
MQTT_PASSWORD=your_password # leave blank if not configured
MQTT_SERVER_URI=tcp://your_server:1883
These tell your app how to connect to the MQTT broker.
To upload the Python script to your mBot2:
/assets directory in the repositorymbot-mqtt.py filessid = "<your wifi ssid>"
ssid_password = "<your wifi password>"
mqtt_ip = "<ip of the mqtt broker>"
mqtt_port = 1883
mqtt_user = "<your mqtt username>"
mqtt_password = "<your mqtt password>"
mvn clean package
mvn test -Dtest=ClientStdioTest
The BotService class defines all the MCP tools, your robot can understand:
mbotExplore() - Execute the 'explore' routinembotStop() - Stop the robotmbotBeep() - Make the robot beepmbotLeft() - Turn the robot leftmbotRight() - Turn the robot rightmbotForward() - Move the robot forwardmbotBackward() - Move the robot backwardOnce everything is working, you can integrate with LLM clients that support MCP. Personally, I would recommend Goose for this purpose. Just point these clients to your server, and they can autonomously control your robot based on natural language requests.
Example natural language commands:
@Tool annotationIf your robot starts planning world domination, the author accepts no responsibility. Just unplug it and run! 😂
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Spring Boot MCP server for controlling an mBot2 robot via MQTT from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mbotmcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.