What is MCP Server?
MCP Server is a lightweight wrapper around DroneKit that exposes drone vehicle APIs as asynchronous MCP tools over HTTP (SSE) or messaging. It connects to a DroneKit Vehicle, registers flight‑controller operations as MCP tools, and allows clients like Claude Desktop to send text commands or JSON payloads to control the drone.
How to use MCP Server?
Clone the repository, create a Python virtual environment (3.8+), install dependencies from requirement.txt, and create a .env file with DRONE_CONN (MAVLink connection string) and GOOGLE_MAPS_API_KEY. Run mcp_server.py; it listens on http://0.0.0.0:8080 by default. Configure Claude Desktop by setting the command and argument fields in claude_desktop_config.json using the paths from which python and pwd.
Key features of MCP Server
- Exposes arm, takeoff, land, and mode switching tools
- Retrieves global and local position, home location, and distance to home
- Returns attitude, battery status, and full vehicle status summary
- Supports mission upload and set home operations
- Works over HTTP/SSE with DroneKit and ArduPilot SITL
- Integrates with Claude Desktop for natural‑language drone control
Use cases of MCP Server
- Control a quadcopter in ArduPilot SITL from Claude Desktop
- Automate takeoff, waypoint navigation, and landing via MCP tools
- Retrieve real‑time telemetry (position, battery, attitude) for monitoring
- Upload and execute survey or custom missions on a physical drone
- Debug API exceptions with built‑in exception info tool
Comments