# ESP32 Simulator

> ESP32 Simulator is an open-source MCP server for developer tools. Boot and test ESP32 firmware in a local emulator from your coding agent, no board needed. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Self-hosted
- **Repository:** https://github.com/stramanu/esp32sim-mcp
- **MCP Registry name:** io.github.stramanu/esp32sim-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Coding agents can write embedded C but cannot normally run it, so feedback stops at compilation. This server gives them six tools that boot the firmware they just built inside esp32sim, a local instruction-level emulator, and return the console output, any panic and display screenshots. The agent reads the result, fixes the code and tries again.

The boot chain is real: Espressif's mask ROM, the ESP-IDF bootloader and your unmodified app, on ESP32-S3, C3, C6 and classic ESP32. Besides the console, it simulates a virtual WiFi access point with DHCP, DNS and NAT, buttons, a rotary encoder, GPIO, UART input and touch. A sim_expect tool asserts that patterns appear in order and reports exactly which line is missing, and panics such as Guru Meditation errors are surfaced with the preceding log.

Setup is npx esp32sim-mcp setup, then init in the project to register the server and an agent skill for Claude Code, Codex, Cursor or Claude Desktop. It needs Node.js 22 or later and either ESP-IDF or Docker to build firmware. Prebuilt emulator binaries cover Apple silicon macOS and Linux x64 and arm64. The same checks run in CI via CLI exit codes.

## Features

- **Firmware boot:** Runs the real ROM, bootloader and app in an emulator and returns the console log.
- **Pattern assertions:** Checks console output in order and names the missing line on failure.
- **Hardware scripting:** Presses buttons, sets GPIO, turns a knob, sends UART input and touch at emulated times.
- **Display screenshots:** Returns a PNG of the board's display at a chosen time.
- **Virtual WiFi:** Provides an access point with DHCP, DNS and NAT on all four chips.
- **CI use:** Runs the same checks from the command line with pass or fail exit codes.

## Good for

- Verify a firmware change prints the expected log lines
- Test a button-driven UI by scripting presses and capturing screenshots
- Run boot checks in a GitHub Actions job without hardware
- Reproduce a panic and iterate on the fix

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add esp32sim-mcp -- npx -y esp32sim-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add esp32sim-mcp -- npx -y esp32sim-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.esp32sim-mcp]
command = "npx"
args = ["-y", "esp32sim-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user esp32sim-mcp npx -- -y esp32sim-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 6 tools changes data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `sim_run` (name suggests: changes): Boot the firmware and return console log, stop reason and any panic
- `sim_expect`: Assert patterns appear on the console
- `sim_script`: Drive buttons, GPIO, knob, UART and touch at emulated times
- `sim_screenshot`: Return a PNG of the board's display
- `sim_list_boards` (name suggests: reads): List chips, boards, displays and inputs
- `sim_doctor`: Check the emulator and ROMs

## FAQ

### Do I need an ESP32 board?

No. Everything runs locally in the emulator with no board, account or token.

### Which chips are supported?

ESP32-S3, ESP32-C3, ESP32-C6 and classic ESP32.

### What is needed to build firmware?

ESP-IDF or Docker, plus Node.js 22 or later.

### Which platforms have prebuilt emulator binaries?

macOS on Apple silicon and Linux on x64 and arm64.

### Is ESP32 Simulator free?

Yes. ESP32 Simulator is open source, so you can use and self-host it for free.

### How do I add ESP32 Simulator to Claude Code?

Run this command in your terminal: claude mcp add esp32sim-mcp -- npx -y esp32sim-mcp

### What are the best alternatives to ESP32 Simulator?

The closest alternatives to ESP32 Simulator are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/esp32-simulator
