mBlock MCP
Allows building and editing mBlock 5 block projects for Arduino Uno, including generating and injecting blocks into an open mBlock app.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mBlock MCPMake a sprite chase game"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mBlock MCP — let AI build with blocks, in your mBlock app
Download: get
mcp-for-mblock-windows-x64.zipfrom Releases — unzip it and you getmcp-for-mblock.exe+README.md. That's the whole thing. No Node.js, no installs, no setup screens.
It lets AI apps (Claude Desktop, Cursor, VS Code, Windsurf, Cline, OpenCode, Claude Code, Gemini CLI) build and edit mBlock 5 block projects — sprites, mBot, CyberPi/mBot2, Arduino Uno — and put blocks straight into your open mBlock app.
Setup (3 minutes, do once)
Step 1 — Plug it into your AI app. Double-click mcp-for-mblock.exe.
A window opens, sets everything up by itself (it backs up your existing settings first — nothing of yours is lost), and tells you what it did. Close the window.
Don't trust double-click? Same thing from a terminal:
mcp-for-mblock.exe --setupStep 2 — Restart your AI app. This is the step everyone misses: every app (Claude Desktop, Cursor, Windsurf, OpenCode, VS Code…) only reads its MCP setup when it launches. Fully quit it first — Claude Desktop hides in the system tray, so right-click → Quit — then open it again. Then ask it:
list my mBlock projects
A Welcome.mblock sample is already there. If it lists it, you're connected. ✅
Step 3 — Connect the mBlock app (optional, for live blocks).
You need this only if you want the AI to put blocks into your open mBlock window.
Without it, the AI still builds full .mblock files you open yourself.
Get the bridge file — either ask your AI "give me the mBlock bridge file", or run:
mcp-for-mblock.exe --get-bridgeOpen the mBlock 5 app on your computer.
Drag the file
mblock-bridge.mextinto the mBlock window. Done.Ask your AI "is the mBlock app connected?" — it should say yes. ✅
Related MCP server: scratch-mcp
Everyday use (just talk to your AI)
Say this | What happens |
Make a sprite chase game | AI builds the full project file |
Add a repeat-4-turn-15 stack to Sprite1 | AI adds the blocks |
Check my project for mistakes | AI validates every block link |
Put it in my open mBlock app and run it | AI injects + runs live (needs Step 3) |
My mBot should follow a line | AI builds the robot script |
Something's broken, what do I do? | AI runs a health check and tells you |
Your files live in Documents\mblock-projects. Open any .mblock in the mBlock app normally.
If something doesn't work
AI doesn't show any mBlock tools → you skipped restarting it in Step 1. Restart, then ask list my mBlock projects.
"Bridge offline" → the mBlock app isn't linked. Redo Step 3 (the
.mextdrag takes 5 seconds)."Project not found" → tell the AI the exact file name, or ask it to list projects first.
Blocks look wrong → ask the AI to validate the project — it finds bad links and typos itself.
Still stuck → ask the AI to run doctor and explain the result. Paste that output if you ask a human for help.
To remove everything: delete the exe, remove the mblock entry from your AI app's config (a .bak backup of the original sits next to it), and optionally delete Documents\mblock-projects.
Good to know
Everything runs on your own computer. Your projects never leave your machine (except to the AI app you already use).
No internet needed, except the AI app itself.
Works on Windows. macOS/Linux run the same server from source — see below.
For developers
Source is TypeScript + MCP SDK v2 (src/). Build & test:
npm install
npm run build
npm test
node scripts/smoke.mjsRebuild the exe: powershell -ExecutionPolicy Bypass -File scripts/build.ps1.
The exe is a Node SEA bundle; the mBlock-app bridge files are embedded in it
(src/bridge-assets.ts) and exported via --get-bridge. Full tool docs,
mcp.example.json, and CI live in this repo.
This server cannot be deployed
Maintenance
Related MCP Connectors
List, read, edit, and deploy your GenMB AI-generated apps from any MCP client.
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
- PromptOTOAuthcom.promptot
Manage, version, and publish LLM prompts with blocks, variables, and evaluations.
Create, edit, preview, and build Flutter apps via FlutterGo.AI cloud MCP (OAuth).
1
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to read, build, and edit 247afk scripts in real-time through a local WebSocket bridge. It allows for live manipulation of block editor content directly within the browser.830 npm3MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to programmatically edit Scratch .sb3 projects and preview changes live in TurboWarp Desktop via MCP tools and a live-reload bridge.1Mozilla Public 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create, compile, and run Scratch projects by editing plain text and using a live editor loop.10 npm1Mozilla Public 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control Blockbench for Minecraft 3D modeling, including project creation, cube placement, UV layout, and texture painting.GPL 3.0