Skip to main content
Glama

mpremote-mcp

MCP server for MicroPython boards via mpremote.

Install

uvx mpremote-mcp

Or:

pip install mpremote-mcp
mpremote-mcp

Related MCP server: embedded-mcp

Configuration

Variable

Default

Description

MPY_PORT

auto-detect

Serial port override (e.g. COM3, /dev/ttyACM0)

MPY_BAUD

115200

Baud rate

Auto-detection connects to the first USB serial device found.

MCP client config example

{
  "mcpServers": {
    "micropython": {
      "command": "uvx",
      "args": ["mpremote-mcp"]
    }
  }
}

Tools

Tool

Description

exec

Execute MicroPython code via raw REPL

eval

Evaluate an expression and return result

run

Run a local .py file on device from RAM

device_info

Board name, MicroPython version, memory info

list_files

List files/directories on device

read_file

Read file from device

write_file

Write file to device

mkdir

Create directory

rmdir

Remove directory

rm

Remove file

touch

Create empty file

df

Filesystem storage stats

mip_install

Install MicroPython package

rtc_get

Read device real-time clock

rtc_set

Sync device RTC to host time

soft_reset

Soft-reset (Ctrl-D equivalent)

hard_reset

Hard reset (machine.reset())

enter_bootloader

Enter USB bootloader for flashing

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Lets AI assistants read, command, and debug microcontrollers over a serial connection via MCP. Provides tools for serial port discovery, reading serial output, sending commands, and decoding register values.
      7
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables interaction with ESP32/MicroPython boards via tools for flashing firmware, running REPL code, file management, and serial capture, with support for progress notifications, cancellation, and error handling.
      8
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to interact with serial devices via MCP tools, providing serial port discovery, connection, read/write, and status management, while sharing the same serial connection with a browser-based terminal.
      3
      Apache 2.0