ESP32 DevOps MCP Server
Integrates with PlatformIO for ESP32 project scaffolding from templates, project structure and platformio.ini validation, library registry search and installed-library listing, and running PlatformIO unit tests with structured pass/fail output.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ESP32 DevOps MCP Server build and flash my ESP32 project, then monitor serial output"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ESP32 DevOps MCP Server
AI-powered ESP32 development automation for Claude Code
Transform Claude Code into your personal ESP32 DevOps engineer — 35 tools covering the full development lifecycle from project scaffolding to OTA deployment, plus the ESP32 as a general-purpose physical instrument for investigating whatever hardware you attach to it.
Features
Smart Serial Port Management
Auto-detect ESP32 devices
Manage favourite ports with custom names
Intelligent port recommendations
Port usage history
Build & Flash Automation
One-command build, flash, and monitor
Detailed memory usage analysis
Build error detection and reporting
Cross-platform support (Windows, macOS, Linux)
Performance Benchmarking
Memory leak detection
Loop timing analysis
WiFi signal quality monitoring
Comprehensive performance reports
Automated Testing
Boot verification
Heartbeat detection
Memory stability testing
Pre-deployment validation
Project Lifecycle (new in v1.1.0)
Scaffold new PlatformIO projects with starter templates (bare, WiFi, BLE, MQTT)
Validate project structure and
platformio.iniconfigurationSearch the PlatformIO library registry or list installed libraries
Run PlatformIO unit tests with structured pass/fail output
Log Analysis (new in v1.1.0)
Parse saved serial log files into typed entries (ESP-IDF E/W/I/D/V levels)
Detect Guru Meditation panics and stack traces automatically
Track free-heap min/max across a capture
OTA & Network (new in v1.1.0)
Package built firmware with MD5 and SHA-256 checksums, ready for OTA
Discover ESP32 devices on the local network via mDNS (avahi / dns-sd) with ARP fallback
The ESP32 as a Physical Instrument (v1.3.0)
Claude -> ESP32 DevOps MCP -> ESP32 DevKitC-32 -> your componentThe MCP does not know what is attached, and does not need to. It exposes the ESP32's real capabilities and lets Claude construct whatever investigation the component's observable behaviour allows.
esp32_hardware_execute— arbitrary operations you construct: I2C scan/read/write/write-read with any bytes, SPI transfers with any TX and full bus control, UART with any framing, GPIO configure/drive/pulse/multi-pin sampling, pulse-width and frequency measurement, ADC sampling, PWM stimulus, and stimulus-capture across multiple signals on one timebaseesp32_pin_capabilities— what every pin can actually do, what is reserved and why, what is currently allocated, and which agent capabilities are unavailableRegister writes as explicit experiments, with before/after state recorded
No component profile required for any of it
An operation is refused only when it is physically invalid on the chip — a pin that does not exist, one wired to flash, an input-only pin asked to drive, a parameter outside the silicon's range, a conflict, or malformed arguments. Never because nobody anticipated it. There is no allow-list of permitted commands.
Hardware Interrogation (v1.2.0)
Answer "what is this hardware and what does it actually support?" — systematically, with evidence.
Full ESP32 inventory: chip, revision, cores, flash, PSRAM, MAC, silicon features, reset reason, firmware identity
Interface discovery across I2C, SPI, UART, GPIO, ADC, DAC, PWM and touch
Six-state I2C scanning: responds / no-response / unstable / bus-error / address-conflict / reserved
SPI and UART probing with explicit, named, read-oriented profiles
Evidence-weighted component identification that reports AMBIGUOUS and UNIDENTIFIED honestly
READ-ONLY register inspection with decoded bitfields and reset-value comparison
Capability matrix separating DOCUMENTED / SOFTWARE / FIRMWARE / OBSERVED / TESTED / VERIFIED
Capability gap analysis: potential extensions, software gaps, undocumented observations, unexplored areas
Functional testing and performance characterisation that distinguishes measured from documented maxima
Full experiment lifecycle with machine-readable, reproducible reports
Ten component profiles out of the box — NFC, IMU, ADC, DAC, GPIO expander, display, EEPROM, radio, CAN, GNSS
Component profiles are optional knowledge, not permission. A profile accelerates investigation by naming registers, decoding bitfields and supplying expected responses. A missing profile entry means UNKNOWN, not FORBIDDEN — everything remains reachable through the generic primitives.
A datasheet claim is never a verified capability. Every value carries its evidence source and confidence, and anything that cannot be determined is returned as
UNKNOWNrather than guessed.
See docs/HARDWARE-INTERROGATION.md for the architecture, capability model, safety model and a worked PN532 example.
Related MCP server: MTIB MCP Server
Installation
Prerequisites
Node.js 18+
Python 3.x
PlatformIO CLI (
pip install platformio)FirmwareToolkit (required for benchmarking/testing features)
pyserial(installed byrequirements.txt; required for hardware interrogation)
Install from npm
npm install -g @midas/esp32-devops-mcpInstall from source
git clone https://github.com/JosephR26/esp32-devops-mcp.git
cd esp32-devops-mcp
# Install Python dependencies
pip install -r requirements.txt
# Install npm dependencies and build
npm install
npm run build
npm linkConfiguration
Claude Desktop
Add to your Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"esp32-devops": {
"command": "node",
"args": ["C:\\Users\\YOUR_USERNAME\\Projects\\esp32-devops-mcp\\dist\\index.js"],
"env": {
"FIRMWARE_TOOLKIT_PATH": "C:\\Users\\YOUR_USERNAME\\Projects\\FirmwareToolkit"
}
}
}
}Linux:
{
"mcpServers": {
"esp32-devops": {
"command": "node",
"args": ["/home/YOUR_USERNAME/projects/esp32-devops-mcp/dist/index.js"],
"env": {
"FIRMWARE_TOOLKIT_PATH": "/home/YOUR_USERNAME/projects/FirmwareToolkit"
}
}
}
}macOS:
{
"mcpServers": {
"esp32-devops": {
"command": "node",
"args": ["/Users/YOUR_USERNAME/Projects/esp32-devops-mcp/dist/index.js"],
"env": {
"FIRMWARE_TOOLKIT_PATH": "/Users/YOUR_USERNAME/Projects/FirmwareToolkit"
}
}
}
}For Claude Code (CLI), copy .mcp.json from the repo root into your project directory. See INSTALL.md for full setup details.
Environment Variables
Variable | Description |
| Path to your FirmwareToolkit installation. Required for benchmarking and testing tools. |
Quick Start
Example Conversations with Claude
"List all available ESP32 ports"
→ Uses esp32_list_ports
"Create a new WiFi project called sensor_node"
→ Uses esp32_create_project (template: wifi)
"Build my ESP32 project"
→ Uses esp32_build
"Flash to COM3"
→ Uses esp32_flash with port COM3
"Run a full build and flash cycle"
→ Uses esp32_full_cycle
"Check for memory leaks"
→ Uses esp32_detect_memory_leaks
"Test my firmware before deployment"
→ Uses esp32_validate_deployment
"Parse the serial log I captured earlier"
→ Uses esp32_parse_logs
"Package the firmware for OTA update"
→ Uses esp32_generate_ota_image
"Find ESP32 devices on my network"
→ Uses esp32_list_network_devicesSkills & Claude Code Integration
Claude Code skills let Claude
auto-activate the right tools based on what you ask. This repo ships six skills in
.claude/skills/ — copy them to ~/.claude/skills/ (global) or keep them in
.claude/skills/ (project-only).
ESP32 DevOps skills
Skill | Trigger examples | MCP tools used |
| "flash the firmware", "upload to board", "build and flash" |
|
| "test firmware", "benchmark", "check memory leaks", "validate deployment" |
|
| "which port is my ESP32", "set default port", "list serial ports" |
|
| "what is this component", "scan the I2C bus", "what does this module support", "capability gaps", "investigate this unknown chip" |
|
Example invocations
/flash-target-device
→ Builds and flashes the current PlatformIO project to the recommended port.
/flash-target-device --port /dev/ttyUSB1
→ Flashes to a specific port.
"Run a full performance benchmark on the current firmware."
→ Auto-activates /run-firmware-tests → calls esp32_benchmark (60 s).
"Quick bench on COM4."
→ Auto-activates /run-firmware-tests → calls esp32_quick_benchmark(port="COM4").Installing skills
# Global (all projects)
cp .claude/skills/*.md ~/.claude/skills/
# Project-only (already in place if you cloned this repo)
# .claude/skills/ is already configuredCLI vs Agent SDK: The
allowed-toolsfrontmatter field enforces tool restrictions in Claude Code CLI. When using the Anthropic Agent SDK, pass the same list via theallowedToolsoption inAgentOptions.
Available Tools
Serial Port Management
esp32_list_ports
List all available serial ports with detection status, favorites, and recommendations.
No parameters required.
esp32_detect_ports
Auto-detect ESP32 devices on serial ports.
No parameters required.
esp32_get_recommended_port
Get the recommended serial port based on priority: default > last used > auto-detected.
No parameters required.
esp32_set_default_port
Set the default serial port for future operations.
{
"port": "COM3"
}Parameter | Type | Required | Description |
| string | Yes | Serial port name (e.g. |
esp32_add_favorite_port
Add a port to favorites with an optional custom name.
{
"port": "COM3",
"name": "Main Dev Board"
}Parameter | Type | Required | Description |
| string | Yes | Serial port name |
| string | No | Custom label for this port |
Build & Flash
esp32_build
Build ESP32 firmware using PlatformIO with detailed output including memory usage.
{
"projectPath": "./my-project",
"environment": "esp32dev"
}Parameter | Type | Required | Description |
| string | No | Path to PlatformIO project (defaults to current directory) |
| string | No | PlatformIO environment name (uses project default if omitted) |
esp32_flash
Flash compiled firmware to an ESP32 device.
{
"projectPath": "./my-project",
"port": "COM3"
}Parameter | Type | Required | Description |
| string | No | Path to PlatformIO project |
| string | No | Serial port to flash to (uses recommended port if omitted) |
esp32_full_cycle
Complete development cycle: build → flash → monitor in one command.
{
"projectPath": "./my-project",
"port": "COM3"
}Parameter | Type | Required | Description |
| string | No | Path to PlatformIO project |
| string | No | Serial port (uses recommended port if omitted) |
esp32_clean
Clean build artifacts and cache for a PlatformIO project.
{
"projectPath": "./my-project"
}Parameter | Type | Required | Description |
| string | No | Path to PlatformIO project (defaults to current directory) |
Performance & Benchmarking
esp32_benchmark
Run a comprehensive performance benchmark (memory, loop timing, WiFi signal).
{
"port": "COM3",
"duration": 60,
"baudRate": 115200
}Parameter | Type | Required | Description |
| string | No | Serial port (uses recommended port if omitted) |
| number | No | Duration in seconds (default: |
| number | No | Baud rate (default: |
esp32_quick_benchmark
Quick 30-second performance check.
{
"port": "COM3"
}Parameter | Type | Required | Description |
| string | No | Serial port (uses recommended port if omitted) |
esp32_detect_memory_leaks
Extended memory leak detection test (5-minute default).
{
"port": "COM3",
"duration": 300
}Parameter | Type | Required | Description |
| string | No | Serial port (uses recommended port if omitted) |
| number | No | Test duration in seconds (default: |
Firmware Testing
esp32_test_firmware
Run automated firmware tests: boot verification, heartbeat detection, memory stability.
{
"port": "COM3",
"baudRate": 115200
}Parameter | Type | Required | Description |
| string | No | Serial port (uses recommended port if omitted) |
| number | No | Baud rate (default: |
esp32_validate_deployment
Pre-deployment validation — runs the full test suite and reports deployment readiness.
{
"port": "COM3"
}Parameter | Type | Required | Description |
| string | No | Serial port (uses recommended port if omitted) |
Project Lifecycle
esp32_create_project
Scaffold a new PlatformIO ESP32 project with a starter template.
{
"name": "sensor_node",
"board": "esp32dev",
"template": "wifi"
}Parameter | Type | Required | Description |
| string | Yes | Project name (letters, numbers, |
| string | No | Parent directory (defaults to cwd) |
| string | No | PlatformIO board ID (default: |
| string | No |
|
esp32_validate_project
Validate a PlatformIO project structure and report missing files or misconfigurations.
{
"projectPath": "./sensor_node"
}Parameter | Type | Required | Description |
| string | No | Path to project (defaults to cwd) |
esp32_list_libraries
Search the PlatformIO library registry or list installed libraries.
{
"query": "DHT sensor",
"installed": false
}Parameter | Type | Required | Description |
| string | No | Search term |
| boolean | No | List installed libs instead of searching registry (default: |
esp32_run_tests
Run PlatformIO unit tests and return structured per-suite pass/fail results.
{
"projectPath": "./sensor_node",
"environment": "esp32dev",
"filter": "test_sensor*"
}Parameter | Type | Required | Description |
| string | No | Path to project (defaults to cwd) |
| string | No | PlatformIO environment to test |
| string | No | Test name filter pattern (e.g. |
Log Analysis
esp32_parse_logs
Parse a saved ESP32 serial log file into structured entries with severity classification, panic detection, and heap tracking.
{
"logPath": "./logs/capture_2026-05-09.txt"
}Parameter | Type | Required | Description |
| string | Yes | Path to the log file |
Returns each log line classified by level (ERROR, WARN, INFO, DEBUG, VERBOSE), plus a summary with error/warning/panic counts and heap min/max.
OTA & Network
esp32_generate_ota_image
Package the built firmware.bin for OTA deployment — returns the image path, size, MD5, and SHA-256.
{
"projectPath": "./sensor_node",
"environment": "esp32dev",
"outputPath": "./releases"
}Parameter | Type | Required | Description |
| string | No | Path to project (defaults to cwd) |
| string | No | PlatformIO environment (auto-detected if omitted) |
| string | No | Directory to copy the OTA image into |
esp32_list_network_devices
Discover ESP32 devices on the local network via mDNS, with ARP table fallback.
{
"timeout": 5000
}Parameter | Type | Required | Description |
| number | No | Discovery timeout in ms (default: |
Uses avahi-browse on Linux, dns-sd on macOS. Falls back to the ARP table on Windows or when mDNS tools are unavailable.
Hardware Interrogation
All of these require the interrogation agent firmware (
firmware/interrogation-agent/) running on the target, andpyserialon the host. See docs/HARDWARE-INTERROGATION.md.
esp32_hardware_inventory
Comprehensive ESP32 inventory: chip family, model, revision, architecture, cores, CPU frequency, flash, PSRAM, MAC, silicon features, reset reason, boot info, application identity and version, SDK/framework, PlatformIO environment, serial interface, USB-UART bridge, and GPIO/ADC/DAC/PWM/touch/timer/I2C/SPI/UART counts.
Every field carries its confidence and evidence source. Live agent readings are
FIRMWARE_REPORT; datasheet peripheral counts are ESP32_CATALOG / DOCUMENTED.
Anything undetermined comes back UNKNOWN.
Parameter | Type | Description |
| string | Serial port (optional) |
| string | Directory to read |
esp32_interface_discovery
Survey I2C, SPI, UART, GPIO, ADC, DAC, PWM and TOUCH — available controllers, pins, current configuration, configured peripherals, conflicts and warnings. Read-only: no GPIO is configured and no pin is driven.
Parameter | Type | Description |
| string | Serial port (optional) |
| string[] | Restrict the survey (optional) |
esp32_i2c_scan
Six-state address scan: RESPONDS, NO_RESPONSE, UNSTABLE, BUS_ERROR,
ADDRESS_CONFLICT, RESERVED_SKIPPED. Returns hex and decimal address, ACK result,
response timing, scan duration, errors and bus errors. With fingerprint: true, each
responder gets a safe plain read (no command bytes) repeated twice to detect conflicts.
Address-based profile matches are LOW confidence and flagged addressOnly — an I2C
address never identifies a device.
Parameter | Type | Default | Description |
| string | — | Serial port (optional) |
| number | 0 | I2C controller index |
| number | board default | Bus pins |
| number | 100000 | 1 kHz – 1 MHz |
| number | 8, 119 | Address range |
| number | 3 | Probes per address (1–8); more detects unstable devices |
| boolean | true | Safe read-only fingerprinting of responders |
esp32_spi_discovery
Probes SPI using explicit named profiles only — IDLE_READ, ZERO_READ, JEDEC_ID —
or the safe probes of a named component profile. Arbitrary command sequences are not
supported by design. All-0x00 / all-0xFF responses are flagged degenerate (a floating
MISO line), not reported as data.
A cs pin is required — this tool never asserts an unspecified chip-select.
Parameter | Type | Default | Description |
| number | required | Chip-select GPIO |
| number | board default | Bus pins |
| number | 0 | SPI mode 0–3 |
| number | 1000000 | 10 kHz – 40 MHz |
| string | MSB_FIRST |
|
| string[] |
| Named probe profiles |
| string | — | Component profile whose SPI probes to run |
esp32_uart_discovery
Passive-first UART interrogation: raw bytes, hex, ASCII where valid, per-packet
timestamps and boundaries, repeated patterns, baud clues and protocol candidates
(NMEA 0183, UBX, AT, PN532 framing). scanBauds tries common rates passively.
mode: "ACTIVE" requires a named component whose profile declares what may be sent.
Parameter | Type | Default | Description |
| number | required | RX GPIO |
| number | — | TX GPIO (ACTIVE mode only) |
| number | 1 | UART 1 or 2 (UART0 carries the agent link) |
| number | 9600 | 300 – 3000000 |
| number | 3000 | Capture duration, max 30000 |
| string | PASSIVE |
|
| boolean | false | Passively try common baud rates |
esp32_component_identify
Identifies a component from bus address, safe probe responses, register and protocol signatures, response patterns and user-supplied markings. Returns the likely component, alternatives, evidence, confidence and method.
Address-only identifications are capped at LOW. Two close candidates are reported as
ambiguous. When nothing scores above threshold, identified is null — the least-bad
candidate is never promoted.
Parameter | Type | Default | Description |
| string | I2C |
|
| number | — | I2C address the device responded on |
| string[] | all | Restrict to these profile ids |
| string[] | — | Text printed on the physical part |
| string | BASIC | Identification probe depth |
esp32_component_probe
The core interrogation tool. Runs the full pipeline at a chosen depth and returns identification, connectivity, probe results, register inspection, capability matrix, consistency analysis, anomalies, modes, protocols, timing and a reproducibility record.
Depth | Adds |
| Connectivity, identification, interface |
| Configuration, known registers, modes, protocols, capability matrix |
| Every safe documented register, feature discovery, timing |
| Repeated measurement, consistency, fingerprinting, anomalies, gap analysis |
FORENSIC means deeper observation, not destructive action. No depth enables a write.
esp32_register_inspect
READ-ONLY inspection of a profile's documented registers. Returns address, name, raw value, hex, binary, decoded bitfields with meanings, reset value, current value, whether it changed from reset, documentation reference and confidence.
Write-only, clear-on-read and unsafe-marked registers are skipped with the reason stated. There is no write path at any depth.
Parameter | Type | Description |
| string | required — profile id, part number or alias |
| (string|number)[] | Names or addresses (optional; reads all safe ones) |
| — | Bus configuration |
esp32_component_capabilities
Builds the capability matrix — DOCUMENTED / SOFTWARE / FIRMWARE / OBSERVED /
TESTED / VERIFIED with confidence and evidence — and derives the gaps:
POTENTIAL_EXTENSION, SOFTWARE_GAP, UNDOCUMENTED_OBSERVATION, UNVERIFIED_CLAIM,
UNEXPLORED. Runs offline against documentation alone when no hardware is attached.
Parameter | Type | Default | Description |
| string | required | Profile id, part number or alias |
| boolean | false | Skip hardware; documentation tier only |
| string[] | — | Capabilities the target firmware exposes (cannot be discovered from the bus) |
| string | DEEP | Depth for the live probe pass |
esp32_component_test
Runs the profile's functional tests. Each records objective, configuration, procedure,
expected result, observed result, pass/fail, evidence, confidence and duration. A passing
test promotes its capability to VERIFIED.
Parameter | Type | Default | Description |
| string | required | Profile id, part number or alias |
| string[] | all | Test ids or names |
| string | STANDARD | Depth gate for which tests may run |
esp32_component_benchmark
Measures response latency, transaction time, throughput, polling rate, read consistency, error rate and stability, with min/max/mean/median/standard deviation.
Separates measuredMaximum (what this setup sustained — a floor on the hardware
capability) from documentedMaximum (the datasheet figure, unverified). Never claims a
hardware limit from a measurement.
Parameter | Type | Default | Description |
| string | required | Profile id, part number or alias |
| string[] | all | Benchmark ids or names |
| number | profile default | Capped at the profile limit |
esp32_hardware_experiment
Full experiment lifecycle — PREPARE → VERIFY CONFIGURATION → EXECUTE → OBSERVE → CAPTURE → VALIDATE → ANALYSE → REPEAT → REPORT. Returns objective, hypothesis, expected result, safety constraints, per-phase records, every raw observation, telemetry status, consistency across repetitions, validation, findings, anomalies, capability implications, conclusion, confidence and a full reproducibility record.
Parameter | Type | Default | Description |
| string | required | What the experiment establishes |
| string | — | Profile whose safe probes the procedure draws on |
| string | — | Recorded and validated against |
| object[] | profile probes | Ordered steps naming safe probes |
| number | 1 | 1–50; >1 drives consistency analysis |
| string[] | — | Additional constraints to record |
| object[] | — | Telemetry the experiment requires |
Architecture
esp32-devops-mcp/
├── src/
│ ├── index.ts # MCP server entry point (35 tools)
│ ├── tools/
│ │ ├── serial.ts # Serial port management
│ │ ├── build.ts # Build & flash tools
│ │ ├── benchmark.ts # Performance tools
│ │ ├── test.ts # Firmware testing tools
│ │ ├── project.ts # Project lifecycle tools (v1.1.0)
│ │ ├── logs.ts # Log analysis tools (v1.1.0)
│ │ ├── ota.ts # OTA & network tools (v1.1.0)
│ │ ├── hardware.ts # Inventory, interfaces, bus discovery (v1.2.0)
│ │ ├── component.ts # Identify, probe, registers, capabilities (v1.2.0)
│ │ └── execute.ts # General-purpose execution, pin capabilities (v1.3.0)
│ ├── hardware/ # Component-agnostic interrogation engine (v1.2.0)
│ │ ├── operations.ts # Arbitrary operations, silicon-validated (v1.3.0)
│ │ ├── session.ts # Port resolution, agent detection, pin safety
│ │ ├── transport.ts # Injectable HardwareTransport
│ │ ├── probe.ts # Declarative probe execution
│ │ ├── identify.ts # Evidence-weighted identification
│ │ ├── capability.ts # Capability model + gap analysis
│ │ ├── registers.ts # Read-only register decoding
│ │ ├── patterns.ts # Byte patterns, ASCII, statistics
│ │ ├── evidence.ts # Confidence derivation, UNKNOWN handling
│ │ ├── experiment.ts # Experiment lifecycle
│ │ ├── esp32-catalog.ts # Static datasheet data per ESP32 family
│ │ ├── registry.ts # Profile registry + validation
│ │ └── profiles/ # Component profiles (pure data)
│ ├── utils/
│ │ ├── exec.ts # Command execution
│ │ ├── parser.ts # Output parsing
│ │ └── validation.ts # Input validation
│ └── types/
│ ├── index.ts # TypeScript types
│ └── hardware.ts # Interrogation types (v1.2.0)
├── scripts/
│ └── hw_bridge.py # pyserial bridge to the on-target agent (v1.2.0)
├── firmware/
│ └── interrogation-agent/ # PlatformIO agent firmware (v1.2.0)
├── tests/ # node:test suites, mocked hardware (v1.2.0)
├── docs/
│ └── HARDWARE-INTERROGATION.md
└── package.jsonTesting
npm test # compiles src + tests, runs node:test — no physical hardware required269 tests across 43 suites cover bus discovery, identification, register decoding, capability classification, confidence handling, the experiment lifecycle, generic arbitrary operations on every interface, investigation with no component profile, physical pin validation, and the failure paths (malformed responses, timeouts, absent agent, no device, unstable device, ambiguous identification).
Security
Input validation on all parameters
No shell injection vulnerabilities
Safe command execution with sanitization
Timeout protection for long-running operations
Hardware interrogation safety
The constraints that remain are the ones that are physically real:
Reserved SPI-flash pins (GPIO6–11 on the classic ESP32) refused — driving them corrupts execution
Pins outside the family's range refused — they do not exist
Input-only pins refused for output roles — no output driver in the silicon
PWM frequency × resolution bounded by the 80 MHz LEDC source clock
Bus clocks, payload sizes and sample counts bounded by the peripheral and the agent's buffers
SPI chip-select and UART RX/TX must be named explicitly — no pin is ever chosen implicitly
UART0 refused — it carries the agent link
Conflicting pin roles and malformed arguments refused
Reported rather than refused: strapping pins (usable, but their reset level selects boot mode), and a pin driven in one operation and sampled in another.
Not implemented, by design: credential extraction, firmware readout, flash/NVS access, mass targeting. Note what is not on that list — register writes, arbitrary bus transactions, GPIO driving and stimulus generation are all supported, because they are how a component is actually investigated.
Voltage levels are never assumed. Level shifting and supply compatibility remain the operator's responsibility; the MCP cannot detect a mismatch.
Troubleshooting
Python not found
Install Python 3.x and ensure it's in your PATH.
Serial port not detected
Check USB connection
Install drivers (CP210x, CH340)
Try a different USB port
Build fails
Verify PlatformIO is installed:
pio --versionCheck
platformio.iniexists in the project directoryEnsure the correct environment name is used
Benchmark timeout
Increase the
durationparameterCheck serial connection stability
Verify the baud rate matches your firmware
MCP server not loading in Claude Desktop
Confirm you restarted Claude Desktop after editing the config
Verify the path in the config points to
dist/index.jsCheck Claude Desktop logs at
%APPDATA%\Claude\logs\(Windows) or~/Library/Logs/Claude/(macOS)
Roadmap
OTA image packaging with checksums (v1.1.0)
Project scaffolding and validation (v1.1.0)
Serial log analysis with panic detection (v1.1.0)
Network device discovery via mDNS (v1.1.0)
Hardware interrogation and component capability discovery (v1.2.0)
Component profile system with ten built-in profiles (v1.2.0)
Capability matrix and gap analysis (v1.2.0)
Experiment orchestration with reproducible reports (v1.2.0)
General-purpose arbitrary hardware operations (v1.3.0)
GPIO stimulus, PWM generation, timing measurement and multi-signal capture (v1.3.0)
Per-pin capability reporting and silicon-level operation validation (v1.3.0)
Multi-device parallel testing
CI/CD pipeline integration
Custom test scenario definitions
Contributing
Contributions welcome!
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
License
MIT License — see LICENSE for details.
Author
JosephR26
GitHub: @JosephR26
Acknowledgments
Built on Model Context Protocol
Powered by PlatformIO
Designed for Claude Code
Showcased on LobeHub MCP Marketplace
Available Tools
35 toolsesp32_add_favorite_portC
Add a serial port to favorites with optional custom name
Inputs: port (required), name.
esp32_benchmarkC
Run comprehensive performance benchmark on ESP32 firmware (memory, loop timing, WiFi)
Inputs: port, baudRate, duration.
esp32_buildC
Build ESP32 firmware using PlatformIO with detailed output including memory usage
Inputs: environment, projectPath.
esp32_cleanC
Clean build artifacts and cache
Inputs: projectPath.
esp32_component_benchmarkA
STAGE 13 (PERFORMANCE CHARACTERISATION). Measures response latency, transaction time, throughput, polling rate, repeated-read consistency, error rate and communication stability for a component. Reports min/max/mean/median/standard deviation and separates the MEASURED maximum (what this setup actually sustained, a floor on the hardware) from the DOCUMENTED maximum (the datasheet figure, unverified). It never claims a hardware limit from a measurement.
Inputs: component (required), cs, rx, tx, +15 more.
esp32_component_capabilitiesA
STAGE 14-16 (CAPABILITY MATRIX, DOCUMENTED vs OBSERVED vs VERIFIED, GAP ANALYSIS). Builds the capability matrix: for every capability, whether it is DOCUMENTED, SOFTWARE SUPPORTED, FIRMWARE EXPOSED, OBSERVED, TESTED and VERIFIED, with confidence and evidence. Derives the gaps: POTENTIAL_EXTENSION (documented + software + not exposed by firmware — a development opportunity, NOT a verified capability), SOFTWARE_GAP (documented, no driver), UNDOCUMENTED_OBSERVATION (seen but undocumented), UNVERIFIED_CLAIM and UNEXPLORED. Runs offline against documentation alone when no hardware is attached.
Inputs: component (required), cs, rx, tx, +16 more.
esp32_component_identifyB
STAGE 6 (COMPONENT IDENTIFICATION). Identifies a component from bus address, safe probe responses, chip/manufacturer/part/revision IDs, register signatures, protocol signatures, response patterns and user-supplied markings. Returns the likely component, alternatives, evidence, confidence and identification method. An identification resting only on a bus address is capped at LOW confidence, and two close candidates are reported as AMBIGUOUS — an uncertain identification is never reported as certain.
Inputs: cs, rx, tx, scl, +15 more.
esp32_component_probeA
CORE INTERROGATION TOOL (stages 6-11). Runs the full pipeline against one component at a chosen depth. BASIC: connectivity, identification, interface. STANDARD: + configuration, known registers, supported modes, protocols, capability matrix. DEEP: + every safe documented readable register, configuration and status state, feature discovery, timing. FORENSIC: + repeated measurements, consistency checks, response fingerprinting, undocumented-but-observed behaviour, anomaly detection and capability gap analysis. FORENSIC means deeper observation, NOT destructive action — no depth enables a register write. Raw bytes are preserved alongside every interpretation, and the report includes a full reproducibility record.
Inputs: cs, rx, tx, scl, +16 more.
esp32_component_testA
STAGE 11-12 (SAFE FUNCTIONAL TESTING, TELEMETRY CAPTURE). Runs the capability-specific functional tests declared by a component profile — identification, communication, status reporting, sensor reads, protocol detection, register readback and so on. Every test records its objective, configuration, procedure, expected result, observed result, pass/fail, evidence, confidence and duration, and returns an updated capability matrix in which passing tests promote capabilities to VERIFIED.
Inputs: component (required), cs, rx, tx, +15 more.
esp32_create_projectC
Scaffold a new PlatformIO ESP32 project with a starter template
Inputs: name (required), board, template, projectPath.
esp32_detect_memory_leaksB
Run extended test to detect memory leaks (5 minute default)
Inputs: port, duration.
esp32_detect_portsB
Auto-detect ESP32 devices on serial ports
Inputs: no named parameters.
esp32_flashC
Flash compiled firmware to ESP32 device
Inputs: port, projectPath.
esp32_full_cycleB
Complete development cycle: build, flash, and monitor in one command
Inputs: port, projectPath.
esp32_generate_ota_imageA
Package the built firmware.bin for OTA deployment — returns path, size, MD5, and SHA-256
Inputs: outputPath, environment, projectPath.
esp32_get_recommended_portA
Get recommended serial port (default > last used > auto-detected)
Inputs: no named parameters.
esp32_hardware_executeA
GENERAL-PURPOSE HARDWARE EXECUTION. Runs arbitrary operations you construct against the ESP32 as a physical instrument. Requires NO component profile, NO predefined probe and NO prior identification — this is the path for investigating a component beyond anything anticipated by this MCP. Supports: I2C scan/read/write/write-read with arbitrary bytes, repeated start and inter-phase delay; SPI transfer with arbitrary TX bytes, read length, mode, clock, bit order and CS control; UART write/read/write-read with arbitrary bytes and framing; GPIO configure/read/write/pulse/multi-pin sampling; pulse-width, frequency and edge-timing measurement; ADC sampling with interval and attenuation; PWM stimulus generation; and STIMULUS_CAPTURE, which drives one pin while sampling others on a shared timebase. An operation is refused ONLY when physically invalid on this chip (pin does not exist, is wired to flash, cannot drive an output, parameter out of the silicon's range, conflicting or malformed) — never because it was unanticipated. Raw agent responses are retained verbatim on every operation. A successful operation is OBSERVED evidence: it records what the device did, not what the device is.
Inputs: operations (required), port, defaults, timeoutMs, +2 more.
esp32_hardware_experimentB
EXPERIMENT ORCHESTRATOR. Runs a complete experiment lifecycle — PREPARE, VERIFY CONFIGURATION, EXECUTE, OBSERVE, CAPTURE, VALIDATE, ANALYSE, REPEAT, REPORT — and returns a machine-readable report containing the objective, hypothesis, expected result, safety constraints, per-phase records, every raw observation, telemetry status, consistency analysis across repetitions, validation against the hypothesis, findings, anomalies, capability implications, conclusion, confidence, and a full reproducibility record (hardware, firmware version, MCP version, configuration, pins, bus, frequency, timestamp).
Inputs: objective (required), cs, rx, tx, +21 more.
esp32_hardware_inventoryA
STAGE 1 (ESP32 IDENTIFICATION). Comprehensive inventory of the ESP32 target: chip family, model, revision, architecture, cores, CPU frequency, flash, PSRAM, MAC, silicon features, reset reason, boot info, firmware/app identity and version, SDK/framework, PlatformIO environment, serial interface, USB-UART bridge, GPIO/ADC/DAC/PWM/touch/timer/I2C/SPI/UART counts, Wi-Fi and Bluetooth. Every field carries its confidence and evidence source, and anything that cannot be determined is returned as UNKNOWN rather than guessed. Datasheet-derived values are labelled DOCUMENTED and are never presented as measurements.
Inputs: port, projectPath.
esp32_i2c_scanA
STAGE 3-5 (BUS DISCOVERY, DEVICE DETECTION, FINGERPRINTING). Comprehensive I2C scan. Returns every responding address in hex and decimal, ACK result, response timing, scan duration, errors and bus errors. Distinguishes RESPONDS / NO_RESPONSE / BUS_ERROR / UNSTABLE / ADDRESS_CONFLICT / RESERVED_SKIPPED. Optionally performs a safe fingerprint (a plain read, no command bytes) on each responder. Address-based profile matches are returned as LOW-confidence hints only — an I2C address never identifies a device.
Inputs: scl, sda, port, repeats, +6 more.
esp32_interface_discoveryA
STAGE 2 (INTERFACE DISCOVERY). Survey the interfaces the target offers — I2C, SPI, UART, GPIO, ADC, DAC, PWM, TOUCH — reporting available controllers, pins, current configuration, configured peripherals, conflicts, availability and warnings. Read-only: no GPIO is configured and no unknown pin is driven.
Inputs: port, interfaces.
esp32_list_librariesB
Search the PlatformIO library registry or list installed libraries
Inputs: query, installed.
esp32_list_network_devicesB
Discover ESP32 devices on the local network via mDNS (avahi/dns-sd) with ARP fallback
Inputs: timeout.
esp32_list_portsB
List all available ESP32 serial ports with detection, favorites, and recommendations
Inputs: no named parameters.
esp32_parse_logsA
Parse a saved ESP32 serial log file into structured entries with severity, tag, timestamp, and panic detection
Inputs: logPath (required).
esp32_pin_capabilitiesA
Report what every pin on this ESP32 can actually do — digital input/output, ADC, DAC, touch, PWM and GPIO-matrix routability — plus which pins are reserved and why, which are strapping pins, what the running firmware currently has allocated, and which agent capabilities are unavailable on this firmware build. Use this to plan an experiment instead of guessing pin assignments. The ESP32 GPIO matrix routes most peripheral signals to most pins, so bus assignments are far more flexible than a board silkscreen suggests. Pin capabilities are DOCUMENTED (datasheet-derived), not measured.
Inputs: pins, port, filter.
esp32_quick_benchmarkC
Quick 30-second performance check
Inputs: port.
esp32_register_inspectA
Register inspection and controlled register writing. Reads are the default and need NO component profile: name numeric registers and get raw values back. Supply a component and the same values are decoded into named bitfields with reset-value comparison — a profile is a decoder, not a permission. Registers a profile does not describe are still read, raw. WRITES: supply writes to perform explicit register writes as experiments — entering a mode, selecting a bank, triggering a measurement, clearing status, or testing undocumented behaviour. Each write records the bytes sent, the bus acknowledgement, the value read immediately before, and (unless disabled) the state read back afterwards. A bus ACK confirms the device accepted the bytes; it does NOT establish that the device did what you intended — read back and compare.
Inputs: cs, scl, sda, miso, +13 more.
esp32_run_testsB
Run PlatformIO unit tests and return structured pass/fail results
Inputs: filter, environment, projectPath.
esp32_set_default_portC
Set default serial port for ESP32 development
Inputs: port (required).
esp32_spi_discoveryA
STAGE 3-5 for SPI. Probes an SPI device using explicit, named profiles only — IDLE_READ (clocks 0xFF), ZERO_READ (clocks 0x00), JEDEC_ID (standard read-only 0x9F identification) — or the safe probes of a named component profile. Arbitrary command sequences are not supported by design. Returns raw bytes, hex, repeated patterns, protocol signatures, timing and confidence. All-0x00/all-0xFF responses are flagged as degenerate (a floating MISO line), not reported as data. A chip-select pin is REQUIRED — this tool never asserts an unspecified CS.
Inputs: cs (required), tx, miso, mode, +11 more.
esp32_test_firmwareC
Run automated firmware tests (boot, heartbeat, memory stability)
Inputs: port, baudRate.
esp32_uart_discoveryA
STAGE 3-5 for UART. Passive-first interrogation: captures raw bytes, hex, ASCII where valid, per-packet timestamps and boundaries, repeated patterns, baud clues and protocol candidates (NMEA 0183, UBX, AT, PN532 framing). Optionally scans common baud rates passively to find the working rate. Defaults to PASSIVE mode — nothing is transmitted. ACTIVE mode sends whatever you put in transmit (any bytes), or the UART probes of a named component profile.
Inputs: rx (required), tx, baud, mode, +12 more.
esp32_validate_deploymentB
Pre-deployment validation - run all tests and report deployment readiness
Inputs: port.
esp32_validate_projectC
Validate a PlatformIO project structure and report missing files or misconfigurations
Inputs: projectPath.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 35 tools
The detailed staged descriptions do a lot of work separating the hardware pipeline tools (inventory, interface_discovery, i2c/spi/uart_discovery, component_identify, component_probe, register_inspect, component_test, component_benchmark, capabilities), but there are real overlap clusters: three benchmark tools (esp32_benchmark, esp32_quick_benchmark, esp32_component_benchmark) and four testing tools (esp32_run_tests, esp32_test_firmware, esp32_component_test, esp32_validate_deployment) require reading the full descriptions to choose correctly. Stage numbering also overlaps (i2c_scan claims 3-5, component_identify 6, component_probe 6-11, component_test 11-12), so an agent can pick a wrong stage tool.
All tools share the esp32_ prefix and snake_case, which is highly predictable. The only inconsistency is word order: some are verb_noun (esp32_list_ports, esp32_parse_logs, esp32_create_project) while many others are noun_noun/noun-first (esp32_component_benchmark, esp32_hardware_inventory, esp32_hardware_experiment, esp32_pin_capabilities), plus a few bare verbs (esp32_build, esp32_flash, esp32_clean). Still readable and groupable.
35 tools is well above the comfortable range for a single server and creates a large surface for an agent to navigate. The staged hardware-characterization pipeline partly justifies the breadth, but several tools (quick vs full benchmark, three deploy/test validators) could be consolidated as parameters rather than separate tools.
Coverage is unusually thorough: port management, scaffolding, build/flash/monitor/clean, OTA packaging, unit and firmware testing, deployment validation, network discovery, and a full staged pipeline from inventory through capability/gap analysis. Minor gaps exist, e.g. no way to remove a favorite port, no explicit unset-default-port, no device reset/erase-flash operation, and library handling is list-only with no install/add.
Maintenance
Related MCP Connectors
Manage your IoT device fleet directly from Claude. Create device templates with datastreams and events, provision new devices, read live sensor data, and control outputs. The Blynk connector integrates with the Blynk IoT platform, enabling direct configuration and monitoring of connected devices and infrastructure.
Claude Code / MCP skills for the dev pipeline: discover, spec, design, build, ship, operate.
Claude-powered AI tools: research, write, code, analyze, translate, debate, pitch, score, and more.
Small tools for agent builders: AI-writing tells, tools/list token cost, CLAUDE.md lint, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to build, flash, and communicate with STM32 hardware over SWD and serial, including multi-board management, live memory monitoring, and hardware sequences.26MIT
- FlicenseNot gradedqualityFmaintenanceEnables Claude Code to interact with embedded hardware test benches via MTIB gRPC API, supporting device discovery, flashing, debugging, serial and Zephyr logs, power measurement, and more.-
- AlicenseAqualityDmaintenanceDebug microcontrollers directly from Claude. This is an MCP server that drives OpenOCD, letting Claude flash firmware, control execution, and inspect a running target — and read your variables and peripheral registers by name instead of raw addresses.3945 PyPI5MIT
- AlicenseAqualityBmaintenanceEnables AI coding agents to build, flash, monitor serial output, run tests, decode crashes, and analyze firmware size for embedded PlatformIO projects.4410MIT