Mbotmcp
This project uses Spring AI and the MCP protocol to achieve natural language control of the mBot2 robot. It includes a Spring Boot application, an MQTT message queue, and a Python script on the robot side, supporting AI calls for instructions such as exploration and turning.
2.5 points
5.4K

What is MBotMcp?

MBotMcp is an innovative system that allows you to control the mBot2 educational robot using everyday language (such as 'turn left' or 'explore the room'). It combines the natural language understanding ability of AI with physical robot control, implemented through the Spring framework and the MQTT communication protocol.

How to use MBotMcp?

Simply speak your instructions to the connected AI system, and the system will automatically convert them into commands that the robot can execute. For example, saying 'make the robot move forward and beep' will make the robot perform the corresponding actions.

Use cases

It is very suitable for educational demonstrations, research on the integration of AI and the Internet of Things, development of smart home prototypes, and any scenarios that require natural language control of robots.

Main Features

Natural Language Control
Control the robot using simple verbal or text instructions without programming knowledge.
MQTT Integration
Achieve reliable message delivery through the lightweight MQTT protocol.
Spring AI Integration
Leverage the powerful functions of the Spring framework to handle AI requests.
MCP Protocol Support
Use the Model Context Protocol to standardize the interaction between AI and devices.
Advantages
Control the robot without writing code
Intuitively demonstrate the combination of AI and the Internet of Things in educational scenarios
An open - source system that can be freely customized and extended
Support integration with multiple AI clients
Limitations
Requires the mBot2 hardware device
Depends on a WiFi network and an MQTT server
Currently only supports preset basic action instructions
Requires basic configuration knowledge to set network parameters

How to Use

Set up the MQTT server
Use the provided Docker Compose file to quickly start the MQTT message broker service.
Configure the robot
Upload the Python script to the mBot2 through the mBlock IDE and configure the WiFi and MQTT connection parameters.
Start the Spring application
After setting the environment variables, build and run the Spring Boot application.
Connect the AI client
Configure the AI client (such as Goose) to connect to the MCP server and start sending instructions.

Usage Examples

Classroom Demonstration
Demonstrate how AI understands natural language and controls physical devices in a programming class.
Smart Home Prototype
Simulate a robot performing tasks according to voice instructions in a smart home.
AI Research Experiment
Research the understanding and conversion abilities of different AI models for natural language instructions.

Frequently Asked Questions

What hardware devices are required to use this system?
Can more robot instructions be extended?
Which AI clients does the system support?
What if the robot loses connection?

Related Resources

Project GitHub Repository
Get the latest source code and documentation
mBot2 Official Documentation
Understand the robot's hardware specifications and basic programming
Spring AI Project
Learn about the Spring AI framework
Model Context Protocol Specification
Understand the technical details of the MCP protocol

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
14.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.8K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
15.6K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
44.5K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
20.3K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
45.6K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
15.0K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
63.1K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase