HM

hardware-mcp/arduino-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

24 stars 2 forks 品質 79 トレンド 18MIT

オープンソースのArduino MCPサーバーは、モデルコンテキストプロトコルを介して構造化されたツールアクセスを使用して、AIアシスタントがArduinoと相互作用することを可能にします.

概要

ハードウェアMCPエコシステムの一部 — AIを物理的なハードウェアに橋渡しするオープンソースMCPサーバー。 AIアシスタントは、Jira、GitHub、データベースを制御できます。 microcontroller に話せません。 arduino-mcp-server は arduino-cli を MCP サーバーにラップし、AI は以下のようにできます。 - 接続されたボードとポートを自動的に - ターミナルに触れることなくスケッチ - ステートフルセッション(オープン、読み込み、期待、書き込み、クローズ) - コマンドをハードウェアに送信する前に - - - コア、ライブラリ、およびCLIインストール PATH に arduino-cli を要求するか、サーバーがインストールできるようにします。 「Arduino CLIがインストールされているかどうかを確認し、Arduino Unoのためにすべてをセットアップします。」 「BlinkスケッチをコンパイルしてCOM6のUnoにアップロード」 「115200でCOM6でシリアルを開き、デバイスがREADYを印刷するまで待ちます。」

概要(AI 翻訳)

Arduinoを介したAIアシスタントのフルコントロール — コンパイル、アップロード、シリアルを監視し、配線の安全を検証します。

ハードウェアMCPエコシステムの一部 — AIを物理的なハードウェアに橋渡しするオープンソースMCPサーバー。

お問い合わせ

これは何ですか?

AIアシスタントは、Jira、GitHub、データベースを制御できます。 microcontroller に話せません。

[arduino-mcp-server]はMCPサーバーに[arduino-cliをラップし、AIは次のことができます。

-** 接続されたボードとポートを自動的に検出する

  • コンパイルとアップロードターミナルに触れることなくスケッチ
  • モニターシリアル出力 ステートフルセッション(オープン、読み込み、期待、書き込み、クローズ) -Run 電気安全チェック コマンドをハードウェアに送信する前に
  • 依存関係の管理 — コア、ライブラリ、および CLI のインストール

お問い合わせ

クイックスタート

インストール:

Claude Desktopに追加([claude_desktop_config.json])):

PATH に arduino-cli を要求するか、サーバーがインストールできるようにします。

お問い合わせ

言うことができるもの

ブーツストラップ:

「Arduino CLIがインストールされているかどうかを確認し、Arduino Unoのためにすべてをセットアップします。」

コンパイルとアップロード:

「BlinkスケッチをコンパイルしてCOM6のUnoにアップロード」

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

arduino-mcp-server

Give your AI assistant full control over Arduino — compile, upload, monitor serial, and verify wiring safety, all through natural language.

Part of the HardwareMCP ecosystem — open-source MCP servers that bridge AI to physical hardware.


What this does

AI assistants can control Jira, GitHub, and databases. They can’t talk to a microcontroller — until now.

arduino-mcp-server wraps arduino-cli into an MCP server so your AI can:

  • Detect connected boards and ports automatically
  • Compile and upload sketches without touching the terminal
  • Monitor serial output with stateful sessions (open, read, expect, write, close)
  • Run electrical safety checks before sending commands to hardware
  • Manage dependencies — cores, libraries, and CLI installation

Quick Start

Install:

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": "/path/to/your/sketches"
      }
    }
  }
}

Requires arduino-cli on your PATH, or let the server install it for you.


What you can say

Bootstrap from scratch:

“Check if Arduino CLI is installed and set everything up for an Arduino Uno.”

Compile and upload:

“Compile my Blink sketch and upload it to the Uno on COM6.”

Serial monitoring:

“Open serial on COM6 at 115200 and wait until the device prints READY.”

Safety-first workflows:

“Run a safety preflight for an Arduino Uno with 5V on pin 13 at 25mA before I send commands.”


Tools

Tool What it does
arduino_cli_doctor Check Arduino CLI installation and version
install_arduino_cli Guide through arduino-cli installation
detect_hardware Detect connected boards and infer FQBNs
list_connected_boards List all connected Arduino boards
list_serial_ports List available serial ports
ensure_core_installed Check/install board cores
compile_sketch Compile a sketch for a target board
upload_sketch Upload compiled sketch to a board
upload_and_wait_ready Upload and wait for device ready signal
serial_open_session Open a stateful serial session
serial_read Read buffered serial data
serial_expect Wait for a pattern in serial output
serial_write Send data over serial
serial_close_session Close a serial session
GitHub で README 全文を見る

インストール

npx -y arduino-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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