mpremote-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MPY_BAUD | No | Baud rate. | 115200 |
| MPY_PORT | No | Serial port override (e.g. COM3, /dev/ttyACM0). Default is auto-detect, which connects to the first USB serial device found. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Interact with a MicroPython board over serial. Use exec to run code, list_files/read_file/write_file for filesystem ops, device_info for board details, soft_reset to reset the board.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| execC | Execute MicroPython code on the board and return stdout. |
| enter_bootloaderB | Reset the board into USB bootloader mode for flashing. |
| soft_resetA | Soft-reset the MicroPython board (equivalent to Ctrl-D). |
| list_filesC | List files and directories on the device filesystem. |
| read_fileC | Read a file from the device filesystem. |
| write_fileC | Write content to a file on the device filesystem. |
| device_infoA | Get board name, MicroPython version, and memory info. |
| evalC | Evaluate a MicroPython expression and return its result. |
| runC | Run a local Python file on the device from RAM (not copied to filesystem). |
| mkdirC | Create a directory on the device filesystem. |
| rmdirC | Remove a directory on the device filesystem. |
| rmB | Remove a file on the device filesystem. |
| touchC | Create an empty file (or update access time) on the device. |
| dfA | Get filesystem storage statistics (free/used space). |
| mip_installC | Install a MicroPython package from micropython-lib or URL. |
| rtc_getA | Read the device's real-time clock. |
| rtc_setA | Sync the device's real-time clock to the host's current time. |
| hard_resetB | Hard reset the device (equivalent to machine.reset()). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 18 tools
Most tools map to clearly distinct resources and actions, especially filesystem operations and reset modes. The main overlap is between exec, eval, and run, which all execute code but differ in context and return behavior; descriptions help but could still cause occasional misselection.
All names use snake_case, but conventions are mixed: some are verb_noun (read_file, list_files), some are bare verbs/commands (exec, rm, touch, df), and some are noun_verb or adjective_noun (device_info, soft_reset, rtc_get). The names are readable, but there is no single predictable pattern.
Eighteen tools is slightly heavy but reasonable for a board-management server covering filesystem, execution, resets, packages, and RTC. Each tool appears to earn its place, though a few could arguably be consolidated.
The surface covers core device filesystem operations, code execution, resets, package installation, and RTC access well. Minor gaps like file rename/copy or explicit device discovery/connection management are absent, but most workflows can be worked around.