S
shieldyguy/stm32-mcp
build, flash, debug stm32 projects
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
取自该仓库的安装命令
brew install open-ocd
解析自我们于 2026-11-05 抓取的该仓库 README;我们未执行过。
这条是仓库自己写的安装方式,不是 MCP 客户端配置,所以不生成 JSON。
配置项的键名以你的客户端为准:客户端与 CLI
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
- 安装
brew install open-ocd
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
brew install open-ocd。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# stm32-mcp
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
MCP server that lets Claude Code build, flash, and communicate with STM32 hardware.
stm32-mcp is pretty specific to how I tend to approach hardware development, but it is likely useful to others, too! It could be massaged to fit lots of workflows, but this is laser focused on mine (stlink-v3 mini, VCP on that header, STM32 microcontroller).
You can do things like:
> me: hey who is plugged in right now?
> claude: two unnamed probes connected to two unnamed PCBs
> me: k ask them who they are and give them a nickname based on their response
> claude: got it, do you want to nickname the probes too? your boards are 'doorbell A' and 'synthesizer B'
> me: yep, I put paint marker on those probes. call doorbell's 'blue' and the synth's 'red'
> claude: done. what's next?
> me: give them both VCP commands so they can talk to each other, then have the doorbell ask the synth on a date
> claude: thinking... done, synth declined. plenty of fish in the sea, doorbell!
MCP (Model Context Protocol) is an open standard that lets AI assistants like Claude use external tools. This server gives Claude the ability to compile your firmware, flash it to a board, talk to it over serial, and read memory via SWD. It is flexible and conversational.
> [!WARNING]
> This server gives an AI direct access to your compiler, debug probe, and serial ports. It can flash firmware, overwrite memory, and send arbitrary data to your hardware. This is powerful and useful, but it is not a sandbox. Know what's connected before you let it rip.
## Prerequisites
STM32CubeIDE installed at /Applications/STM32CubeIDE.app (macOS) or /opt/st/stm32cubeide (Linux)
Python 3.10+
OpenOCD (brew install open-ocd) — for flash, memory read/write, and live monitoring
open-source stlink tools (brew install stlink) — for probe enumeration
ST-Link connected via USB (for flash/board info)
Serial port available (ST-Link VCP or USB-UART adapter)
## Installation
bash
git clone https://github.com/shieldyguy/stm32-mcp.git
cd stm32-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
## Register with Claude Code
### Option A: CLI
bash
claude mcp add stm32 -- /path/to/stm32-mcp/.venv/bin/python -m stm32mcp.server
### Option B: Project config
Add to your project's .claude/settings.json or .claude.json:
json
"mcpServers": {
"stm32": {
"command": "/path/to/stm32-mcp/.venv/bin/python",
"args": ["-m", "stm32mcp.server"]
## Self-serve CLI
bin/ contains four thin wrappers over the same code the MCP
tools use
| Command | Usage |
| stm32-list | List connected probes + boards with nicknames |
| stm32-flash | stm32-flash [--noverify] [--noreset] |
| stm32-build | stm32-build [Debug\|Release] [--clean] |
| stm32-bf | stm32-bf [Debug\|Release] [--clean] |
| stm32-help | List these commands with their usage (auto-generated from the scripts) |
Add bin/ to your PATH:
bash
export PATH="/path/to/stm32-mcp/bin:$PATH"
Probe nicknames and board nicknames resolve.
Builds share the MCP's headless CubeIDE workspace lock, so a
stm32-build/stm32-bf racing an agent-driven build will queue behind it.
## Available Tools
### Build & Flash
| Tool | Description |
| stm32build | Compile firmware using CubeIDE headless builder |
stm32-mcp is pretty specific to how I tend to approach hardware development, but it is likely useful to others, too! It could be massaged to fit lots of workflows, but this is laser focused on mine (stlink-v3 mini, VCP on that header, STM32 microcontroller).
You can do things like:
> me: hey who is plugged in right now?
> claude: two unnamed probes connected to two unnamed PCBs
> me: k ask them who they are and give them a nickname based on their response
> claude: got it, do you want to nickname the probes too? your boards are 'doorbell A' and 'synthesizer B'
> me: yep, I put paint marker on those probes. call doorbell's 'blue' and the synth's 'red'
> claude: done. what's next?
> me: give them both VCP commands so they can talk to each other, then have the doorbell ask the synth on a date
> claude: thinking... done, synth declined. plenty of fish in the sea, doorbell!
MCP (Model Context Protocol) is an open standard that lets AI assistants like Claude use external tools. This server gives Claude the ability to compile your firmware, flash it to a board, talk to it over serial, and read memory via SWD. It is flexible and conversational.
> [!WARNING]
> This server gives an AI direct access to your compiler, debug probe, and serial ports. It can flash firmware, overwrite memory, and send arbitrary data to your hardware. This is powerful and useful, but it is not a sandbox. Know what's connected before you let it rip.
## Prerequisites
STM32CubeIDE installed at /Applications/STM32CubeIDE.app (macOS) or /opt/st/stm32cubeide (Linux)
Python 3.10+
OpenOCD (brew install open-ocd) — for flash, memory read/write, and live monitoring
open-source stlink tools (brew install stlink) — for probe enumeration
ST-Link connected via USB (for flash/board info)
Serial port available (ST-Link VCP or USB-UART adapter)
## Installation
bash
git clone https://github.com/shieldyguy/stm32-mcp.git
cd stm32-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
## Register with Claude Code
### Option A: CLI
bash
claude mcp add stm32 -- /path/to/stm32-mcp/.venv/bin/python -m stm32mcp.server
### Option B: Project config
Add to your project's .claude/settings.json or .claude.json:
json
"mcpServers": {
"stm32": {
"command": "/path/to/stm32-mcp/.venv/bin/python",
"args": ["-m", "stm32mcp.server"]
## Self-serve CLI
bin/ contains four thin wrappers over the same code the MCP
tools use
| Command | Usage |
| stm32-list | List connected probes + boards with nicknames |
| stm32-flash | stm32-flash [--noverify] [--noreset] |
| stm32-build | stm32-build [Debug\|Release] [--clean] |
| stm32-bf | stm32-bf [Debug\|Release] [--clean] |
| stm32-help | List these commands with their usage (auto-generated from the scripts) |
Add bin/ to your PATH:
bash
export PATH="/path/to/stm32-mcp/bin:$PATH"
Probe nicknames and board nicknames resolve.
Builds share the MCP's headless CubeIDE workspace lock, so a
stm32-build/stm32-bf racing an agent-driven build will queue behind it.
## Available Tools
### Build & Flash
| Tool | Description |
| stm32build | Compile firmware using CubeIDE headless builder |
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/shieldyguy-stm32-mcp/)
- 来源
- awesome · https://github.com/shieldyguy/stm32-mcp
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。