An Open-Source MCP Server for VFR Flight Planning — and Shopping for Airline Tickets

By Prahlad Menon 8 min read

If you’ve ever flown VFR (visual flight rules — no instrument rating, no flying into clouds) out of the mid-Atlantic in late fall, you know the real opponent isn’t the airplane, it’s the weather, and it changes its mind every morning. flightplanner-mcp is an open-source MCP (Model Context Protocol) server that turns that daily ritual over to Claude Code, or any other MCP-compatible AI assistant: it reads live aviation weather, builds a route forecast, and writes a VFR go/no-go briefing — and it can shop for airline tickets when flying isn’t the answer. Here’s what it does, how to install it, and an unplanned second tool that came out of using it over a real Thanksgiving travel week.

The problem: the same ritual, every single morning

Flying a fast single-engine piston airplane out of western Pennsylvania as a VFR-only pilot means staying out of the clouds, full stop. Every trip used to start the same way: a dozen aviationweather.gov tabs, squinting at forecast maps, cross-referencing winds aloft, and working fuel against the airplane’s performance tables — then doing it all again the next morning because the forecast had moved.

The build: an MCP server with twenty aviation tools

The core of the project is a custom MCP (Model Context Protocol) server — the standard way to hand an AI assistant real, callable tools instead of just more context. Because it’s MCP, it isn’t locked to one product: any MCP-compatible client (Claude Code, Claude Desktop, and a growing list of other AI coding/chat tools) can install it and get roughly twenty tools purpose-built for flight planning:

  • Live weather from aviationweather.gov — METARs, TAFs, PIREPs, SIGMETs, G-AIRMETs, and Center Weather Advisories, filtered to the route and planned altitude.
  • NOAA Graphical Forecast for Aviation (GFA) screenshots, which Claude has to actually look at and describe along the route — not just attach as an image.
  • A route weather profile from the GFS forecast model, reaching about 15 days out. It samples the route every 30–40 nautical miles and assigns each point a VFR verdict: ok, on_top, below_layer, marginal, or imc (inside cloud). This single check does more real planning work than anything else in the system.
  • A nav log built from the aircraft’s actual Pilot’s Operating Handbook — fuel burn and true airspeed come from the airplane’s real performance tables at various power settings, not rules of thumb.
  • Weight and balance, fuel-stop suggestions (runway length, fuel availability, whether anyone’s there when you land), and a radio plan — who to call, on what frequency, and what to say at each stage.

Everything compiles into a self-contained HTML briefing report: a side-view profile of the route with clouds and freezing level drawn in, a takeoff-time slider that re-rates the whole flight for departures up to ±3 hours either direction, the nav log, fuel numbers, weather maps, and a stage-by-stage narrative written from the pilot’s seat — e.g., “West Virginia ridges, 12:15–1:00 PM: ceilings about 2,100–2,600 ft over terrain up to 4,000 ft, with rain. There isn’t enough room under the cloud.” Reports publish to a small private site and can be refreshed on command, rebuilding every upcoming report with the latest data while keeping the previously written verdict timestamped for comparison.

Rules that mattered more than features

A handful of hard constraints are what turned this from a demo into something actually trustworthy in the cockpit:

  1. “Not instrument rated” is a hard rule, not a preference. The planner will never route into, through, or between cloud layers. “VFR on top” gets flagged as a caution — not a green light — because you need a dependable way back down through the clouds below.
  2. VFR cruising altitudes by magnetic course, and land before sunset. On one trip, the system caught that a “Friday evening” Florida arrival only worked with a 10:30 AM departure plus a fuel stop — a 40–50 kt headwind had pushed the nonstop flight time past 5 hours and past usable fuel.
  3. Cross-check the narrative against the computed numbers. Early on, a written summary said “land about 2:35” while the nav log computed 4:40 en route. Every rebuild now checks stated times against the math.
  4. US Eastern time first, Zulu (UTC) second — the pilot thinks in local time, ATC thinks in UTC.
  5. Every report ends with: check NOTAMs and TFRs, and get an official briefing. The tool assists the decision; it doesn’t replace the official one.

The stress test: Thanksgiving week

The real proving ground was Thanksgiving week, weighing two possible trips — one to Florida, one to Boston — with a return on either Sunday or Monday. Refreshing the plan each morning produced a genuinely different forecast every single day:

  • Monday’s look: Sunday’s return from Boston was a no-go.
  • Tuesday: Sunday looked “possible,” Monday looked good.
  • Wednesday morning: Sunday was a go at every altitude from 9 AM–1 PM, and Monday had collapsed into 700–2,300 ft ceilings with drizzle at −3 °C.

Watching those flips stack up, dated and archived side by side, taught more about forecast confidence than any ground-school unit: days 1–2 of a forecast are solid, days 4–5 are a coin that keeps landing differently. The new planning rule is two consecutive model runs agreeing, not one good-looking forecast.

The system is also honest about its limits. Asked to plan a trip 16 days out, the GFS-based route profile declined outright: “GFS guidance only reaches about 15 days ahead.” It saved the trip’s inputs instead, so the full report builds itself automatically once the date comes into forecast range — a better answer than a confident-sounding forecast invented from nothing.

The detour: when flying doesn’t make sense, what does a ticket cost?

Some trips just don’t make sense in a small airplane — mid-December, Appalachian ridges, freezing levels near the ground. For a quick Pittsburgh–Atlanta round trip, the next question was simply: what should this cost on the airlines? Google Flights has no public API, and the commercial fare APIs that exist are either paid, require an account, or skip low-cost carriers entirely.

The workaround: a second Claude Code skill, /airfare, that drives a real Chrome browser. No API keys, no scraping service. Claude opens Google Flights, then checks Southwest, Frontier, Spirit, Breeze, and Allegiant directly on their own sites when they serve the route, reads the results, and compares them — under strict guardrails:

  • Look, don’t book. It never signs in, never enters payment or personal details, and never clicks purchase.
  • If a site throws up a CAPTCHA or blocks the search, it stops and hands back the link instead of trying to work around it.
  • It compares basic economy vs. regular economy, and round-trip vs. two one-ways — exactly where the real price gaps tend to hide.

For a Pittsburgh–Atlanta search, it found only Delta and Southwest fly the route nonstop, with Southwest offering just one nonstop each way, in the afternoon. The best morning option was a Delta flight at $210 basic / $280 regular; the next morning’s nonstop jumped to $369. It also flagged that a Delta round trip priced below the cost of two separate one-ways, and that Google’s own fare-trend signal expected prices to rise $35–90 within days — a genuinely useful “book now or wait” answer in about two minutes.

What stuck, as lessons

  • Real tools beat more prompting. The jump in quality came from structured data — per-point VFR status, actual POH performance tables — not cleverer instructions.
  • Show the work. Describing every weather screenshot, timestamping every verdict, and keeping old reports around turned “trust me” into “here’s why.”
  • Free data has real limits — plan around them, don’t paper over them. The GFS weather API used here has a daily quota, so NOAA’s own gridded GFS data (NOMADS, no quota) got added as a fallback for quick looks. The old aviationweather.gov text tables for winds aloft are gone, so winds now come straight from the model.
  • Guardrails are the actual feature. “Never plan VFR into cloud,” “never book a ticket,” “stop at a CAPTCHA” — these constraints are exactly why the tool is trustworthy enough to actually use.

The necessary disclaimer

This is a personal planning aid, not an approved weather source. The forecasts it reads can be wrong, especially more than three days out. Before any flight: get an official briefing (1-800-WX-BRIEF or an FAA-approved provider), check NOTAMs and TFRs, and make the go/no-go decision yourself. As pilots say — better to be on the ground wishing you were in the air than the other way around.

Get the code

The planner, both slash commands, and the briefing reports are open source under the MIT license: github.com/menonpg/flightplanner-mcp.

git clone https://github.com/menonpg/flightplanner-mcp.git && cd flightplanner-mcp
./run.sh --setup-only   # Python venv, dependencies, headless Chromium
claude                  # approve the "flightplanner" MCP server, then try /flightplan

It ships with typical performance numbers for common types (C172, Archer, SR22, Baron, TBM, King Air, CJ3). For book-accurate numbers, have Claude digitize your POH’s performance section — but keep that local, since the POH is the manufacturer’s copyrighted document. /airfare needs the Claude in Chrome extension.

Next up: having it watch the next model runs and ping me when a “no-go” turns into a “go.” If you’re a pilot who builds things, or a builder who flies, I’d love to hear what you’d add.