PlatformIO logo

PlatformIO

Builds, flashes, monitors, tests, and diagnoses PlatformIO embedded projects through MCP.

Install PlatformIO

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "platformio": {
      "command": "uvx",
      "args": [
        "platformio.mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio platformio -- uvx platformio.mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 44 tools correctly ().

Overview

PlatformIO MCP server connects AI coding agents to PlatformIO projects, development boards, firmware builds, and serial devices. It can initialize projects, inspect boards and environments, compile firmware, upload it, run tests, monitor serial output, and analyze crashes or memory usage. Use it when an agent needs to work through an embedded development loop involving real hardware rather than editing source code alone. Safety policies can restrict flashing and serial writes, while upload and port errors return structured diagnostics.

Use cases

  • Initialize a PlatformIO project for a selected board and framework
  • Build firmware and return compiler errors with source locations
  • Flash a connected board and verify its boot message
  • Capture serial output and diagnose port ownership problems
  • Decode embedded crash dumps into functions and source lines

Key features

  • PlatformIO board and project discovery
  • Firmware build, upload, cleaning, and target execution
  • Managed serial monitoring with buffered reads and regex waits
  • Unity testing and static analysis
  • Crash backtrace decoding and firmware size reports
  • Package search and dependency management

Tools44

What PlatformIO lets your agent do. Expand a tool for its parameters.

Verified live~12.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 67d

What it can do

From the 44 tools this server returned when we ran it.

Can delete or modify data · 3Makes changes · 4Handles credentials · 1Makes network requests · 2Read-only tools · 37
Tool definitions changed on 2026-11-25. Review them if you approved this server earlier.
Network at startup2 connections
Files written at startup1

Observed 2026-11-25 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · platformio.mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10Stargazers on the source repository.
Last commit9d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed44Callable tools this server registers over MCP.
Directory activity9 viewsConfig copies, upvotes, and views on AllMCPs.

How PlatformIO works

What PlatformIO MCP server does

PlatformIO MCP server exposes PlatformIO workflows as MCP tools for embedded development. It covers project creation, board discovery, environment inspection, builds, uploads, cleaning, target execution, dependency management, unit tests, static analysis, serial communication, crash decoding, and firmware size analysis.

Board discovery searches PlatformIO's catalogue by identifiers such as MCU, vendor, or board name and returns hardware details including memory, clock speed, supported frameworks, connectivity, and debug probes. Project tools can create a new environment with pio project init, read platformio.ini, and calculate the compiler definitions, include paths, flags, and library directories used by a build.

How it works

The server runs PlatformIO commands and returns concise summaries alongside structured results. Build responses include parsed errors and warnings with source locations, RAM and flash usage, recent output, and a path to the complete log. Long output is kept in log files under ~/.platformio-mcp/logs, with the newest 200 files retained.

Serial monitoring supports both managed background sessions and one-shot captures. A session has a session ID, buffered output, cursor-based reads, optional regular-expression waits, and explicit stop operations. Upload and monitoring tools coordinate access to serial ports, and diagnosis can identify missing ports, permission problems, monitor sessions, or other processes holding a port.

pio_flash_and_verify combines firmware upload with boot-log observation. It returns a pass result when an expected expression appears, a failure when a configured crash pattern appears, or a timeout when neither condition occurs. Backtrace decoding resolves supported ESP32 and Cortex-M crash information against the matching firmware ELF.

Setup and configuration

The package requires Python 3.12 or newer and uv. Install it with the package's uvx platformio.mcp install command, selecting a supported client such as Claude Code, Claude Desktop, Cursor, Codex, Windsurf, or another MCP client. The installation can also bundle PlatformIO Core with --with-platformio; otherwise, the server finds platformio or pio on PATH or in ~/.platformio/penv.

For clients without a dedicated installer, generate an MCP configuration with uvx platformio.mcp install --print. The standard stdio entry uses uvx to launch platformio.mcp. PLATFORMIO_MCP_PIO can point to a specific PlatformIO executable. PLATFORMIO_MCP_POLICY controls hardware-changing operations with full, build_only, or read_only modes.

Tools and capabilities

  • Discover PlatformIO installation details, boards, devices, project environments, and build metadata.
  • Initialize projects, install or remove packages, inspect dependencies, and update packages within declared version ranges.
  • Build, clean, upload, run extra PlatformIO targets, and report compiler diagnostics and resource usage.
  • Start, read, write to, capture, diagnose, list, and stop serial monitor sessions.
  • Run Unity tests and static analysis with per-case results or severity-sorted defects.
  • Decode crash backtraces and produce flash/RAM size reports with symbols and source locations.

Limitations and notes

PlatformIO must be installed locally unless it is bundled during installation. Initial builds may take several minutes while platforms and toolchains download. The ELF used for crash decoding must come from the same build as the firmware on the device. Uploading, serial writes, and other flash-related operations are blocked by build_only and read_only policies. A serial monitor session holds its port and must be stopped before uploading, unless the upload operation is allowed to close the server's own sessions.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about PlatformIO

PlatformIO is an MCP server that connects AI agents to PlatformIO projects, boards, firmware builds, and serial devices. Its main tools initialize projects, build and upload firmware, monitor serial output, run tests, manage packages, diagnose ports, decode crash backtraces, and report flash and RAM usage.

Install it with `uvx platformio.mcp install` after installing `uv` and Python 3.12 or newer. Client-specific options include Claude Code, Cursor, Claude Desktop, Codex, and Windsurf. Use `--print` to generate a configuration for another MCP client, or add `--with-platformio` to bundle PlatformIO Core.

Yes, PlatformIO supports Cursor. Run `uvx platformio.mcp install --cursor` to configure it, or install the server as a plugin where supported. The server can then expose its PlatformIO project, build, upload, serial, testing, and analysis tools to the agent.

Stop the open monitor with `pio_monitor_stop`, or pass `stop_open_sessions=true` to `pio_upload` or a flash-related target. Upload refuses to use a port held by a monitor unless the server is allowed to close its own session. `pio_port_diagnose` can identify other processes holding the port.

Pass the ESP32 register dump and backtrace text to `pio_decode_backtrace`, or provide the session ID of an open monitor session. The tool resolves program-counter addresses against the environment's firmware ELF and returns functions, files, lines, inlined frames, crash cause, and reset reason.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPlatformIO AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/platformio?style=directory)](https://allmcps.com/mcp/platformio)
HTML Embed
<a href="https://allmcps.com/mcp/platformio"><img src="https://allmcps.com/api/badge/platformio?style=directory" alt="PlatformIO on AllMCPs" /></a>