Skip to content

Guide

The Google Flights MCP in VS Code and Cursor

Published November 8, 2026

Short answer: Click Install in VS Code (or Add to Cursor) below for https://flights.flightpowers.com/mcp and https://hotels.flightpowers.com/mcp, sign in with Google when the editor asks, and the agent can read live Google Flights fares and Booking.com rates while it codes. The first 10 searches each day are free, with no key and no card. For more, paste your own RapidAPI key once: flights PRO is $10 a month for 2,500 searches.

Both servers are hosted, so nothing runs on your machine and there is nothing to install but the URL. Google has had no public flights API since QPX Express closed in April 2018; these servers read Google Flights and Booking.com when the agent asks and hand back JSON. They are mine (FlightPowers).

What you need

  • VS Code with GitHub Copilot Chat, or Cursor
  • A Google account for the sign-in
  • Optional: a RapidAPI key for the Google Flights Live API and the Booking Live API, once 10 searches a day is not enough. One key covers both once you subscribe to each listing. Flights PRO is $10 for 2,500 searches a month, hotels PRO $10 for 2,000; the free BASIC tier (50 requests a month on flights, 10 on Booking.com) only checks your key works.

Install in VS Code

One click each opens VS Code's MCP install screen with the name and the URL filled in:

Hotels (Booking.com)
Sign in with Google: 10 free searches a day, no card. More with your own key: PRO $10/month for 2,500 flight searches.

By hand: create .vscode/mcp.json in your project (or run MCP: Open User Configuration from the Command Palette for every project) and add the two servers. VS Code's own format uses a servers object:

{
  "servers": {
    "flightpowers-flights": { "type": "http", "url": "https://flights.flightpowers.com/mcp" },
    "flightpowers-hotels": { "type": "http", "url": "https://hotels.flightpowers.com/mcp" }
  }
}

Start the servers, and when VS Code says a server wants you to sign in, allow it and sign in with Google in the browser window it opens. Nothing secret goes in this file, so you can commit it. Then ask Copilot Chat for a fare; the tools are listed under Configure Tools in the chat input.

The key in a header, for VS Code without a sign-in

If you would rather not sign in, send your RapidAPI key in a header. VS Code asks for it once and keeps it in its secret storage, so the key never sits in the file:

{
  "inputs": [
    { "type": "promptString", "id": "rapidapi-key", "description": "RapidAPI key", "password": true }
  ],
  "servers": {
    "flightpowers-flights": {
      "type": "http",
      "url": "https://flights.flightpowers.com/mcp",
      "headers": { "x-rapidapi-key": "${input:rapidapi-key}" }
    },
    "flightpowers-hotels": {
      "type": "http",
      "url": "https://hotels.flightpowers.com/mcp",
      "headers": { "x-rapidapi-key": "${input:rapidapi-key}" }
    }
  }
}

Install in Cursor

One click each opens Cursor's install screen:

Flights
Add to Cursor
Hotels (Booking.com)
Add to Cursor

By hand: add this block to .cursor/mcp.json in your project root (Cursor uses mcpServers, not servers):

{
  "mcpServers": {
    "flightpowers-flights": { "url": "https://flights.flightpowers.com/mcp" },
    "flightpowers-hotels": { "url": "https://hotels.flightpowers.com/mcp" }
  }
}

Restart Cursor, sign in with Google when it offers the sign-in, and the tools appear in the agent's toolbox. For CI or a machine with no browser, keep the same URLs and add "headers": { "x-rapidapi-key": "YOUR_RAPIDAPI_KEY" } to each server, and keep that copy of the file out of a shared repository. The Cursor guide has prompts for writing and testing travel features against live data.

Going past 10 searches a day

The free searches run on our key and are shared by the flights and hotels servers. To go past them, paste your RapidAPI key once: on the page that opens when you sign in, or later at https://flights.flightpowers.com/connect with the same Google account. It is encrypted before it is stored, only its last four characters are shown again, and searches then meter against your own subscription. Disconnect on the connect page deletes it.

The tools

The flights server has two: search_oneway_flights and search_roundtrip_flights. Both take a date range (departure_date_from / departure_date_to) and several destinations in to_airport, and expand them on the server, so a whole month is one tool call. Each fare comes with the airline, stops, a buy_link to Google Flights and, when Google shows one, its price range for the route. A round trip comes back paired, both legs with one total_price.

The hotels server has search_hotels (Booking.com by destination, with filters such as review_score_8 and free_cancellation) and find_hotel_by_name (one property by the name a person would type, with price_as_seen_from to price it as a shopper in another country sees it), plus two Airbnb tools that need their own Airbnb Live API subscription. The MCP servers page prints every parameter.

Prompts to try

Write a parser from a real response. "Call search_oneway_flights for LHR to JFK on the first Tuesday of next month and show the raw JSON so we can type it."

Build a fixture. "Find the five cheapest days to fly Lisbon to New York next month and save them as a test fixture."

Hotels. "Find a hotel in Lisbon for three nights next month, 2 adults, review score 8+, free cancellation."

A month of dates at one trip length is about 30 searches in a single call, so scans like that run on your own key, not on the 10 free a day. There is also a free server with ads, 50 searches a day: free-trial.flightpowers.com/mcp.

FlightPowers (mine)

Try mine on your own searches

It reads live Google Flights fares and Booking.com rates when you ask and returns them as JSON, over REST or as an MCP server for Claude, Cursor and ChatGPT.

  • Google Flights Live API: free for 50 searches a month, then PRO $10 a month for 2,500, ULTRA $25 for 10,000, MEGA $50 for 25,000.
  • Booking Live API (Booking.com rates): free for 10 searches a month, then PRO $10 a month for 2,000, ULTRA $30 for 6,000, MEGA $75 for 15,000.

In Claude, the same data is two connectors: flights.flightpowers.com/mcp and hotels.flightpowers.com/mcp.

Sign in with Google: 10 free searches a day, no card. More with your own key: PRO $10/month for 2,500 flight searches.

Add to Claude: after Continue, choose ‘Sign in when needed’ (not the pre-selected ‘No sign-in’), then Add.

Docs: the Flights API, the Hotels API, the MCP servers and every plan side by side.