Fli
Google Flights MCP, CLI and Python Library
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
Maintainer
Works with
Installation
Manual Installation
npx fliConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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)
Install Fli using pipx (recommended)
Installing with pipx makes the fli-mcp binary available globally without polluting your system Python.
pipx install flightsVerify the installation
Confirm the fli CLI and MCP server binaries are available on your PATH.
fli --help
which fli-mcpTest 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 CHEAPESTStart the MCP server
Launch the Fli MCP server on stdio transport for integration with Claude Desktop and other MCP clients.
fli-mcpAdd 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.
Fli Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to Fli? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
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.
Set Up Fli in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.