Skip to main content

MCP server for MicroPython boards via mpremote

Project description

mpremote-mcp

MCP server for MicroPython boards via mpremote.

Install

uvx mpremote-mcp

Or:

pip install mpremote-mcp
mpremote-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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpremote_mcp-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mpremote_mcp-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file mpremote_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: mpremote_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mpremote_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 22f280e195e017d08f380c3d9e337e8bb8a1e6779f325f6125b3dcc8b409d775
MD5 64e5dcaa612612b94a8549776d01e18c
BLAKE2b-256 397d3c1a608a0358037a3efa590603ffe8d2018de0c979a9149dfeb703a350dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for mpremote_mcp-0.1.0.tar.gz:

Publisher: release.yml on wannessels/mpremote-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mpremote_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mpremote_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mpremote_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 973bc97d98ffab9b0fbed9da4842261c918f48bf81c9ddcfb7ddb9ede0be5ea0
MD5 526a1cc34bf5aa378956faa68a138703
BLAKE2b-256 5813bbc991a9fa300472a003d1b4adc283ff855205d22718d4af0b150d364640

See more details on using hashes here.

Provenance

The following attestation bundles were made for mpremote_mcp-0.1.0-py3-none-any.whl:

Publisher: release.yml on wannessels/mpremote-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page