google-flights-mcp
Search Google Flights for one-way, round-trip and multi-city fares, with offline airport lookup and nearby-airport resolution.
README
<div align="center">
Google Flights MCP
MCP server for searching Google Flights with real-time prices — from your AI assistant, no API key and no browser.
Installation · Tools · Examples · Limitations · 🇫🇷 Français
</div>
Overview
This MCP server searches Google Flights and returns live prices as 6 tools your assistant can call. No API key, no headless browser — it decodes Google's own query format directly. Ask in natural language:
You: Compare round-trip prices from Nice or Marseille to Tenerife, July 29 – August 12, for 2 adults and 2 kids.
Assistant: (calls
compare_destinations) Cheapest: Tenerife (TFS) €612 from NCE, 1 stop, 8 h 40 — Vueling. Marseille was €40 more. Full breakdown by date below.
Requirements
- Python ≥ 3.10
- Any MCP client — Claude Code, Claude Desktop, Cursor…
Installation
git clone https://github.com/manganate006/google-flights-mcp
cd google-flights-mcp
python3 -m venv venv
./venv/bin/pip install "fast-flights>=3.0" "mcp[cli]>=1.0.0" "airportsdata>=20240101"
Claude Code
claude mcp add google-flights -- \
/absolute/path/to/google-flights-mcp/venv/bin/python \
/absolute/path/to/google-flights-mcp/server.py
Claude Desktop / Cursor
Add to claude_desktop_config.json (or your client's MCP config):
{
"mcpServers": {
"google-flights": {
"command": "/absolute/path/to/google-flights-mcp/venv/bin/python",
"args": ["/absolute/path/to/google-flights-mcp/server.py"]
}
}
}
No environment variables, no API key needed.
Tools
6 tools — full parameters in docs/TOOLS.md.
| Tool | Purpose |
|---|---|
find_airport |
Resolve a city/name to IATA code(s) — call this first (handles exonyms, fuzzy spelling), offline |
find_airports_near |
Airports near a lat/lon, sorted by distance |
search_flights |
One-way / round-trip; multiple departure and arrival airports; stop/airline/currency filters |
search_multi_city |
Multi-leg itineraries |
search_flexible_dates |
Cheapest departure day over a date range (throttled, ≤ 14 dates) |
compare_destinations |
Rank several destinations by price from one origin (≤ 8) |
Examples
- "Flights from Nice to Lisbon on August 1st for 2 adults and 2 children"
- "Compare Nice vs Marseille to Tenerife, round-trip July 29 – August 12"
- "Cheapest day to fly Nice → Barcelona between Aug 1 and Aug 15, direct only"
- "Multi-city: Nice → Barcelona Aug 1, Barcelona → Lisbon Aug 8"
Sample search_flights result (trimmed):
{
"success": true,
"count": 7,
"flights": [
{ "price_total": 836, "currency": "EUR", "airlines": ["Vueling"],
"stops": 1, "total_duration_min": 215,
"legs": [{ "from": "NCE", "to": "LIS", "departure": "2026-08-01 22:30",
"duration_min": 215, "plane": "Airbus A320" }] }
]
}
How it works
Google Flights is a JavaScript SPA, so scraping the HTML doesn't work. This server:
- uses fast-flights v3 to encode queries as Protocol Buffers (the
tfs=URL parameter); - fetches with primp (Rust HTTP client with TLS fingerprinting);
- injects a
SOCSconsent cookie to bypass the EU GDPR "Before you continue" wall that otherwise blocks EU-based servers — the same acceptance your browser sends, without the click; - parses the flight data from the embedded
<script class="ds:1">payload.
Limitations
- Rate limiting — Google may throttle if called too often; space out searches
- Prices are real-time but may differ slightly from booking sites (caching)
- Currency defaults to EUR (per-search
currencyparameter) - Search-only — no booking; book on the airline's site
License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.