Repository avatar
AI Tools
v1.0.0
active

fare-scout

io.github.kokkkkk/fare-scout

Track flight drops, flexible dates, multi-city trips, airline bag fees, and train/ferry costs.

Documentation

Fare Scout

Fare Scout

Smart flight & door-to-door trip price tracker โ€” with real airline bag fees, train/ferry add-ons, AI Trip Builder, and Claude & Gemini MCP support.

๐ŸŒ Live App (flyfarescout.com) ยท ๐Ÿ“ฆ v1.0.0 Release ยท โœ… CI Checks ยท ๐Ÿ”’ Privacy Policy


Why Fare Scout?

Standard flight alerts miss how people actually plan real trips:

  • You want to fly into Istanbul and return from Athens (open-jaw multi-city).
  • You want to fly light on the way out (0 checked bags) and check 1 bag on the way home for shopping โ€” and know what the actual airline charges.
  • Your trip needs a train, ferry, or regional flight not listed on Google Flights (like Winnipeg โ†’ Churchill on VIA Rail or Calm Air).
  • You want to scan an entire flexible date window instead of guessing one date.

Fare Scout tracks all of it in one dashboard and alerts you only when prices genuinely drop.


Key Features

  • 3 Tracking Modes:
    • Exact Dates (round-trip or one-way, multi-airport support like HND,NRT)
    • Flexible Date Range (scans a departure window via google_flights_calendar to pinpoint the cheapest dates)
    • Multi-City / Open-Jaw itineraries
  • Smart Auto-Adjusting Alerts:
    • Triggers automatically on Google Flights typical low, statistical 2-SD drops (once โ‰ฅ14 checks are collected), running-average sensitivity, or an optional manual max price.
    • Delivered via Email and Telegram.
  • Per-Direction & Per-Leg Luggage + Real Airline Bag Fees:
    • Passes carry-on bags (bags=1/2) directly to Google Flights so Basic Economy traps are excluded.
    • Tracks separate Outbound vs. Return (or per-leg) checked bags and looks up the actual airline's checked-bag fee & official policy link after fetching the flight.
  • Extra Ground & Regional Transport:
    • Add train, bus, ferry, or regional flight legs (with automatic price estimation and 1-click suggestions for open-jaw gaps & gateway cities like Churchill โ†” Winnipeg).
  • AI Trip Builder (Cloudflare Workers AI):
    • Describe a trip in plain English (or edit an existing route in place) to auto-fill airports, dates, stops, extra legs, and recommended luggage โ€” hardened with prompt-injection filtering and per-user rate limiting.
  • Claude & Gemini OAuth 2.1 MCP Connector:
    • Connect your Fare Scout account directly to Claude or Gemini to inspect tracked routes, check active deals, and add/remove routes from chat.

Architecture

LayerTechnologyRole
FrontendCloudflare Pages (docs/)Static web app, Chart.js dashboards, live anonymous homepage fare trends
AI Trip ParserCloudflare Workers AI (@cf/meta/llama-3.3-70b-instruct-fp8-fast)Natural-language trip & luggage parser (functions/api/parse-trip.js)
Database & AuthSupabase (PostgreSQL + RLS + Google OAuth / Magic Link)Per-user settings & routes, shared anonymous price_history
MCP ConnectorSupabase Edge Function (supabase/functions/fare-scout-connector)OAuth 2.1 + Streamable HTTP MCP server for Claude & Gemini
Price TrackerGitHub Actions (tracker.py + SerpApi)Runs twice daily (9 AM / 9 PM EST), estimates bag/train fees, dispatches alerts
CI/CDGitHub Actions (.github/workflows/ci.yml)Runs Python pytest, Node frontend/security tests, and Deno type-checks

Connect to Claude or Gemini (MCP)

Use the Streamable HTTP MCP endpoint with standard OAuth 2.1 (Dynamic Client Registration):

https://mcp.flyfarescout.com

Example prompts once connected:

  • "Show me my tracked flight routes and whether any are below target price."
  • "Track a round-trip flight from Toronto (YYZ) to Tokyo (NRT) from 2027-05-10 to 2027-05-24 with 1 carry-on."
  • "What are the cheapest dates in my flexible range and give me the booking link?"

Running Tests Locally

# Python tracker tests (route keys, SerpApi params, alert math, airline bag fees)
python -m pytest -v

# Frontend, affiliate deep-link, and AI prompt-injection security tests
node tests/test_frontend.mjs

# Supabase Edge Function type-check
deno check supabase/functions/fare-scout-connector/index.ts

Support & Contact

No installation packages available.

Remote