Skip to main content
Glama

arduino-mcp-server

npm version License: MIT Node.js 20+

AI 어시스턴트에게 Arduino에 대한 완전한 제어 권한을 부여하세요 — 컴파일, 업로드, 시리얼 모니터링, 배선 안전 검증까지 자연어로 처리합니다.

HardwareMCP 생태계의 일부 — AI를 물리적 하드웨어에 연결하는 오픈소스 MCP 서버 모음입니다.


이 도구가 하는 일

AI 어시스턴트는 Jira, GitHub, 데이터베이스를 제어할 수 있습니다. 하지만 마이크로컨트롤러와는 대화할 수 없었습니다 — 지금까지는요.

arduino-mcp-server는 arduino-cli를 MCP 서버로 감싸서 AI가 다음을 수행할 수 있게 합니다:

  • 연결된 보드와 포트를 자동으로 감지

  • 터미널을 건드리지 않고 스케치 컴파일 및 업로드

  • 상태 저장 세션으로 시리얼 출력 모니터링 (열기, 읽기, 대기, 쓰기, 닫기)

  • 하드웨어에 명령을 보내기 전에 전기 안전 검사 실행

  • 의존성 관리 — 코어, 라이브러리, CLI 설치


Related MCP server: Arduino MCP Server (Simple)

빠른 시작

설치:

npm install -g arduino-mcp-server

Claude Desktop에 추가 (claude_desktop_config.json):

{
  "mcpServers": {
    "arduino": {
      "command": "npx",
      "args": ["-y", "arduino-mcp-server"],
      "env": {
        "ARDUINO_CLI_PATH": "arduino-cli",
        "ARDUINO_SKETCH_ROOT": "/path/to/your/sketches"
      }
    }
  }
}

PATH에 arduino-cli가 필요하거나, 서버가 직접 설치하도록 할 수 있습니다.


말할 수 있는 것들

처음부터 부트스트랩:

"Arduino CLI가 설치되어 있는지 확인하고 Arduino Uno용으로 모든 것을 설정해 줘."

컴파일 및 업로드:

"내 Blink 스케치를 컴파일해서 COM6의 Uno에 업로드해 줘."

시리얼 모니터링:

"COM6에서 115200으로 시리얼을 열고 장치가 READY를 출력할 때까지 기다려 줘."

안전 우선 워크플로:

"명령을 보내기 전에 13번 핀에 5V, 25mA인 Arduino Uno에 대한 안전 사전 점검을 실행해 줘."


도구

도구

기능

arduino_cli_doctor

Arduino CLI 설치 및 버전 확인

install_arduino_cli

arduino-cli 설치 안내

detect_hardware

연결된 보드 감지 및 FQBN 추론

list_connected_boards

연결된 모든 Arduino 보드 나열

list_serial_ports

사용 가능한 시리얼 포트 나열

ensure_core_installed

보드 코어 확인/설치

compile_sketch

대상 보드용 스케치 컴파일

upload_sketch

컴파일된 스케치를 보드에 업로드

upload_and_wait_ready

업로드 후 장치 준비 신호 대기

serial_open_session

상태 저장 시리얼 세션 열기

serial_read

버퍼링된 시리얼 데이터 읽기

serial_expect

시리얼 출력에서 패턴 대기

serial_write

시리얼로 데이터 전송

serial_close_session

시리얼 세션 닫기

serial_list_sessions

활성 시리얼 세션 나열

read_serial_snapshot

빠른 1회성 시리얼 읽기

safety_preflight

하드웨어 작업 전 전기 안전 검사

get_board_details

보드의 핀/기능 세부 정보 가져오기

list_supported_boards

arduino-cli가 지원하는 모든 보드 나열

list_board_reference

보드 핀 참조 탐색

search_board_reference

키워드로 보드 참조 검색

리소스:

  • arduino://boards/reference — 구조화된 보드 핀/기능 참조

프롬프트:

  • arduino-cli-bootstrap-policy — arduino-cli 설정 동작에 대한 정책

  • arduino-setup-assistant — 안내형 Arduino 환경 설정


구성

변수

기본값

설명

ARDUINO_CLI_PATH

arduino-cli

arduino-cli 바이너리 경로

ARDUINO_SKETCH_ROOT

(없음)

스케치 경로를 이 디렉터리로 제한


개발

git clone https://github.com/hardware-mcp/arduino-mcp-server
cd arduino-mcp-server
npm install
npm run typecheck
npm run build
npm run dev

HardwareMCP의 일부

이 서버는 HardwareMCP 생태계의 일부입니다 — AI 어시스턴트에게 물리적 하드웨어에 대한 실제 제어 권한을 부여하는 MCP 서버 모음입니다.


라이선스

MIT — LICENSE 참조.

지원

이슈 열기

Available Tools

21 tools
arduino_cli_doctorArduino CLI DoctorA
Read-only

Check whether arduino-cli is available and return OS-specific installation instructions if missing.

Inputs: no named parameters. Returns: ok, raw, data, note, +9 more

compile_sketchCompile SketchA
DestructiveIdempotent

Compile an Arduino sketch with a specific board FQBN.

Inputs: fqbn (required), sketchPath (required), clean, warnings, +3 more. Returns: ok, raw, data, note, +9 more

detect_hardwareDetect HardwareB
Read-only

Detect connected Arduino-compatible hardware, infer board/FQBN candidates, and generate next compile/upload commands.

