ardupilot-mcp-server-sandbox

ardupilot-mcp-server-sandbox

2

The ArduPilot MCP Server Sandbox enables the operation of ArduPilot drones using natural language commands via an MCP server. It is compatible with hosts like Claude Desktop and Cline, facilitating seamless drone control through conversational interfaces.

ArduPilot MCP Server Sandbox

Operating Environment

  • ArduPilot (SITL or real device)
  • MAVLink communication available at tcp:127.0.0.1:5762
  • Python 3.10+

Mission Planner Simulator

  1. Install and start Mission Planner.
  2. Click 'Simulation' from the top menu.
  3. Choose 'Multirotor' and click 'Stable'.
  4. ArduPilot simulator starts listening at tcp:127.0.0.1:5762.

Setup Instructions

  1. Prepare Python environment (Python 3.10+, supports Windows/macOS/Linux).
  2. Install available tools.
  3. Confirm MCP server operation manually.

Cline Integration Steps

  1. Sign up at OpenRouter and get an API key.
  2. Install the Cline extension for VS Code.
  3. Add settings in settings.json in VS Code.

Using Claude Desktop

  1. Install Claude Desktop.
  2. Open claude_desktop_config.json and adjust paths as necessary.
  3. Add appropriate configurations and restart Claude Desktop.

Available MCP Tools

  • arm(): Arm the device.
  • disarm(): Disarm the device.
  • takeoff(altitude=10.0): Take off to a specified altitude.
  • change_mode(mode="GUIDED"): Change mode.

Prompt Examples

  • "Arm the ArduPilot"
  • "Takeoff to 10 meters"
  • "Change mode to GUIDED"
  • "Disarm the ArduPilot"