
Ardupilot Mavlink Mcp
io.github.rmeadomavicPublished by GitHub account rmeadomavicv0.1.0Updated Oct 24, 2026
Live ArduPilot control over MAVLink: state, params, modes, prearm diagnosis, gated arm. SITL-first.
Overview
A local MCP server that lets an assistant read and, when explicitly enabled, command an ArduPilot vehicle over MAVLink, SITL-first.
- What you can do
- Connect to a vehicle over a MAVLink link (TCP, UDP or serial), defaulting to local SITL, and read cached telemetry as a resource or tool result: mode, armed state, GPS, battery, attitude and position. Read recent STATUSTEXT and prearm messages to explain why arming failed. Read, list (with glob patterns) and set parameters, with writes confirmed by the echoed value. Switch flight modes by name per vehicle type. Arm or disarm, reporting the COMMAND_ACK result and prearm reasons on refusal, without force-arming.
- When to use it
- Useful when you want an assistant to inspect a running ArduPilot vehicle in the moment rather than analyze logs after landing, for example diagnosing a vehicle that will not arm or checking parameters and mode. Intended first for SITL development and bench testing.
- Requirements
- Python package installed locally (pipx or uv tool install) and run as a stdio process. A reachable ArduPilot vehicle or SITL instance, given as a pymavlink connection string such as tcp:127.0.0.1:5760, udp:127.0.0.1:14550 or serial:/dev/ttyACM0:115200. MAVLink2 is assumed. Actuation requires the --enable-actuation flag; real links additionally require --allow-real-vehicle.
Installation
In SourceWeft
- Open Ardupilot Mavlink Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
ardupilot-mcp
An MCP server that lets an AI agent talk to an ArduPilot vehicle over MAVLink. Read state, inspect and change parameters, switch modes, read prearm failures, and (gated) arm or disarm. SITL-first.
Install: pipx install ardupilot-mavlink-mcp
mcp-name: io.github.rmeadomavic/ardupilot-mavlink-mcp
[CI] [PyPI] [License: MIT] [Python] [MCP]
[!WARNING] This tool can ARM and command a real aircraft. A bad command can spin props or fly a vehicle away. Defaults are built to stop that: actuation is OFF unless you pass
--enable-actuation, and even then it refuses a real (non-loopback) link unless you also pass--allow-real-vehicle. Develop against SITL. On hardware, bench-test with props off first. No warranty — you own the outcome.
Why
Most ArduPilot tooling for LLMs targets post-flight log analysis. This one drives the live link: connect to a running vehicle, read its state and params, change modes, and diagnose why it won't arm — in the moment, not after landing. The useful case: point an agent at a vehicle that won't arm, have it read the params and the prearm STATUSTEXT, and tell you why, instead of you squinting at a GCS message log. The arm tool reports the real COMMAND_ACK result and hands back the prearm reasons on refusal; it never force-arms.
Architecture
MAVLink is an async stream; MCP tools are synchronous. One background thread owns the link and is the only reader — it caches the latest message of each type and routes PARAM_VALUE into a param store. Tool calls read from those caches (params block until the data arrives). No two threads ever call recv_match.
What it does
- Reads vehicle state from cache, instantly. Mode, armed, GPS fix and sats, battery, attitude, position — served from cached telemetry, no blocking on the link.
- Diagnoses a no-arm.
ardupilot_armreturns theCOMMAND_ACKresult and, on refusal, the prearmSTATUSTEXT(e.g.AHRS: waiting for home,Accels inconsistent). Safety checks are respected — noARMING_CHECK=0, no force-arm magic number. - Gets and sets parameters on the real param table, with
setconfirmed by the echoedPARAM_VALUE. - Switches flight modes by name, mapped per vehicle type (Copter/Rover/Plane/Sub) — not hardcoded numbers.
Quick start (SITL)
You need an ArduPilot SITL instance. From an ardupilot checkout:
Install and run the server (read-only by default):
To allow parameter writes, mode changes, and arm/disarm against SITL, add --enable-actuation.
Use with an MCP client
Claude Code:
Claude Desktop / any mcpServers config:
Connection strings are pymavlink syntax: tcp:127.0.0.1:5760 (SITL), udp:127.0.0.1:14550, serial:/dev/ttyACM0:115200.
Tools
Write tools are gated and carry the MCP destructiveHint. Live telemetry is also exposed as the resource ardupilot://telemetry.
Supported vehicles
MAVLink2 is assumed. Not flown on hardware — SITL only so far.
Safety model
- Actuation tools are OFF by default. Enable with
--enable-actuation. - Even enabled, actuation on a real link (serial or non-loopback network) is refused unless
--allow-real-vehicleis also set. - Link classification fails safe: anything not clearly loopback is treated as a real vehicle.
arm,disarm,set_param, andset_modeall pass through this gate before sending.- Arming has no force-arm option, and
set_paramrejectsARMING_CHECKwrites (case-insensitive) on every link, even when both actuation flags are enabled.
Status
Working: reads plus gated parameter writes, mode changes, and arm/disarm against ArduCopter SITL. Validated three ways — unit tests (Python 3.10–3.12), a real-MAVLink-wire check (scripts/wire_check.py), and a live ArduPilot SITL run (scripts/sitl_check.py).
Open targets: validate Rover/Plane/Sub; mission upload/download and guided flight (takeoff/goto/land) are deferred — mission protocol is a stateful handshake and guided commands are fly-away risk. See ROADMAP.md.
Develop
License
MIT — Kyle Adomavicius
Source: README.md at commit 569d9d0
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts