Google Flights logo

Google Flights

Searches Google Flights for fares, price trends, airport options, cabin comparisons, emissions, and layover details.

Install Google Flights

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "google-flights": {
      "command": "npx",
      "args": [
        "-y",
        "google-flights-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio google-flights -- npx -y google-flights-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y google-flights-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

google-flights MCP server connects MCP clients to Google Flights search data without requiring an API key. Its tools cover one-way and round-trip searches, date-price analysis, cabin comparisons, airport lookup, nearby-airport discovery, emissions, layover analysis, booking URLs, and SQLite-backed price tracking. It reads data embedded in Google's public search page, with caching, retries, rate-limit handling, and response validation. Reach for it when an agent needs to compare flight options or monitor fares, while keeping in mind that multi-city search is currently unavailable and Google may change the page format.

Use cases

  • Search one-way and round-trip flight options
  • Compare fares across departure dates and cabin classes
  • Track route prices and review historical observations
  • Find alternative airports near a departure or arrival airport
  • Evaluate emissions and layover quality before booking

Key features

  • Google Flights searches without an API key
  • Fare calendars and date-price rankings
  • SQLite price tracking with trend reporting
  • Cabin, emissions, aircraft, and seat-pitch comparisons
  • Airport lookup and nearby-airport discovery
  • Layover analysis and direct Google Flights URLs

Tools12

What Google Flights lets your agent do. Expand a tool for its parameters.

Self-reported~324 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/26 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · google-flights-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
npm downloads900Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed12Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Google Flights works

What google-flights does

google-flights exposes Google Flights data through MCP tools for flight research and fare monitoring. Search results can include prices, airlines, durations, stops, aircraft, seat pitch, CO2 emissions, and Google's assessment of whether a fare is low, typical, or high.

The server also supports date and cabin comparisons. get_calendar_heatmap finds the cheapest one-way fare for each day in a window beginning at a specified departure date, while get_price_insights ranks dates by price. compare_cabin_classes compares economy, premium economy, business, and first class for the same route.

Airport utilities cover searches across more than 8,800 airports and nearby-airport alternatives based on distance. get_flight_url creates a direct Google Flights URL, and analyze_layovers evaluates connection risk, connection type, and aircraft details.

How it works

The server loads Google's public flight-search page and extracts the result data embedded in that page. It does not use an official Google Flights API. This approach provides access to information such as emissions, price context, daily fare data, aircraft, and seat details.

Identical searches are cached for five minutes. Requests affected by HTTP 429 or 5xx responses use exponential backoff with jitter and honor Retry-After headers. A circuit breaker pauses requests after five consecutive failures and attempts recovery after 30 seconds. Structural checks report an explicit error if Google's response format changes.

Round trips and calendar operations can require several page requests. The server limits concurrent work for these fan-out operations. Price tracking stores observations in SQLite at ~/.google-flights-mcp/prices.db; each track_price call records the current cheapest price and compares it with earlier observations.

Setup and configuration

The package can run directly through npx:

config.json
{
  "mcpServers": {
    "google-flights": {
      "command": "npx",
      "args": ["-y", "google-flights-mcp"]
    }
  }
}

For Claude Code, the equivalent command is:

Terminal
claude mcp add google-flights -- npx -y google-flights-mcp

A source installation uses git clone, npm install, and npm run build, followed by an MCP client configuration that starts dist/index.js with Node.js. Restart the client after adding the server.

Tools and capabilities

  • search_flights handles one-way and round-trip searches.
  • search_multi_city describes two- to five-segment searches, but multi-city results are currently unavailable through Google's accessible endpoint; search each leg separately with search_flights.
  • get_calendar_heatmap and get_price_insights inspect fare changes across windows of up to 31 days.
  • track_price, get_price_history, and list_tracked_routes manage SQLite-backed price observations.
  • lookup_airport searches by city, airport name, IATA code, or country; find_nearby_airports uses Haversine distance and defaults to a 200 km radius.
  • compare_cabin_classes, get_flight_url, and analyze_layovers support comparison, booking-link generation, and connection review.

Limitations and notes

Google can throttle frequent requests, and fare data reflects the time of the query rather than a guaranteed booking price. Currency is selected by Google according to IP address and locale. Calendar tools may issue one page request per day, up to 31 requests. maxPrice and maxDuration are applied after results are retrieved, so capped searches may return fewer options. Google's public page and embedded response structure can change, even though the server validates the structure and handles transient failures.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Google Flights

google-flights is an MCP server that connects AI clients to Google Flights search data without an API key. Its main tools search one-way and round-trip fares, compare dates and cabins, track prices in SQLite, inspect airports and layovers, report emissions, and generate direct Google Flights URLs.

Install it with npx or build it from source. For Claude Code, run `claude mcp add google-flights -- npx -y google-flights-mcp`; for Claude Desktop, add an MCP entry using `npx` and the `google-flights-mcp` package, then restart the client.

Yes, google-flights works with Cursor because it supports MCP clients, and Cursor is named as a supported client. Configure Cursor to launch the package through its standard MCP setup using the `npx -y google-flights-mcp` command.

No, google-flights does not require an API key. It reads data embedded in Google's public flight-search page, including fares, emissions, price context, aircraft details, and other search results.

No, multi-city search is currently unavailable through the accessible Google Flights endpoint. The `search_multi_city` tool is exposed, but Google serves multi-city rows only to signed page requests; search each itinerary leg separately with `search_flights`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoogle Flights AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/google-flights?style=directory)](https://allmcps.com/mcp/google-flights)
HTML Embed
<a href="https://allmcps.com/mcp/google-flights"><img src="https://allmcps.com/api/badge/google-flights?style=directory" alt="Google Flights on AllMCPs" /></a>