Inputs: port, includeBoardDetails. Returns: ok, raw, data, note, +9 more

ensure_core_installedEnsure Core InstalledA
DestructiveIdempotent

Ensure the Arduino core required by a board FQBN is installed. Can auto-install via arduino-cli core install.

Inputs: fqbn, coreId, autoInstall. Returns: ok, raw, data, note, +9 more

get_board_detailsGet Board DetailsA
Read-only

Get detailed board metadata from arduino-cli for a specific FQBN.

Inputs: fqbn (required). Returns: ok, raw, data, note, +9 more

install_arduino_cliInstall Arduino CLIA
DestructiveIdempotent

Attempt to install arduino-cli for the current OS using available package managers, then verify and configure CLI path.

Inputs: method, setCliPathInProcess. Returns: ok, raw, data, note, +9 more

list_board_referenceList Board ReferenceA
Read-only

List local board reference entries with pin/spec metadata.

Inputs: no named parameters. Returns: ok, raw, data, note, +9 more

list_connected_boardsList Connected BoardsA
Read-only

List connected boards and serial ports detected by arduino-cli.

Inputs: no named parameters. Returns: ok, raw, data, note, +9 more

list_serial_portsList Serial PortsA
Read-only

List serial ports and any detected board metadata using arduino-cli. Works on Windows/macOS/Linux.

Inputs: no named parameters. Returns: ok, raw, data, note, +9 more

list_supported_boardsList Supported BoardsA
Read-only

List supported/installable boards from the local arduino-cli index.

Inputs: search. Returns: ok, raw, data, note, +9 more

read_serial_snapshotRead Serial SnapshotB
Read-only

Capture serial output for a bounded duration from a given port.

Inputs: port (required), baudRate, durationMs. Returns: ok, raw, data, note, +9 more

safety_preflightSafety PreflightA
Read-only

Run electrical preflight checks (voltage/current/pin risks) before upload or serial write operations.

Inputs: fqbn, port, board, power, +1 more. Returns: ok, raw, data, note, +9 more

search_board_referenceSearch Board ReferenceA
Read-only

Search local board reference by board name, alias, id, or FQBN.

Inputs: query (required). Returns: ok, raw, data, note, +9 more

serial_close_sessionSerial Close SessionA
DestructiveIdempotent

Close a serial session and release its port lock.

Inputs: sessionId (required). Returns: ok, raw, data, note, +9 more

serial_expectSerial ExpectA
Read-only

Wait for a string pattern in a serial session buffer with timeout.

Inputs: pattern (required), sessionId (required), timeoutMs, fromOffset, +1 more. Returns: ok, raw, data, note, +9 more

serial_list_sessionsSerial List SessionsA
Read-only

List active serial sessions and current port lock state.

Inputs: no named parameters. Returns: ok, raw, data, note, +9 more

serial_open_sessionSerial Open SessionA
Destructive

Open a stateful serial monitor session with port lock ownership.

Inputs: port (required), ttlMs, baudRate, maxBufferBytes. Returns: ok, raw, data, note, +9 more

serial_readSerial ReadA
Read-only

Read buffered bytes from an open serial session.

Inputs: sessionId (required), encoding, maxBytes, fromOffset. Returns: ok, raw, data, note, +9 more

serial_writeSerial WriteA
Destructive

Write bytes to an open serial session. Safety preflight is enforced unless explicitly skipped.

Inputs: data (required), sessionId (required), encoding, lineEnding, +2 more. Returns: ok, raw, data, note, +9 more

upload_and_wait_readyUpload And Wait ReadyA
Destructive

Upload a sketch and wait for a serial readiness pattern, handling post-upload reset/re-enumeration windows.

Inputs: port (required), sketchPath (required), fqbn, verify, +7 more. Returns: ok, raw, data, note, +9 more

upload_sketchUpload SketchB
DestructiveIdempotent

Upload a compiled sketch to a connected board/port.

Inputs: port (required), sketchPath (required), fqbn, verify, +3 more. Returns: ok, raw, data, note, +9 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 21 tools

    Disambiguation3/5

    Several tools cluster around board/port discovery (list_connected_boards, list_serial_ports, detect_hardware) and serial reading (serial_read, read_serial_snapshot), so an agent could select the wrong one without careful description reading. Most other tools have clear resource-action targets, but these near-duplicates lower the boundary clarity.

    Naming Consistency4/5

    Names are consistently snake_case and mostly verb_noun (list_*, install_*, compile_*, upload_*). The serial_* prefix group is internally consistent, but read_serial_snapshot and upload_and_wait_ready deviate from the dominant pattern.

    Tool Count3/5

    At 21 tools the server sits in the heavy 16-25 band, but the broad scope of Arduino CLI management, board detection, compile/upload, and serial sessions gives most tools a purpose. It is slightly over the ideal compact size but not excessive.

    Completeness4/5

    The workflow from CLI setup, board detection, core installation, compile, upload, and serial interaction is well covered, including safety preflight. Notable gaps are library management (search/install) and core uninstall/removal, but agents can complete core Arduino tasks without them.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with Arduino development through arduino-cli, allowing sketch management, code compilation and uploading, library and board operations, serial monitoring, and AI-powered circuit diagram generation using WireViz.
      23 PyPI
      10
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      A local stdio MCP server wrapping arduino-cli to let agents detect boards, manage cores/libraries, compile and upload sketches, and communicate over serial, enabling hardware control without shell gymnastics.
      17
      -