punitarani/fli

Google Flights MCP, CLI and Python Library

What it solves

Fli provides a way to programmatically access Google Flights data without relying on fragile web scraping or browser automation. It allows users to search for flights, find the cheapest travel dates, and manage multi-city itineraries through a stable, direct API interaction.

How it works

The project reverse-engineers Google Flights' internal API to enable direct communication. It is implemented as a Python library and a TypeScript port (fli-js), and it includes a Command Line Interface (CLI) for quick searches. Additionally, it implements a Model Context Protocol (MCP) server, which allows AI assistants (like Claude) to execute flight searches using natural language commands.

Who it’s for

  • Developers who want to integrate flight search capabilities into their own applications via Python or TypeScript.
  • Power users who prefer a CLI for searching flights and finding deals.
  • AI users who want to give their LLM assistants the ability to search for real-time flight data.

Highlights

  • Direct API Access: Faster and more reliable than HTML parsing or scraping.
  • MCP Server: Enables AI agents to perform flight searches via natural language.
  • Flexible Search: Supports one-way, round-trip, and multi-city flights with advanced filters for cabin class, airlines, alliances, and layover durations.
  • Date Discovery: A dedicated tool to find the cheapest travel dates across a flexible range.
  • Comprehensive Tooling: Includes a CLI, Python/TypeScript libraries, and built-in protection like rate limiting and automatic retries.

Related

  • Project
  • Project
  • Project
  • Project
  • Project