Fli

v1.0.0Search & Data Extractionstable

Google Flights MCP, CLI and Python Library

apiflights-apigoogle-flightsgoogle-flights-apimcp
Share:
2,611
Stars
0
Downloads
0
Weekly
0/5

What is Fli?

Fli is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to google flights mcp, cli and python library

Google Flights MCP, CLI and Python Library

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Google Flights MCP, CLI and Python Library

Use Cases

Search and compare flight options
Get real-time flight pricing data
punitarani

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx fli

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Fli

Fli is a Python library, CLI, and MCP server that provides programmatic access to Google Flights data by directly interacting with Google's internal API through reverse engineering — no HTML scraping, no browser automation. It exposes two MCP tools: search_flights for searching specific dates with rich filters (cabin class, stops, airlines, alliances, layover times, currency, language), and search_dates for finding the cheapest travel dates across a flexible date range. Travel developers, AI agents, and frequent flyers use it to compare fares, plan itineraries, and get real-time pricing from Google Flights without paying for a third-party flights API.

Prerequisites

  • Python 3.10+
  • pipx (recommended for CLI/MCP server install) or pip
  • An MCP-compatible client such as Claude Desktop
  • Internet access (no API key required — Fli uses Google Flights' public endpoint)
1

Install Fli using pipx (recommended)

Installing with pipx makes the fli-mcp binary available globally without polluting your system Python.

pipx install flights
2

Verify the installation

Confirm the fli CLI and MCP server binaries are available on your PATH.

fli --help
which fli-mcp
3

Test flight search from the CLI

Run a basic search to confirm the library can reach Google Flights before wiring up the MCP server.

# Basic one-way search
fli flights JFK LHR 2026-10-25

# With filters
fli flights JFK LHR 2026-10-25 --class BUSINESS --stops NON_STOP --sort CHEAPEST
4

Start the MCP server

Launch the Fli MCP server on stdio transport for integration with Claude Desktop and other MCP clients.

fli-mcp
5

Add Fli to your Claude Desktop configuration

Edit your Claude Desktop MCP config to register Fli as a server. Replace the path with the output of 'which fli-mcp' on your system.

Fli Examples

Client configuration

Add Fli to Claude Desktop's MCP server configuration. Use the absolute path returned by 'which fli-mcp'.

{
  "mcpServers": {
    "fli": {
      "command": "/Users/<your-username>/.local/bin/fli-mcp"
    }
  }
}

Prompts to try

Example prompts you can send to Claude once Fli is connected as an MCP server.

- "Find me the cheapest non-stop business class flights from JFK to LHR next month."
- "What are the cheapest travel dates from SFO to Tokyo between December 2026 and January 2027 for a 10-day trip?"
- "Search for flights from SEA to HKG on December 26th 2026 with British Airways or Cathay Pacific only, economy class."
- "Compare the prices for a round trip from NYC to Paris leaving January 5th and returning January 12th 2027."

Troubleshooting Fli

fli-mcp binary not found after pipx install

Run pipx ensurepath to add the pipx bin directory (~/.local/bin on Linux/macOS) to your PATH, then restart your shell. Verify with which fli-mcp. If using pip instead of pipx, the binary lands in your Python environment's bin directory — activate the environment or use its full path in the Claude Desktop config.

Flight searches return no results or raise an error

Fli communicates directly with Google Flights' internal API which may occasionally rate-limit requests. Wait a few minutes and retry. Also ensure the departure date is in the future and the airport IATA codes are valid (e.g. JFK not 'New York'). For round trips, always provide a return_date.

Claude Desktop does not see the Fli tools after adding it to the config

The command in the MCP config must be an absolute path to the fli-mcp binary. Find it with which fli-mcp and paste the full path (e.g. /Users/yourname/.local/bin/fli-mcp) into the config. Then fully restart Claude Desktop — a reload is not sufficient for MCP server changes to take effect.

Frequently Asked Questions about Fli

What is Fli?

Fli is a Model Context Protocol (MCP) server that google flights mcp, cli and python library It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Fli?

Follow the installation instructions on the Fli GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Fli?

Fli works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Fli free to use?

Yes, Fli is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "fli": { "command": "npx", "args": ["-y", "fli"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Fli?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides