About Arduino MCP Server
Arduino MCP Server is an MCP server in the Files category: arduino CLI wrapper MCP server.
The repository has 21 stars and 0 forks, with the last commit 2 months ago. Recent commit activity is the strongest signal that reported issues will get attention.
Install
claude mcp add arduino-mcp-server -- npx -y arduino-mcp-servernpx -y arduino-mcp-serverThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (21)
arduino_cli_doctorCheck Arduino CLI installation and version
Parameters not published.
compile_sketchCompile a sketch for a target board
Parameters not published.
detect_hardwareDetect connected boards and infer FQBNs
Parameters not published.
ensure_core_installedCheck/install board cores
Parameters not published.
get_board_detailsGet pin/capability details for a board
Parameters not published.
install_arduino_cliGuide through arduino-cli installation
Parameters not published.
list_board_referenceBrowse board pin reference
Parameters not published.
list_connected_boardsList all connected Arduino boards
Parameters not published.
list_serial_portsList available serial ports
Parameters not published.
list_supported_boardsList all boards arduino-cli supports
Parameters not published.
Show all 21 tools
read_serial_snapshotQuick one-shot serial read
Parameters not published.
safety_preflightElectrical safety check before hardware ops
Parameters not published.
search_board_referenceSearch board reference by keyword
Parameters not published.
serial_close_sessionClose a serial session
Parameters not published.
serial_expectWait for a pattern in serial output
Parameters not published.
serial_list_sessionsList active serial sessions
Parameters not published.
serial_open_sessionOpen a stateful serial session
Parameters not published.
serial_readRead buffered serial data
Parameters not published.
serial_writeSend data over serial
Parameters not published.
upload_and_wait_readyUpload and wait for device ready signal
Parameters not published.
upload_sketchUpload compiled sketch to a board
Parameters not published.
Ask AI
Ask AI about Arduino MCP Server
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
Arduino MCP Server
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.jsonfor MCP Registry metadata.manifest.jsonfor Claude Desktop MCP bundle (.mcpb) packaging.
Description
Use this server to automate Arduino setup and development tasks from an MCP client while keeping operations local to your machine.
Features
- Arduino CLI dependency diagnosis and guided installation
- Board/port detection with FQBN inference
- Core installation checks and optional auto-install
- Sketch compile/upload workflows
- Upload-and-wait serial readiness flow
- Stateful serial sessions (
open,read,expect,write,close) - Electrical safety preflight checks
- Board reference resource and setup prompts
Requirements
- Node.js 20+
arduino-clionPATH, or install/configure it through provided tools
Installation
Install from npm:
npm install -g arduino-mcp-server
Add to Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"arduino": {
"command": "npx",
"args": ["-y", "arduino-mcp-server"],
"env": {
"ARDUINO_CLI_PATH": "arduino-cli",
"ARDUINO_SKETCH_ROOT": "D:/Projects/arduino-sketches"
}
}
}
}
Configuration
ARDUINO_CLI_PATH: Arduino CLI command/path (default:arduino-cli)ARDUINO_SKETCH_ROOT: optional absolute root restricting sketch compile/upload paths
Usage Examples
Example 1: Bootstrap missing Arduino CLI
User prompt:
Check if Arduino CLI is installed and install it automatically if missing.
Expected tool sequence:
arduino_cli_doctorinstall_arduino_cli(when missing)arduino_cli_doctor(re-check)
Example 2: Compile and upload a sketch
User prompt:
Compile D:/Projects/arduino-sketches/Blink for arduino:avr:uno and upload it to COM6.
Expected tool sequence:
compile_sketchwith sketch path + fqbnupload_sketchwith sketch path + fqbn + port
Example 3: Open serial monitor session and wait for ready text
User prompt:
Open serial on COM6 at 115200 and wait until the device prints READY.
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:
Before sending commands over serial, run a safety preflight for an Arduino Uno with my wiring details.
Expected tool sequence:
safety_preflightserial_writeonly if preflight does not block
MCP Surface
Tools:
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_reference
Resources:
arduino://boards/reference
Prompts:
arduino-cli-bootstrap-policyarduino-setup-assistant
MCP Bundle (MCPB)
Build and package:
npm run build
npm run mcpb:validate
npm run mcpb:pack
Notes:
manifest.jsonis consumed bymcpb..mcpbignoreexcludes dev/reference files from bundle packaging.- Bundle output is written as
<name>.mcpbin the current directory by default.
Privacy Policy
- Policy URL: https://github.com/akshatnerella/arduino-mcp-server/blob/main/PRIVACY.md
- Local copy: PRIVACY.md
Summary:
- No built-in telemetry or analytics.
- Operations are local unless you explicitly invoke tooling that downloads dependencies.
- Data handling by your MCP host application is governed by that host's policies.
Support
- GitHub Issues: https://github.com/akshatnerella/arduino-mcp-server/issues
Development
git clone https://github.com/akshatnerella/arduino-mcp-server
cd arduino-mcp-server
npm install
npm run typecheck
npm run build
npm run dev
Release
- PRs into
mainmust come fromrelease/*branches. - PRs must include exactly one bump label:
patch,minor, ormajor.
License
MIT, see LICENSE.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.