Skip to main content
Back

Open-Source fli Lets Claude Search Google Flights Without an API Key

fli gives Claude and any MCP-compatible AI direct access to Google Flights data — no scraping, no API key, fully open source

Pro

Repo, Full Access
  • fli is an open-source Python library and MCP server that gives AI assistants direct access to Google Flights data by reverse-engineering the API — no scraping, no API key required.
  • It ships with a CLI, a Python API, and an MCP server compatible with Claude Desktop, Claude Code, Cursor, and any MCP client.
  • The MCP server exposes four tools: search_flights, search_dates, get_booking_options, and find_airports, with deep-link booking URLs in every result.
  • Filters include cabin class, stops, airlines, alliances, layover windows, currency, and day-of-week preferences for date range searches.
  • The main caveat: it hits a reverse-engineered, undocumented API that can be rate-limited (HTTP 429) and may break if Google changes its internals.
  • Free under MIT license; install via pip install flights — a TypeScript port (fli-js) is also available on npm.

fli is an open-source Python library that lets you query Google Flights programmatically , and now, lets AI assistants like Claude do it too, through a built-in MCP server. Instead of parsing HTML or spinning up a headless browser, fli directly interacts with Google Flights' API through reverse engineering, making it faster and far less brittle than traditional scraping approaches. It has crossed 3,000 GitHub stars and 358 forks, with a TypeScript port now available on npm as well.

The problem it actually solves

Flight data has always been notoriously hard to access programmatically. Official APIs from aggregators like Amadeus or Skyscanner require registration, approval, and often cost money. Scraping Google Flights with Selenium or Playwright works until Google changes a CSS class. fli provides direct programmatic access to Google Flights data through reverse-engineered API interactions rather than traditional web scraping, enabling faster, more reliable, and more stable access to flight information, avoiding the fragility associated with HTML parsing and UI changes.

The result: no API key needed, no browser automation overhead, and no per-call fees. It is free to use under the MIT license.

Two ways in: CLI and MCP

fli ships with three interfaces. You can use it as a Python library, as a CLI tool, or as an MCP server. MCP (Model Context Protocol) is Anthropic's open standard that lets AI assistants call external tools in a structured way , think of it as a typed function-calling interface that any compatible AI client can speak. fli includes an MCP server that allows AI assistants to interact with flight data using structured tools, enabling natural language queries and automation workflows.