Arduino Agent Mcp
Pricing
from $0.10 / 1,000 results
Arduino Agent Mcp
**arduino-agent-mcp**platform designed to give AI agents (like Gemini, Claude, etc.) safe, deterministic, and powerful control over Arduino hardware. It acts as a bridge between LLMs and embedded hardware, enabling semantic understanding of boards, libraries, and firmware.
Pricing
from $0.10 / 1,000 results
Rating
0.0
(0)
Developer

christopher athans crow
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
13 days ago
Last modified
Categories
Share
arduino-agent-mcp
AI-native Arduino development via Model Context Protocol (MCP)
arduino-agent-mcp is an open-source platform designed to give AI agents (like Gemini, Claude, etc.) safe, deterministic, and powerful control over Arduino hardware. It acts as a bridge between LLMs and embedded hardware, enabling semantic understanding of boards, libraries, and firmware.
Unlike simple CLI wrappers, this project provides a structured state machine for hardware, handling dependency resolution, multi-board orchestration, and safety checks before any code touches silicon.
π Features
π§ Core Agentic Capabilities
- Semantic Board Awareness: Agents don't guess pins; they query
list_boardsto understand architecture, ports, and capabilities. - Safe Library Management: Automated dependency resolution and installation (
resolve_library). - Structured Compilation: JSON-based compiler output for AI self-correction.
π‘οΈ Safety & Reliability
- Hardware Assertions: Pre-upload checks (
hardware_check) for voltage, conflicts, and more. - Firmware Rollback: Automatic snapshots of successful builds allow one-click recovery.
- Compilation-First: Code is never uploaded without a clean build.
π Advanced Tooling
- Multi-Board Orchestration: Manage fleets of devices (e.g., Sensor Node + Gateway) via
select_board. - Power Profiling: Static analysis and runtime estimation of power consumption (
estimate_power). - Schematic Generation: Turn code/intent into Graphviz/Mermaid diagrams (
generate_schematic). - OTA Updates: Safe Over-The-Air updates for ESP32/WiFi boards (
ota_upload).
ποΈ Architecture
The system is a modular MCP Server built on Node.js that wraps the Arduino CLI.
graph TDAI[AI Agent] <-->|MCP Protocol| MCP[Arduino MCP Server]MCP <-->|JSON/IPC| CLI[Arduino CLI]CLI <-->|Serial/USB| BOARD[Arduino Hardware]subgraph "MCP Server Logic"ORCH[Board Orchestrator]SAFE[Safety Checks]LIB[Dep Resolver]PROF[Power Profiler]endMCP --- ORCHMCP --- SAFEMCP --- LIBMCP --- PROF
See docs/architecture.md for a deep dive.
π¦ Project Structure
arduino-agent-mcp/βββ packages/β βββ mcp-server/ # Main MCP Server (Node.js)β βββ cli/ # (Future) User CLIβ βββ templates/ # Starter templates (Simple/Advanced)β βββ schematics/ # Schematic generation assetsβ βββ power-profiles/ # Board power definition modelsβββ docs/ # Documentationβββ examples/ # Example usage patterns
π Getting Started
Prerequisites
- Node.js >= 18 LTS
- Arduino CLI installed and in your
PATH.
Installation
-
Clone the repository:
git clone https://github.com/your-org/arduino-agent-mcp.gitcd arduino-agent-mcp -
Install dependencies:
cd packages/mcp-servernpm install -
Build the server:
$npm run build -
Configure your AI Client (e.g., Claude Desktop, Gemini) to use the MCP server.
Development
We welcome contributions! Please see CONTRIBUTING.md.
Docker Support
This project is container-ready and follows Apify Actor standards.
-
Build Container:
cd packages/mcp-serverdocker build -t arduino-mcp . -
Run (Stdio Mode):
$docker run -i arduino-mcp
Note: When running in Docker/Cloud, physical hardware features (upload, monitor) are disabled unless you use the Network Serial Bridge.
π Network Serial Bridge (Remote Upload)
If running the MCP server in a container or cloud, you can use the bridge-client to flash code to your local machine.
-
Start Bridge (Locally):
cd packages/bridge-clientnpm installnpm start# Bridge listening on port 3000 -
Expose Bridge (via ngrok):
ngrok http 3000# Copy the URL (e.g. https://xyz.ngrok.io) -
Run MCP Server (Remote):
$docker run -e BRIDGE_URL=https://xyz.ngrok.io -i arduino-mcp
The agent will now automatically route uploads through the bridge.
π License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.


