The goal of this MCP is to: - Consolidate ESP-IDF and related project commands in one place. - Simplify getting started using only LLM communication. Simply find a command that is missing from this MCP and create a PR for it! If you want someone to help you with this implementation, just open an issue. This project is currently a Proof of Concept (PoC) for an MCP server tailored for ESP-IDF workfl
Add this skill
npx mdskills install horw/esp-mcpWell-documented ESP-IDF workflow automation with comprehensive tool coverage and clear setup instructions
1[](https://mseep.ai/app/horw-esp-mcp)23### Goal4The goal of this MCP is to:5- Consolidate ESP-IDF and related project commands in one place.6- Simplify getting started using only LLM communication.78### How to contribute to the project910Simply find a command that is missing from this MCP and create a PR for it!1112If you want someone to help you with this implementation, just open an issue.131415### Notice16This project is currently a **Proof of Concept (PoC)** for an MCP server tailored for ESP-IDF workflows.1718**Current Capabilities:**1920**Core Features:**21* `run_esp_idf_install`: Install ESP-IDF dependencies and toolchain via `install.sh`.22* `create_esp_project`: Create a new ESP-IDF project.23* `setup_project_esp_target`: Set target chip for ESP-IDF projects (esp32, esp32c3, esp32s3, etc.).24* `build_esp_project`: Build ESP-IDF projects with incremental build support.25* `list_esp_serial_ports`: List available serial ports for ESP devices.26* `flash_esp_project`: Flash built firmware to connected ESP devices.27* `run_pytest`: Run pytest tests with pytest-embedded support for ESP-IDF projects.2829**Additional Features:**30* Flexible ESP-IDF path management: supports per-project ESP-IDF versions via `idf_path` parameter.31* SDK config management: supports custom `sdkconfig_defaults` files for build configuration (multiple files can be specified separated by semicolons).32* Build time tracking for performance monitoring.33* Optional port specification for flashing operations.34* Includes experimental support for automatic issue fixing based on build logs.3536**Vision & Future Work:**37The long-term vision is to expand this MCP into a comprehensive toolkit for interacting with embedded devices, potentially integrating with home assistant platforms, and streamlining documentation access for ESP-IDF and related technologies.3839We envision features such as:40* Broader ESP-IDF command support (e.g., `monitor`, `menuconfig` interaction if feasible).41* Device management and information retrieval.42* Integration with other embedded development tools and platforms.4344Your ideas and contributions are welcome! Please feel free to discuss them by opening an issue.454647### Install4849First, clone this MCP repository:5051```bash52git clone git@github.com:horw/esp-mcp.git53```5455Then, configure it in your chatbot.5657The JSON snippet below is an example of how you might configure this `esp-mcp` server within a chatbot or an agent system that supports the Model Context Protocol (MCP). The exact configuration steps and format may vary depending on the specific chatbot system you are using. Refer to your chatbot's documentation for details on how to integrate MCP servers.5859```json60{61 "mcpServers": {62 "esp-run": { // "esp-run" is an arbitrary name you can assign to this server configuration.63 "command": "<path_to_uv_or_python_executable>",64 "args": [65 "--directory",66 "<path_to_cloned_esp-mcp_repository>", // e.g., /path/to/your/cloned/esp-mcp67 "run",68 "main.py" // If using python directly, this might be just "main.py" and `command` would be your python interpreter69 ],70 "env": {71 "IDF_PATH": "<path_to_your_esp-idf_directory>" // e.g., ~/esp/esp-idf or C:\\Espressif\\frameworks\\esp-idf72 }73 }74 }75}76```7778A few notes on the configuration:7980* **`command`**: This should be the full path to your `uv` executable if you are using it, or your Python interpreter (e.g., `/usr/bin/python3` or `C:\\Python39\\python.exe`) if you plan to run `main.py` directly.81* **`args`**:82 * The first argument to `--directory` should be the absolute path to where you cloned the `esp-mcp` repository.83 * If you're using `uv`, the arguments `run main.py` are appropriate. If you're using Python directly, you might only need `main.py` in the `args` list, and ensure your `command` points to the Python executable.84* **`IDF_PATH`**: (Optional) This environment variable can point to the root directory of your ESP-IDF installation. ESP-IDF is Espressif's official IoT Development Framework. If you haven't installed it, please refer to the [official ESP-IDF documentation](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html) for installation instructions. **Note**: All tools support an `idf_path` parameter that can be manually specified when calling the tool, allowing you to use different ESP-IDF versions for different projects without setting the environment variable. If `idf_path` is not provided, the tool will use the `IDF_PATH` environment variable if available.8586### Usage8788Once the `esp-mcp` server is configured and running, your LLM or chatbot can interact with it using the tools defined in this MCP. For example, you could ask your chatbot to:8990* "Install ESP-IDF dependencies for the ESP-IDF installation at `/path/to/esp-idf`."91* "Set the target chip to esp32s3 for the project in `/path/to/my/esp-project`."92* "Build the project located at `/path/to/my/esp-project` using the `esp-mcp`."93* "Build the project with custom sdkconfig defaults: `sdkconfig.defaults;sdkconfig.ci.release`."94* "Run pytest tests for the project at `/path/to/my/esp-project` targeting esp32c3."95* "Flash the firmware to my connected ESP32 device for the project in `my_app`."9697The MCP server will then execute the corresponding ESP-IDF commands (like `idf.py build`, `idf.py set-target`, `idf.py flash`, `pytest`) based on the tools implemented in `main.py`.9899The `result.gif` below shows an example interaction:100101102103104### Examples1051061071. Build and Flash108<img src="./examples/build-flash.png">109110### Star History111112[](https://star-history.com/#horw/esp-mcp&Date)113114115116117118
Full transparency — inspect the skill content before installing.