What are the system requirements?
Java 21, Maven, an mBot2 robot with mBlock IDE, an MQTT broker (can be run locally with Docker), and basic Java knowledge.
@deemkeen
基本情報
control your mbot2 with a power combo: mqtt+mcp+llm
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mbotmcp": {
"command": "path-to-java-executable",
"args": [
"-jar",
"/path-to-repo/mbotmcp/target/mbotmcp-0.0.1-SNAPSHOT.jar"
],
"env": {
"MQTT_USERNAME": "<mqtt server username>",
"MQTT_PASSWORD": "<mqtt server password>",
"MQTT_SERVER_URI": "mqtt server url"
}
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
MBotMcp is a Spring Boot application that uses Spring AI and the Model Context Protocol (MCP) to let AI models control a physical mBot2 robot through natural language commands. It acts as an MCP server, exposing robot control commands as AI-callable tools and relaying them via an MQTT broker to the robot.
First, set up an MQTT broker (e.g., with the included Docker Compose file), configure the required environment variables (MQTT_USERNAME, MQTT_PASSWORD, MQTT_SERVER_URI), and upload the mbot-mqtt.py Python script to your mBot2 after editing its WiFi/MQTT settings. Then build the Spring Boot application with mvn clean package and run the test client with mvn test -Dtest=ClientStdioTest. Finally, connect an LLM client that supports MCP (such as Goose) to the server to send natural language commands to the robot.
@Tool annotationJava 21, Maven, an mBot2 robot with mBlock IDE, an MQTT broker (can be run locally with Docker), and basic Java knowledge.
Set the environment variables `MQTT_USERNAME`, `MQTT_PASSWORD`, and `MQTT_SERVER_URI` in the Spring Boot app. Edit the uploaded `mbot-mqtt.py` script to include your WiFi credentials and MQTT broker details.
Any LLM client that supports the Model Context Protocol (MCP). The README specifically recommends using Goose.
Commands flow from the AI client through the MCP server to the MQTT broker, then to the mBot2 robot. No external cloud storage is used; all data stays on the local MQTT broker.
The author provides a humorous disclaimer: “If your robot starts planning world domination, the author accepts no responsibility. Just unplug it and run! 😂” The robot can be stopped with the `mbotStop()` command or by powering it off.
🚀 The fast, Pythonic way to build MCP servers and clients.
不止于 CSS

Model Context Protocol Servers

Connect your AI assistant to your own YOUB endurance training account. Read recorded activities with full analysis, planned sessions, race goals, wellness (HRV, sleep, resting HR) and your athletic profile. Create or mov
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
コメント