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
7.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.

Alternatives

R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
6.5K
5 points
S
Shadcn Ui MCP Server
An MCP server that provides shadcn/ui component integration for AI workflows, supporting React, Svelte, and Vue frameworks. It includes functions for accessing component source code, examples, and metadata.
TypeScript
13.7K
5 points
A
Annas MCP
The MCP server and CLI tool of Anna's Archive are used to search for and download documents on the platform and support access through an API key.
Go
9.8K
4.5 points
M
MCP Server Weread
The WeRead MCP Server is a lightweight service that bridges WeRead data and AI clients, enabling in - depth interaction between reading notes and AI.
TypeScript
12.8K
4 points
M
MCP Youtube
Download YouTube subtitles via yt - dlp and connect to Claude.ai through the MCP protocol for video content analysis
TypeScript
11.4K
4 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
32.2K
5 points
S
Supermemory
Supermemory is an AI-driven memory engine designed to provide contextual knowledge for LLMs by integrating personal data, enabling intelligent management and retrieval of information.
TypeScript
24.6K
5 points
S
Sequential Thinking MCP Server
A structured thinking server based on the MCP protocol that helps break down complex problems and generate summaries by defining thinking stages
Python
27.8K
4.5 points
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
18.9K
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
32.2K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
63.0K
4.3 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
21.7K
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#
27.0K
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
58.6K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
42.2K
4.8 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
19.9K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase