hfujikawa77
MCP Serverhfujikawa77public

ardupilot mcp server sandbox

ArduPilotドローンを操作するMCPサーバーです。

Repository Info

4
Stars
1
Forks
4
Watchers
0
Issues
Python
Language
GNU General Public License v3.0
License

About This Server

ArduPilotドローンを操作するMCPサーバーです。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

ArduPilot MCP Server Sandbox

ArduPilot ドローンをLLMと連携して自然言語で操作するMCPサーバーです。
Claude DesktopやCline などMCPホストから利用可能です。

!alt text
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 の内蔵シミュレータを使うのが便利です。

  1. Mission Planner をインストール
  2. 起動後、上部メニューの シミュレーション ボタンをクリック
  3. 次の画面で Multirotor(マルチローター) を選択
  4. ダイアログの Stable ボタンをクリック
  5. ArduPilotシミュレータが起動し、tcp:127.0.0.1:5762 で待ち受けを開始します

!alt text

セットアップ手順

  1. Python 環境の準備

    • Python 3.10+ 推奨
    • Windows / macOS / Linux 対応
  2. 利用可能なツールのインストール

    pip install -r requirements.txt
    
  3. MCPサーバーの起動確認(手動実行)

    python ardupilot_mcp_server.py
    

    「MCPサーバーを起動します...」と出れば準備完了です。

Cline との連携手順

  1. OpenRouter にサインアップし、APIキーを取得
  2. VS Code に Cline 拡張機能 をインストール
  3. 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連携)

  1. Claude Desktop をインストール

  2. 設定ファイル claude_desktop_config.json を開く

    Windows の場合: C:\Users\{ユーザー名}\AppData\Roaming\Claude\claude_desktop_config.json

  3. 以下を追記:

    {
        "mcpServers": {
            "ardupilot-controller": {
            "command": "python",
            "args": [
                "C:/Users/your-user-name/path/to/ardupilot_mcp_server.py"
            ],
            "alwaysAllow": [
                "arm",
                "disarm",
                "takeoff",
                "change_mode"
            ]
            }
        }
    }
    

    ※ パスは環境に応じて調整してください。

  4. Claude Desktop を再起動

利用できるMCPツール一覧

コマンド説明
arm()機体をアームします
disarm()機体をディスアームします
takeoff(altitude=10.0)指定高度まで離陸します
change_mode(mode="GUIDED")モードを変更します

プロンプト例(チャットでの操作)

Cline、または Claude Desktop に話しかけて、ArduPilot を自然言語で操作できます:

  • 「ArduPilotをアームして」
  • 「10メートルまで離陸して」
  • 「モードをGUIDEDに変更して」
  • 「ArduPilotをディスアームして」

※ MCP サーバーに登録されているツールに応じて、自然文が自動で変換されます。

Quick Start

1

Clone the repository

git clone https://github.com/hfujikawa77/ardupilot-mcp-server-sandbox
2

Install dependencies

cd ardupilot-mcp-server-sandbox
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerhfujikawa77
Repoardupilot-mcp-server-sandbox
LanguagePython
LicenseGNU General Public License v3.0
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation