About horw/esp-mcp
horw/esp-mcp is an MCP server published by horw in the Developer Tools category: centralize ESP32 related commands and simplify getting started with seamless, LLM-driven interaction and help. Conduid read 7 tools from its source: build_esp_project, create_esp_project, flash_esp_project, list_esp_serial_ports, run_esp_idf_install, run_pytest and 1 more. No package is published for it, so it installs from a source checkout.
The repository has 157 stars and 21 forks, and its last commit was on 27 Dec 2025. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass License declared and Scoped permissions. Its topics include esp-idf and esp32.
Install
git clone https://github.com/horw/esp-mcpTools (7)
build_esp_projectBuild an ESP-IDF project. Can Incremental Build. Similar to `idf.py build`.| Parameter | Type | Description |
|---|---|---|
| idf_path | string | Path to ESP-IDF directory. Optional when IDF_PATH environment variable is set. - If None or empty: uses IDF_PATH environment variable - If provided: uses the specified path, allowing different projects to use different ESP-IDF versions. |
| project_path * | string | Path to the project. |
| sdkconfig_defaults | string | Optional sdkconfig defaults files. Multiple files can be specified separated by semicolons. Example: "sdkconfig.defaults;sdkconfig.ci.release" - If provided: uses the specified sdkconfig defaults files. This will cause reconfigure and full rebuild. - If None: uses default incremental build behavior. Note: Only use this parameter when you need to modify config. For incremental builds, omit this parameter. |
create_esp_projectCreates a new ESP-IDF project for an ESP chip.| Parameter | Type | Description |
|---|---|---|
| project_name * | string | Name of the ESP-IDF project to create. |
| project_path * | string | Path where the new ESP-IDF project will be created. Must be located directly under the current working directory. |
flash_esp_projectFlash built firmware to a connected ESP device.| Parameter | Type | Description |
|---|---|---|
| port | string | Serial port for the ESP device (optional, auto-detect if not provided) |
| project_path * | string | Path to the ESP-IDF project |
list_esp_serial_portsList available serial ports for ESP devices.run_esp_idf_installRun the install.sh script in the ESP-IDF directory to install ESP-IDF dependencies and toolchain.| Parameter | Type | Description |
|---|---|---|
| idf_path | string | Path to ESP-IDF directory. Optional when IDF_PATH environment variable is set. - If None or empty: uses IDF_PATH environment variable - If provided: uses the specified path, allowing different projects to use different ESP-IDF versions. |
run_pytestRun pytest tests in a project. Supports pytest-embedded for ESP-IDF/ESP32 testing.| Parameter | Type | Description |
|---|---|---|
| idf_path | string | Path to ESP-IDF directory. Optional when IDF_PATH environment variable is set. - If None or empty: uses IDF_PATH environment variable - If provided: uses the specified path, allowing different projects to use different ESP-IDF versions. |
| project_path * | string | Path to the project directory containing tests |
| pytest_args | string | Additional pytest arguments. Common options: - -v: Verbose output - -k EXPRESSION: Run tests matching the expression - -m MARKER: Run tests with specific marker - --target TARGET: Specify ESP target (esp32, esp32c3, esp32s3, esp32c6, esp32h2) - --sdkconfig PATH: Specify sdkconfig config name |
| test_path | string | Path to test file or directory (default: ".", runs all tests) |
setup_project_esp_targetSets up the target for an ESP-IDF project before building.| Parameter | Type | Description |
|---|---|---|
| idf_path | string | Path to ESP-IDF directory. Optional when IDF_PATH environment variable is set. - If None or empty: uses IDF_PATH environment variable - If provided: uses the specified path, allowing different projects to use different ESP-IDF versions. |
| project_path * | string | Path to the ESP-IDF project. |
| target * | string | Lowercase target name, such as 'esp32' or 'esp32c3'. |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 760 words.
- !License declaredNo license file. Legally you have no right to use it in a product.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 2 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiomain.py:258
- Starts other programs
- 2 callsesp_utils.py:19, esp_utils.py:80
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 8 callsmain.py:54, main.py:81, main.py:99
- Lockfile
- uv.lock
Pattern matches on the source text of 2 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 760 words, fetched a month ago. The original in the repository is authoritative.
Read full README