ArduPilot MCP Server Sandbox - Control ArduPilot drones via MCP protocol
Project description
ArduPilot MCP Server Sandbox
ArduPilot ドローンをLLMと連携して自然言語で操作するMCPサーバーです。
Claude DesktopやCline などMCPホストから利用可能です。
https://youtu.be/y1WE1cDC54Y?si=iy6vdGl38aTRcFcF
動作環境(SITLテスト可能)
- ArduPilot (SITL or 実機)
- MAVLink 通信が
tcp:127.0.0.1:5762で受け付け可能であること - Python 3.10+
Mission Planner のシミュレータを使う場合
ArduPilotドローンのシミュレーションを簡単に試すには、Mission Planner の内蔵シミュレータを使うのが便利です。
- Mission Planner をインストール
- 起動後、上部メニューの
シミュレーションボタンをクリック - 次の画面で
Multirotor(マルチローター)を選択 - ダイアログの
Stableボタンをクリック - ArduPilotシミュレータが起動し、tcp:127.0.0.1:5762 で待ち受けを開始します
セットアップ手順
-
Python 環境の準備
- Python 3.10+ 推奨
- Windows / macOS / Linux 対応
-
利用可能なツールのインストール
pip install -r requirements.txt -
MCPサーバーの起動確認(手動実行)
python ardupilot_mcp_server.py「MCPサーバーを起動します...」と出れば準備完了です。
Cline との連携手順
- OpenRouter にサインアップし、APIキーを取得
- VS Code に Cline 拡張機能 をインストール
- VS Code の settings.json に以下を追加:
{ "cline.apiKey": "sk-xxxxxxx", "cline.apiBaseUrl": "https://openrouter.ai/api/v1", "cline.defaultModel": "deepseek/deepseek-chat-v3-0324:free", "cline.mcpServers": { "ardupilot-controller": { "command": "python", "args": [ "${workspaceFolder}/ardupilot_mcp_server.py" ], "env": { "PYTHONPATH": "${env:USERPROFILE}\\.local\\lib\\python3.12\\site-packages" } } } }
※ python のパスや PYTHONPATH は環境に応じて調整してください。
Claude Desktop からの使用方法(GUI連携)
-
Claude Desktop をインストール
-
設定ファイル
claude_desktop_config.jsonを開くWindows の場合:
C:\Users\{ユーザー名}\AppData\Roaming\Claude\claude_desktop_config.json -
以下を追記:
{ "mcpServers": { "ardupilot-controller": { "command": "python", "args": [ "C:/Users/your-user-name/path/to/ardupilot_mcp_server.py" ], "alwaysAllow": [ "arm", "disarm", "takeoff", "change_mode" ] } } }
※ パスは環境に応じて調整してください。
-
Claude Desktop を再起動
利用できるMCPツール一覧
| コマンド | 説明 |
|---|---|
| arm() | 機体をアームします |
| disarm() | 機体をディスアームします |
| takeoff(altitude=10.0) | 指定高度まで離陸します |
| change_mode(mode="GUIDED") | モードを変更します |
プロンプト例(チャットでの操作)
Cline、または Claude Desktop に話しかけて、ArduPilot を自然言語で操作できます:
- 「ArduPilotをアームして」
- 「10メートルまで離陸して」
- 「モードをGUIDEDに変更して」
- 「ArduPilotをディスアームして」
※ MCP サーバーに登録されているツールに応じて、自然文が自動で変換されます。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_hfujikawa77_ardupilot_mcp_server_sandbox-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_hfujikawa77_ardupilot_mcp_server_sandbox-0.1.0.tar.gz
- Upload date:
- Size: 761.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55fcd478523c146e1ecf3066a490747ad32deb97478f965a3a934d32e96f07ef
|
|
| MD5 |
fc21f23f877a05b9abd74409de6e7359
|
|
| BLAKE2b-256 |
fe02e7acf13fae2cb7fb2023366264541f65fd676e4f8c46b03f1a1ea8d90ad9
|
File details
Details for the file iflow_mcp_hfujikawa77_ardupilot_mcp_server_sandbox-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_hfujikawa77_ardupilot_mcp_server_sandbox-0.1.0-py3-none-any.whl
- Upload date:
- Size: 779.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cca4dcf2764470a49c1c729b690f30bc8e6d349c40368814bca25f75f51d24be
|
|
| MD5 |
f53abc24631d2c528fc53fba6a4e9930
|
|
| BLAKE2b-256 |
2ed9493d83edf7d9a511e71bc5f15fccb5dd79e2859a1500b6ffc39fb1f5cc26
|