Skip to content
MCP server

ESP32 Simulator

Boot and test ESP32 firmware in a local emulator from your coding agent, no board needed

Runs locally

ESP32 Simulator is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.2.6

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add esp32sim-mcp -- npx -y esp32sim-mcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "esp32sim-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp32sim-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About ESP32 Simulator

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.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

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_runName 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_boardsName suggests: reads
List chips, boards, displays and inputs
sim_doctor
Check the emulator and ROMs

What it does

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

Pricing

Open source

Free; installed from npm

ESP32 Simulator 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.

How AIPoweredBot checks servers