Arduino MCP server for arduino-cli setup, hardware detection, compile/upload, and serial monitoring.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Arduino MCP server for arduino-cli workflows: dependency checks/install, hardware detection, compile/upload, serial monitoring, board reference lookup, and safety preflight checks.
This repository includes:
server.json for MCP Registry metadata.manifest.json for Claude Desktop MCP bundle (.mcpb) packaging.Use this server to automate Arduino setup and development tasks from an MCP client while keeping operations local to your machine.
open, read, expect, write, close)arduino-cli on PATH, or install/configure it through provided toolsInstall from npm:
Add to Claude Desktop (claude_desktop_config.json):
ARDUINO_CLI_PATH: Arduino CLI command/path (default: arduino-cli)ARDUINO_SKETCH_ROOT: optional absolute root restricting sketch compile/upload pathsExample 1: Bootstrap missing Arduino CLI
User prompt:
Expected tool sequence:
arduino_cli_doctorinstall_arduino_cli (when missing)arduino_cli_doctor (re-check)Example 2: Compile and upload a sketch
User prompt:
Expected tool sequence:
compile_sketch with sketch path + fqbnupload_sketch with sketch path + fqbn + portExample 3: Open serial monitor session and wait for ready text
User prompt:
Expected tool sequence:
serial_open_sessionserial_expectserial_read (optional for additional output)serial_close_session (when done)Example 4: Safety preflight before writing to device
User prompt:
Expected tool sequence:
safety_preflightserial_write only if preflight does not blockTools:
arduino_cli_doctorinstall_arduino_clidetect_hardwareensure_core_installedcompile_sketchupload_sketchupload_and_wait_readyread_serial_snapshotsafety_preflightserial_open_sessionserial_list_sessionsserial_readserial_expectserial_writeserial_close_sessionlist_connected_boardslist_supported_boardslist_serial_portsget_board_detailslist_board_referencesearch_board_referenceResources:
arduino://boards/referencePrompts:
arduino-cli-bootstrap-policyarduino-setup-assistantBuild and package:
Notes:
manifest.json is consumed by mcpb..mcpbignore excludes dev/reference files from bundle packaging.<name>.mcpb in the current directory by default.Summary:
main must come from release/* branches.patch, minor, or major.MIT, see LICENSE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/arduino-mcp-server)<a href="https://allmcps.com/mcp/arduino-mcp-server"><img src="https://allmcps.com/api/badge/arduino-mcp-server?style=directory" alt="Arduino MCP Server on AllMCPs" /></a>