stm32_flash
Flash .elf/.bin/.hex to board via ST-Link SWD
How to use it
Project documentation lists stm32_flash for the Stm32 MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Stm32 MCP
claude mcp add stm32 -- /path/to/stm32-mcp/.venv/bin/python -m stm32_mcp.serverOther tools in Stm32 MCP (16)
Read recent entries from a live memory session
Start continuous background memory monitoring via SWD
Stop a live memory session
Open a serial connection
Close a serial connection
List serial ports (marks ST-Link VCP ports with nicknames)
Read buffered serial data
Send data and read response
Run multi-step send/delay/memory sequences in one call
Read ST-Link/MCU info (device ID, flash size, voltage)
Compile firmware using CubeIDE headless builder
Build + flash in one step (the 90% case)
Show all connected boards with nicknames and MCU IDs
Read memory by address or variable name (from ELF symbols)
Name a board (by MCU UID) or probe (by ST-Link SN)
Write memory by address or variable name