PIO Agent (PlatformIO MCP)

PIO Agent builds, flashes and checks PlatformIO boards from an agent through the pio-agent CLI or an MCP server

  • 54 ★ on the repository
  • Last commit
  • MIT
MCP server

Broad access

Why this level

  • The agent flashes real hardware and opens the computer's serial ports
  • A bad flash can brick a board
All reasons and checks

jl-codes/platformio-mcp

Install

Manual install

npm install -g platformio-mcp

Then `pio-agent devices` and `pio-agent build --project-dir . --json`.

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • The agent flashes real hardware and opens the computer's serial ports
  • A bad flash can brick a board

This is third-party code. Review the repository files before installing.

What it does

PIO Agent is an execution layer for embedded development built on PlatformIO. The project ships an MCP runtime, the `pio-agent` CLI and an optional local dashboard. Commands cover board and device discovery, project setup, build, flash, serial monitoring, diagnostics and task orchestration. For agents there are project readiness checks, build error diagnostics by type, a safe GPIO pin audit, a flash and monitor loop with runtime assertions, board reports and exact project, environment and device bindings. The CLI is the primary path: after `pio-agent build --json` nothing stays running, and MCP remains an option. A Codex plugin and skills such as `pio-manager` exist.

Who it is for. Embedded developers on PlatformIO who want an agent to build and flash boards and analyze failures.

Good fit when

  • The agent builds the project and diagnoses a compile error by type with a fix hint
  • GPIO pins are checked for conflicts and unsafe modes before flashing
  • The board is flashed and the serial monitor checks assertions
  • The right board, environment and device are resolved with no manual pick

Not a fit when

  • No board is connected to the computer and PlatformIO is not installed
  • Flashing cannot be entrusted to an agent without supervision
  • The project is not on PlatformIO

Example request

Build the project for ESP32, audit the GPIO pins for safety and flash the board with a serial monitor check

MCP

Transport
stdio
Authentication
not required

Limitations

Node.js and PlatformIO are required. The main path is `npm install -g platformio-mcp`, then the commands `pio-agent devices` and `pio-agent build --project-dir . --json`. For MCP add an entry with `claude mcp add platformio -- node /path/to/platformio-mcp/build/index.js`, and each session starts its own server process. The agent flashes real hardware and opens serial ports, so confirm flashing by hand. Some packages of version 3.2.0 are described as release candidates and the documentation lists the status of each package name.

How to disable. Remove the package with `npm uninstall -g platformio-mcp` and delete the `platformio` entry from the client configuration.

FAQ

How do I install PIO Agent?

Run `npm install -g platformio-mcp`, then check `pio-agent devices` and build the project with `pio-agent build --project-dir . --json`.

Which is better, CLI or MCP?

The CLI is the primary path: nothing stays running between commands and the client only needs the `pio-agent` binary. MCP remains for clients that prefer it.

How do I connect the MCP server?

Run `claude mcp add platformio -- node /path/to/platformio-mcp/build/index.js`. For Codex there is `npx platformio-mcp install --codex` and a full plugin.

What does the GPIO audit check?

The `agent_safe_pin_audit` tool checks pins with the specific board in mind for unsafe assignments before flashing.

Why is it called PlatformIO MCP when the product is PIO Agent?

PIO Agent is the product and Codex plugin name, while PlatformIO MCP remains the runtime identity for existing installs, configuration keys and compatibility.

Discussion

No questions or reviews yet.

An MCP server that turns GitHub Projects v2 into a work queue for agents: they claim tasks, report progress and spend a budget.

MCP serverBroad access105Repository stars
Russian stack

A Pi Coding Agent profile for 1C development: ASK, PLAN and BUILD modes, specialized subagents, per-configuration knowledge and optional MCP tools

PluginBroad access21Repository stars

A terminal coding agent in Go on Google ADK: several model providers, subagents, LSP, memory, MCP and skills.

CLIBroad access224Repository stars

APM

APM (Agent Package Manager)

Editors’ pick

A package manager for AI agent context: skills, prompts and MCP servers install with one command across supported agents

CLIExtended access4.4KRepository stars

An MCP server and CLI in Go: the agent keeps an index of code and database schema in the repository, versions it in Git and reads it whole before each task

MCP serverBroad access1.9KRepository stars

An MCP server that indexes code with tree-sitter so an agent reads single symbols, not files, traces paths and weighs edits

MCP serverMinimal access76Repository stars

README in short

The README presents PIO Agent as an execution layer for embedded development, explains the dual name and the release status. A quick start through the CLI, MCP setup, agent capabilities and package documentation follow.

README badge

Report a problem