Get the FREE Ultimate OpenClaw Setup Guide →

ardupilot -sandbox

ArduPilotドローンをAIエージェントから操作するMCPサーバーです。

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio hfujikawa77-ardupilot-mcp-server-sandbox python ardupilot_mcp_server.py

How to use

This MCP server lets you control an ArduPilot drone via natural language by connecting to a MAVLink-enabled SITL or real aircraft over TCP. The server exposes a set of MCP tools such as arming/disarming the vehicle, takeoff to a specified altitude, and changing flight modes. These tools translate natural language prompts into ArduPilot commands that are executed through the MAVLink link at tcp:127.0.0.1:5762. You can access and invoke this MCP server from MCP hosts like Claude Desktop or Cline, enabling seamless, chat-based drone operations.

To use it, ensure ArduPilot is running and MAVLink is reachable at the expected TCP endpoint. Then start the MCP server with the configured command. From your MCP host, issue commands such as “arm the vehicle”, “take off to 10 meters”, or “change mode to GUIDED” and the server will relay these requests to ArduPilot via MAVLink, returning status updates and results in natural language.

How to install

Prerequisites:

  • Python 3.10+ installed on your system
  • ArduPilot SITL or actual vehicle connected and MAVLink TCP endpoint available at tcp:127.0.0.1:5762

Step-by-step installation:

  1. Clone or download the MCP server repository for ArduPilot Sandbox.
  2. Create and activate a Python virtual environment (recommended):
    • python -m venv venv
    • source venv/bin/activate # Linux/macOS
    • venv\Scripts\activate # Windows
  3. Install required Python packages:
    • pip install -r requirements.txt
  4. Ensure ArduPilot SITL or real vehicle is running and MAVLink is listening on tcp:127.0.0.1:5762.
  5. Start the MCP server:
    • python ardupilot_mcp_server.py
  6. Verify that the server announces it is ready to accept connections (e.g., readiness message in console).

Optional: If your environment requires adjustments to PYTHONPATH or additional dependencies, set them prior to launching the server.

Additional notes

Environment and connectivity tips:

  • Ensure MAVLink TCP endpoint is accessible at tcp:127.0.0.1:5762; adjust accordingly if using a different host/port.
  • ArduPilot SITL must be running and ready before starting the MCP server.
  • The MCP server exposes tools like arm(), disarm(), takeoff(altitude=...), and change_mode(mode=...). These commands are mapped to ArduPilot actions; ensure safety procedures are followed when testing.
  • If using Cline or Claude Desktop, configure the MCP server in your settings to point to ardupilot_mcp_server.py and pass any required environment setup (e.g., PYTHONPATH) as described in the README.
  • Check firewall and network settings if the MCP host and ArduPilot bridge are on different machines.

Related MCP Servers

Sponsor this space

Reach thousands of developers