Spiral gives your agent every tool with one account. Browse the tools →

Cursor · Maps & Reviews

How to Use Google Flights fare search in Cursor

Returns one-way fares or round-trip outbound options from Google Flights, then matching returns after you choose an outbound. Use it to compare trips for specific dates; initial round-trip quotes are starting fares, while return results price the selected pair.

Prompts to try with Google Flights fare search in Cursor

Copy an example into Cursor, or ask in your own words.

Use Google Flights fare search for a one-way economy trip from JFK to LAX on February 10, 2027, for one adult, and populate our comparison table with the returned fares.

Google Flights fare searchCursor
Try asking
  • Use Google Flights fare search from Seattle to Tokyo, departing April 6 and returning April 20, 2027, for one adult in economy. Select an outbound and retrieve matching returns before filling the trip summary.

  • Use Google Flights fare search for Boston to Washington, DC, on March 9, 2027, for one adult in economy. Check whether our results component preserves the source order while allowing a separate fare comparison.

  • Use Google Flights fare search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Google Flights fare search and tell me what changed since last week.

How to set up Google Flights fare search in Cursor

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to Cursor on the console's Agents & MCP page, or add this to .cursor/mcp.json (one project) or ~/.cursor/mcp.json (every project):

    {
      "mcpServers": {
        "spiral": { "url": "https://api.spiral.ai/mcp" }
      }
    }
  2. Sign in

    Open Cursor Settings › MCP, click Connect next to spiral, sign in to Spiral and click Authorize. No API key. Spiral then shows as connected, with its tools listed.

Use the Spiral skill

  1. Send Cursor this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Google Flights fare search

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "flights-google-com/flights/search_flights",
        "input": {
          "origin": "<origin>",
          "destination": "<destination>"
        }
      }'

Then paste one of the prompts above: Cursor finds Google Flights fare search on Spiral, shows the price and runs it.

Google Flights fare search providers and prices

Spiral runs Google Flights fare search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaMaps & Reviews
Google Flights · Search flights
flights-google-com/flights/search_flights

Settings you can ask for

Ask Cursor for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 5010

Maximum rows from Google’s first results page, in its ranked order. Not pagination.

Adults1 to 91

adults

Children0 to 80

At most 9 passengers total, including infants.

Max stopsa number

max_stops

Cabin classeconomy, premium_economy, business, or firsteconomy

cabin_class

Checked bags0 to 10

Checked bags to add to every quoted fare through Google's Bags filter (0 or 1; Google clamps larger counts). Google reprices only fares whose allowance it knows (US domestic and similar); international fares keep their unchanged price and a null checked allowance. With several passengers it applies the filter once and stops stating per-fare inclusions. See price_with_requested_bags.

Carry on bags0 to 10

Carry-on bags to add to every quoted fare through Google's Bags filter (0 or 1; Google clamps larger counts). Google reprices only fares whose allowance it knows (US domestic and similar); international fares keep their unchanged price and a null checked allowance. With several passengers it applies the filter once and stops stating per-fare inclusions. See price_with_requested_bags.

Infants on lap0 to 80

Infants under 2 on an adult’s lap (Google passenger type 4). At most one per adult; counts toward the 9-passenger limit.

Infants in seat0 to 80

Infants under 2 in their own seat (Google passenger type 3). Counts toward the 9-passenger limit.

Every API field of Google Flights · Search flights is on its tool page: open its card above.

What can you do with Google Flights fare search in Cursor?

Build a travel picker that turns Google Flights airport matches into fare comparisons for specific dates. Use the results in your project to compare airport choices and complete round trips.

Compare airports serving one destination

Resolve London into its city and airport matches, then compare fares from New York for the same dates. Show which arrival airport each option uses.

Check alternative departure airports

Look up airports around the San Francisco Bay Area, then compare departures to Chicago. Keep the departure airport visible beside each fare so travelers can weigh the airport choice.

Prepare a business travel shortlist

Resolve Boston and Washington, DC, before comparing flights for a fixed business trip. Present fare options alongside their airport choices for review.

Compare nearby departure dates

Resolve Lisbon as the destination, then compare separate New York searches for adjacent departure dates. Keep the route and trip length consistent to make the date comparison useful.

Build an event travel brief

Find the Google Flights airport identifiers for Las Vegas, then compare fares from Los Angeles, Chicago, and New York for an event's travel dates. Produce a separate shortlist for each departure city.

Compare complete round trips

Resolve Tokyo's city and airport choices before searching from Seattle. Select an outbound option and retrieve matching returns before comparing the fares for complete trips.

Questions about Google Flights fare search in Cursor

Can Cursor use Google Flights fare search?

Yes. Add Spiral to Cursor as an MCP server, and Cursor can find and run Google Flights fare search like any built-in tool.

How much does Google Flights fare search cost in Cursor?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Cursor plan is separate.

Do I need an Alexandria account to use Google Flights fare search in Cursor?

No. Spiral runs Google Flights fare search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Google Flights fare search in Cursor?

About two minutes: add the hosted server, then sign in.

Does Cursor wait while Google Flights fare search runs?

Google Flights fare search runs in the background. Cursor starts the run, checks on it and gives you the json when it's ready.

Does Google Flights cover every airline and flight?

No. Google Flights compares offers from more than 300 partners, but airlines and flights can be absent because a partnership is required. An empty search does not establish that no flight exists.

How fresh is Google Flights fare information?

Google's calendar date-selection guidance says flight prices update approximately every 24 hours. That statement does not establish an exact refresh schedule for every fare search or for airport and city suggestions.

Does the first Google Flights result mean the lowest fare?

Google ranks top departing flights by a balance of fare and convenience. Duration, stop count, and airport changes during layovers affect that ranking, so the first result need not have the lowest fare.

Can Google Flights coverage differ for users in Europe?

Yes. EEA businesses can opt out of showing their fare and availability content on Google Flights to EEA users, with removal within 30 days.

Where does Google Flights get baggage information?

Google displays baggage information supplied by its partners. Estimated baggage charges can also be subject to additional government taxes.

Get started

Start using Google Flights fare search in Cursor

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Cursor:

Set up Cursor

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options