Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.
com.boostedchat/travel β MCP Server
Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs. This MCP server enables AI agents to query airline availability and book flights through a unified API, leveraging a broad airline catalog and cost-saving capabilities.
π οΈ Key Features
Flight search across 400+ airlines
Booking integration for AI agents
Cost savings relative to OTAs ($20-50 typical)
MCP framework compatibility
Python SDK availability
Travel-domain focused tooling and readme excerpt reference
π Use Cases
AI agents performing autonomous flight shopping
Travel planning for virtual assistants
Airline API integration within automation pipelines
Competitive fare discovery for agent workflows
β‘ Developer Benefits
Unified API for search and booking
Broad airline coverage to reduce gaps
Clear MCP alignment and tooling
Readme excerpt provides guidance and branding context
β οΈ Limitations
Specifics on rate limits, authentication, and error schemas are not provided in the excerpt
Detailed API endpoints and data models are not included here
MPP (updated 2026-07-30): the MPP (Machine Payments Protocol) 402
challenge is live, as a card-free enrolment lane for agents holding a
Tempo wallet. It costs $0.01 once, as verification only β MPP has no
zero-amount intent, so a card-free rail has to settle something. Search and
booking stay free. Earlier revisions of this page described an MPP charge at
unlock time; that never shipped. See https://letsfg.co/for-agents.
β οΈ Agents: do not create a Developer API account
Do NOT call /developers/api/v1/agents/register or
/developers/api/v1/agents/setup-payment, and do NOT run
letsfg register or letsfg setup-payment. Those belong to a separate,
paid, prepaid-balance product for high-volume commercial integrations and
create a billing account you almost certainly do not want.
To search and book flights, run letsfg auth β a zero-amount card setup
(nothing charged), then search and book. See https://letsfg.co/for-agents.
We're LetsFG β a community of travelers.
Finding a flight or hotel shouldn't mean checking 47 tabs. Or 3 hours of searching.
Or having that feeling you could've got a better deal if you'd just waited a little longer.
So we built something about it.
No markup. No tracking. No price that goes up because you looked twice.
Β Β
Β Β
Β Β
Β Β
Join the community. Help others find cheaper flights. Spread the word. β Star the repo. Share with a friend βοΈ
Β
Β
Β
Β
Β
Flights and hotels. Both live.
Hundreds of airlines. Real prices. One function call.
LetsFG gives your AI agent flight and hotel search and booking superpowers. Our server-side engine scans the entire world for the cheapest price. Search is free. Real airline tickets, booked through us or handed to you as a direct link.
The same flight costs $20β$50 less because you skip OTA inflation, cookie tracking, and surge pricing.
CLI or scripts: Run letsfg auth once β it puts a payment method on file through a zero-amount Stripe setup (nothing is charged) and returns a 90-day token. Then letsfg search and letsfg book hit our cloud engine. Developer API: a separate paid product for high-volume commercial use; most agents do not need it. β Get started
Your agent can now book hotels, not just flights. Same API key, same card on file.
python
from letsfg import LetsFG
lfg = LetsFG()
city = lfg.hotel_destinations("Warsaw")[0]
stays = lfg.search_hotels(
city_id=city["Id"], city_name=city["Name"],
check_in="2026-11-10", check_out="2026-11-12", adults=2,
)
hotel = stays["hotels"][0]
offer = hotel["offers"][0]
print(hotel["name"], offer["price"], stays["currency"])
# Hotel Gromada Warszawa Centrum 669.86 PLN
booking = lfg.book_hotel_and_wait(
session_id=stays["session_id"],
hotel_code=hotel["hotel_code"],
combination_id_v2=offer["combination_id_v2"],
expected_price=offer["price"],
expected_balance=offer["balance_to_supplier"],
city_id=city["Id"], city_name=city["Name"],
check_in="2026-11-10", check_out="2026-11-12",
guests=[{"title": "Mr", "first_name": "Jan", "last_name": "Kowalski"}],
email="guest@example.com", phone="512345678",
)
print(booking["confirmation"], booking["pay_link"])
How you pay
5% now, the rest to the hotel later. At booking we charge 5% of the price
to your card as a reservation fee. The remaining balance is paid directly to
the supplier through a pay_link we return β we never hold it.
balance_due_by is the supplier's own auto-cancellation date, not a date we
invent. Miss it and the room is released.
The 5% is non-refundable. Cancelling before balance_due_by costs nothing
else; after it, the hotel's own cancellation ladder applies and can reach 100%.
That ladder ships in the booking's terms, so you can always see the cost before
you cancel.
Things worth knowing before you build
A card on file is required for every hotel call, including search. That is
unusual and it is deliberate: a hotel search opens a real session at the
supplier, and booking blocks a real rate. We would rather refuse up front than
let you reach the point of commitment and discover you cannot pay. The same
card that authorises flight booking authorises hotels β there is no separate
hotel signup.
Only free-cancellation, pay-later rates are sold. Those are the rates where
the balance can safely be settled with the supplier after booking, which is
what makes 5%-now/rest-later work at all. You will see fewer results than a
metasearch shows you. Every one of them can actually be booked.
Booking is asynchronous.book_hotel returns a booking_job_id, not a
booking β the real thing takes minutes. Poll hotel_booking(job_id) until
status is succeeded or failed, or call book_hotel_and_wait and let the
SDK do it. This is not ceremony: it is what makes it impossible to charge a
card and then lose the confirmation to a timeout.
The fee is charged before the room is committed. A declined card therefore
costs nothing to unwind β no reservation exists and nothing is charged.
Do not retry a booking blindly. Calling book_hotel twice for the same
rate books the room twice and charges two reservation fees.
price is what the guest pays. There is no wholesale figure in the response to
quote by mistake.
Five new tools, in the order you call them: resolve_hotel_city β
search_hotels β book_hotel β get_hotel_booking β cancel_hotel_booking.
β¦ Starlink Wi-Fi on results
Offers tell you whether the flight has Starlink, in two honest tiers. A solid
verdict (confirmed_all) means the airline has fitted every aircraft of that
type. A hedged one (likely_all) means the rollout on that type is real but
incomplete β as of August 2026 United was ~29% of its fleet β so it is reported
as a signal, never a promise. An absent field means no information, not an
absence of Wi-Fi.
python
for o in offers:
if o.get("starlink") == "confirmed_all":
print(f"{o['owner_airline']}{o['price']} β Starlink on every leg")
CLI / SDK (Path 1):pip install letsfg and run letsfg auth once β it puts a payment method on file via a zero-amount Stripe setup (no charge, no authorization hold) and gives you a 90-day Bearer token. After that, letsfg search calls our server-side engine and applies the open-source ranking algorithm locally. Search is free and unlimited.
PFS β Programmatic Flight Search (Path 2): For scripts and agents that call the API directly. letsfg.co is human-only by default (Cloudflare Turnstile + bot protection). Get a 90-day Bearer token by putting a payment method on file. Nothing is charged on the card lanes β it is a zero-amount Stripe setup:
POST https://letsfg.co/api/agent-access/request β 402 with setup_url (hosted), a headless object, and an mpp object
Present a payment method, whichever fits how you run:
hosted β a human adds a card at setup_url, then send { "setup_session_id": "cs_..." }
headless β no browser: create a PaymentMethod and confirm the SetupIntent yourself against api.stripe.com with the supplied publishable key, then send { "setup_intent_id": "seti_..." }
MPP β no card at all: answer the WWW-Authenticate: Payment challenge ($0.01 once, verification only), then retry with Authorization: Payment <credential>
POST https://letsfg.co/api/agent-access/verify β receive your Bearer token
Search: POST https://letsfg.co/api/search with Authorization: Bearer <token>
Book: POST https://letsfg.co/api/agent-book
Full guide and response schema: letsfg.co/for-agents. Booking returns either a confirmed order or a direct booking link for that exact offer.
Developer API (Path 3): Paid server-side search at letsfg.co/developers. Prepaid credits, direct airline booking URLs (no checkout step), full NL query parsing, and a /discover endpoint that checks 20 destinations in one call for 1 credit (2β5 s). Includes a free sandbox at /sandbox/flights/*. Full docs: letsfg.co/developers/api/docs.
Free server-side search: Use Path 1 or PFS β one letsfg auth (a zero-amount card setup, nothing charged) gives you a 90-day token and free searches on our servers. No Playwright, no local install beyond the SDK. Direct booking URLs with no per-booking fee: Use the Developer API (Path 3) β prepaid credits, instant results, no checkout layer.
Real prices: LetsFG vs Google Flights
We searched 5 routes on Google Flights and LetsFG on the same day (2026-08-05), for flights departing 2026-09-16. Same airline, same number of stops β LetsFG was cheaper every time:
Route
Airline
Google Flights
LetsFG
You Save
LAX β Paris (CDG)
JetBlue, 1 stop
$363
$334
$29
SFO β London (LHR)
JetBlue, 1 stop
$349
$333
$16
LA β New York (JFK)
JetBlue, nonstop
$174
$157
$17
London β Singapore (SIN)
Shenzhen Airlines, 1 stop
$395
$380
$15
Chicago β Dubai (DXB)
Air Canada + Emirates, 2 stops
$517
$461
$56
$133 cheaper across 5 routes in a verified comparison (2026-08-05). Google Flights inflates on repeat searches; LetsFG returns the same prices however often you run the search, because it reads airlines and the major booking sites directly rather than tracking you.
Why the difference? Google Flights only searches its own limited set of airline partners. LetsFG searches everywhere β Skyscanner, Kiwi, Kayak, Momondo, plus direct airline websites (Ryanair, United, Southwest, EasyJet, Spirit, Norwegian, AirAsia, and hundreds more). More sources = better prices. No demand-based inflation and no cookie tracking: the same search returns the same prices however often you run it.
Real hotel prices: LetsFG vs Booking.com
Same hotel, same room type, same 2-night stay, same free-cancellation policy β checked on the same day (2026-08-05) for a 2026-09-16 check-in:
Hotel
Booking.com
LetsFG
You Save
Hotel Boss, Warsaw
$206
$169
$37
ibis Styles Paris Gare de l'Est
$663
$525
$138
Copthorne Tara Hotel, London Kensington
$379
$347
$32
$207 cheaper across 3 hotels in a verified comparison (2026-08-05), matching each property's own free-cancellation rate against Booking.com's free-cancellation rate for the identical dates and room type. Prices quoted in PLN at booking, converted to USD at that day's rate.
Why the difference? LetsFG sells at wholesale cost β no markup for demand, no loyalty-program cross-subsidy. You're not paying for the room upfront: 5% books it now, and the remaining 95% isn't due until the hotel's own cancellation deadline. Cancel before that deadline and you lose nothing but the 5%; the rest was never charged. Only free-cancellation, pay-later rates are sold, so every price shown is one you can actually hold risk-free.
Try it right now β no install needed
Human users: Use letsfg.co and search flights instantly in your browser:
Search any route, compare live results, and unlock the booking links for the flights you want β no installation needed.
Agents / scripts (free server-side): Get a Bearer token by putting a payment method on file (nothing is charged) β use POST /api/search and POST /api/agent-book. This is PFS β Programmatic Flight Search powered by the letsfg.co engine, free for 90 days per token. See letsfg.co/for-agents for the full guide.
When you're ready to integrate it into your own agent, keep reading.
Pricing
How you use it
Search
Flight booking
Hotel booking
Runs where?
CLI / Python SDK / npm
β Free (letsfg auth, zero-amount card setup)
No LetsFG fee either way
5% non-refundable reservation fee
Our servers
MCP Server
β Free (letsfg auth)
No LetsFG fee either way
5% reservation fee
Our servers
PFS (raw API via letsfg.co)
β Free (Bearer token, zero-amount setup or $0.01 via MPP)
No LetsFG fee either way
5% reservation fee
Our servers
Developer API
Prepaid credits
Included (direct airline URLs)
5% reservation fee
Our servers
CLI / SDK / MCP / PFS = free search, no LetsFG fee on flight booking. Run letsfg auth once (a zero-amount card setup β nothing is charged) and both searching and booking are free for 90 days. No credits, no unlock step. letsfg book / POST /api/agent-book returns either a confirmed order or a direct airline link β no LetsFG fee either way (you still pay the ticket price itself, plus Stripe's own processing cut, same as any card charge).
Hotels = 5% now to hold a free-cancellation rate, on every path. That 5% is what pays for flexibility: it books the room today, but the remaining 95% isn't charged until the hotel's own cancellation deadline, paid straight to the hotel via a pay_link. Cancel before that deadline and the only cost is the 5% already paid. See Hotels above.
Developer API = prepaid, business use.letsfg.co/developers returns direct airline booking URLs with no per-booking fee. Monthly billing: $0.50/search for the first 10, $0.20 for 11β1,000, then $0.10/search. Resets monthly. Minimum top-up: $5.
π‘ Know someone who travels? The more people discover LetsFG, the more airlines we cover β and the better it gets for everyone. β Star Β· Share with a friend
Why developers star this repo
Google Flights / Expedia
LetsFG
Price
Inflated (tracking, cookies, surge)
Stable across repeat searches. $133 cheaper across 5 routes, verified 2026-08-05.
Coverage
Misses budget airlines
Hundreds of airlines β OTAs, budget carriers, full-service
One auth step, then searches are free for 90 days β no install of browsers, no scrapers. The search runs on our servers.
bash
letsfg search LHR JFK 2026-06-15 --cabin C # cabin class: M economy, W premium, C business, F first
letsfg book off_xxx --passenger '{"given_name":"John","family_name":"Doe","born_on":"1990-01-15","gender":"m","title":"mr"}' --email john.doe@example.com
Booking from CLI search:letsfg book returns either a confirmed order (a real airline PNR, e-ticket to your inbox) or a direct booking link for that exact offer β no LetsFG fee either way. Want direct airline URLs on every search, with no checkout step at all? Use the Developer API below.
Run LetsFG's full search on our servers β no local browser, no install. Access requires a payment method on file: letsfg.co is human-only (Cloudflare Turnstile), so a Bearer token is the only programmatic way in. Nothing is charged to get one β it is a zero-amount Stripe setup β and the token lasts 90 days.
bash
# 1. Request a challenge code
curl -X POST https://letsfg.co/api/agent-access/request
# 2. Add a card at the returned setup_url (nothing is charged), or confirm the# SetupIntent yourself against api.stripe.com with the supplied publishable key# 3. Exchange it β receive a 90-day Bearer token
curl -X POST https://letsfg.co/api/agent-access/verify \
-H "Content-Type: application/json" \
-d '{"setup_session_id":"cs_<from step 1>"}'# 4. Search with the token
curl -X POST https://letsfg.co/api/search \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"origin":"LHR","destination":"BCN","date_from":"2026-06-15"}'
Search is free; book with POST /api/agent-book β no LetsFG fee either way. Full guide and response schema: letsfg.co/for-agents.
β‘ Developer API β paid, server-side, direct booking URLs
A separate paid product for high-volume commercial integrations; most agents should not use it. Prepaid credits, results in seconds, direct airline booking URLs β plus /discover (20 destinations in one call, 1 credit), async polling, NL query parsing, and a free sandbox.
bash
# Register, then search with your API key
curl -X POST https://letsfg.co/developers/api/v1/agents/register \
-H "Content-Type: application/json" \
-d '{"agent_name":"my-agent","email":"you@example.com"}'
curl -X POST https://letsfg.co/developers/api/v1/flights/search \
-H "X-API-Key: letsfg_..." \
-H "Content-Type: application/json" \
-d '{"origin":"LHR","destination":"BCN","date_from":"2026-06-15"}'
Pricing: $0.50/search for the first 10 each month, $0.20 for 11β1,000, $0.10 beyond. Minimum top-up $5. Test for free in the sandbox first. Full docs: letsfg.co/developers/api/docs.
Full search β book flow (CLI / PFS agent path, no unlock step)
bash
# Search (free with the letsfg auth token)
letsfg search LON BCN 2026-04-01 --return 2026-04-08 --sort price
# Book β no LetsFG fee either way. Returns a confirmed PNR or a direct# booking link for that exact offer.
letsfg book off_xxx \
--passenger '{"id":"pas_0","given_name":"John","family_name":"Doe","born_on":"1990-01-15","gender":"m","title":"mr"}' \
--email john.doe@example.com
letsfg unlock is a Developer APIβonly command for the paid, prepaid-credit
product above β it isn't part of this flow. See CLI Commands.
Run letsfg auth inside the MCP session once (a zero-amount card setup β nothing is charged β then saves the 90-day Bearer token). After that, search and booking both work immediately, with no LetsFG fee either way.
Optional: use the Developer API instead (paid, prepaid credits, direct booking URLs)
This is a separate paid product for high-volume commercial use β most agents should stick with the free letsfg auth flow above and skip this. A human setting this up deliberately gets a key at letsfg.co/developers.
from letsfg.local import search_local
# Reads LETSFG_BEARER_TOKEN env var or ~/.letsfg/config.json (set by `letsfg auth`)
result = await search_local("GDN", "BCN", "2026-06-15")
for offer in result.offers[:5]:
print(f"{offer.airlines[0]}: {offer.currency}{offer.price}")
Install
Package
Command
What you get
Python SDK + CLI
pip install letsfg
SDK + CLI (run letsfg auth once for free search)
MCP Server
npx letsfg-mcp
Claude, Cursor, Windsurf (run letsfg auth once)
JS/TS SDK
npm install -g letsfg
SDK + CLI + open-source ranking engine
Remote MCP
https://letsfg.co/developers/api/mcp
No install (API key required)
Agent Skill
npx skills add LetsFG/LetsFG
Install flight search skill for any AI agent (skills.sh)
[Developer API only] Register an account for the paid, prepaid-credit product β not part of the agent flow
letsfg setup-payment
[Developer API only] Attach a payment method (required for unlock) β not part of the agent flow
letsfg recover --email <email>
Recover lost API key via email
letsfg locations <query>
Resolve city/airport to IATA codes
letsfg unlock <offer_id>
[Developer API only] Confirm live price and reveal the booking URL. Legacy β not part of the agent flow, use letsfg book
letsfg book <offer_id>
Book the flight
letsfg me
View profile & usage stats
All commands accept --json for structured output and --api-key to override the env variable.
How it works
CLI / SDK / MCP (free, cloud-backed)
code
letsfg auth (once) β Bearer token (90-day) β Search (free) β Book via letsfg.co (no LetsFG fee)
Auth β letsfg auth runs the payment-token flow: POST /api/agent-access/request β add a card at the printed setup_url (or confirm the SetupIntent headlessly) β POST /api/agent-access/verify. Nothing is charged. Token saved to ~/.letsfg/config.json, valid 90 days.
Search β letsfg search LHR BCN 2026-06-15 calls POST https://letsfg.co/api/search, polls until done (60β90 s), and applies the open-source ranking algorithm locally.
Book β POST /api/agent-book. Returns either a confirmed order or a direct booking link for that exact offer. No LetsFG fee either way.
PFS β raw API (same as CLI, without the wrapper)
code
Payment method on file -> Bearer token (90-day) -> POST /api/search -> poll GET /api/results/<id> -> POST /api/agent-book
Get a Bearer token β POST /api/agent-access/request β present a payment method (hosted card page, headless SetupIntent, or MPP) β POST /api/agent-access/verify. Nothing is charged on the card lanes. Token valid 90 days.
Search β POST https://letsfg.co/api/search with Authorization: Bearer <token>. Returns { search_id }. Poll GET /api/results/<search_id> every 10 s until status: "done".
Book β POST /api/agent-book. No LetsFG fee.
Developer API β paid, direct booking URLs
code
Register β Fund balance β Discover or Search (credits) β Direct booking URL (no checkout)
Discover β POST /flights/discover with up to 20 destinations, get indicative prices sorted cheapest-first. 1 credit, 2β5 s. Use to rank options before committing to a full search.
Full search β POST /flights/search (blocking) or /flights/search/async (non-blocking + poll). 1 credit, 60β90 s.
Book β each offer includes a direct airline booking_url. No LetsFG fee, no checkout step.
Virtual interlining
The server-side engine builds cross-airline round-trips by combining one-way fares from different carriers. A Ryanair outbound + Wizz Air return can save 30-50% vs booking a round-trip on either airline alone.
City-wide airport expansion
Search a city code and LetsFG automatically searches all airports in that city. LON expands to LHR, LGW, STN, LTN, SEN, LCY. NYC expands to JFK, EWR, LGA. Works for 25+ major cities worldwide.
Architecture
CLI / SDK / MCP / PFS
code
CLI / SDK / MCP / AI Agent
β Payment method on file -> 90-day Bearer token
βΌ
POST letsfg.co/api/search (bot-protected, token required)
β
βΌ
letsfg.co server-side search engine
β
βΌ
GET /api/results/<search_id> (poll every 10 s until done)
β
βΌ
Ranking applied locally (sdk/js/src/ranking.ts, open-source)
β
βΌ
Results + booking via POST /api/agent-book β no LetsFG fee either way
Ryanair, Wizz Air, EasyJet, Norwegian, Vueling, Eurowings, Transavia, Pegasus, Turkish Airlines, Condor, SunExpress, Volotea, Smartwings, Jet2, LOT Polish Airlines, Finnair, SAS, Aegean, Aer Lingus, ITA Airways, TAP Portugal, Icelandair, PLAY
Middle East & Africa
Emirates, Etihad, Qatar Airways, flydubai, Air Arabia, flynas, Salam Air, Air Peace, FlySafair, EgyptAir, Ethiopian Airlines, Kenya Airways, Royal Air Maroc, South African Airways
Asia-Pacific
AirAsia, AirAsia X, IndiGo, SpiceJet, Akasa Air, Air India, Air India Express, Alliance Air, Star Air, EaseMyTrip OTA, VietJet, Cebu Pacific, Scoot, Jetstar, Peach, Spring Airlines, Lucky Air, 9 Air, Nok Air, Batik Air, Jeju Air, T'way Air, ZIPAIR, Skymark, H.I.S. Travel OTA, Singapore Airlines, Cathay Pacific, Malaysian Airlines, Thai Airways, Korean Air, ANA, JAL, Qantas, Virgin Australia, Bangkok Airways, Air New Zealand, Garuda Indonesia, Philippine Airlines, US-Bangla, Biman Bangladesh