Cursor — 5-Minute Quickstart¶
⚠️ Agents: do not create a Developer API account¶
Do NOT call
/developers/api/v1/agents/registeror/developers/api/v1/agents/connect-payment, and do NOT runletsfg registerorletsfg connect-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, connect LetsFG as an MCP server at https://letsfg.co/mcp. Approving it opens https://letsfg.co/connect: one tap, no card. A card is asked for at the first booking. See https://letsfg.co/for-agents.
Connect the remote MCP server once and Cursor's agent can search and book flights, and search and book hotels. Nothing to install.
Option A: Remote MCP with the connect flow — recommended¶
1. Add to Cursor MCP config¶
Create .cursor/mcp.json in your project root (or the global config):
2. Approve the connection¶
Cursor prompts you to authenticate the server. The consent step opens https://letsfg.co/connect: tap Approve. No sign-up form and no card.
The card is asked for at your first booking: book_flight returns a link where you add a card or use Revolut Pay / Google Pay, in a 0.00 setup. Any card works, no Revolut account is needed, and the card details go to Revolut — they never touch LetsFG. You pay the ticket price only when you book, and even then the money is held, not taken, until the airline confirms. The token Cursor receives is carried on every tool call.
3. Reload Cursor¶
Press Ctrl+Shift+P → Developer: Reload Window. LetsFG tools appear in the MCP panel.
4. Search¶
Find me flights from Berlin to Lisbon on April 10
Search is free: 10 per 10 minutes, 30 per hour, 100 per day per account (per card once one is added).
Option B: Local MCP server (npx letsfg-mcp)¶
Use this only if you cannot use a remote server. It needs the token from the connect flow in its environment — either the one issued through the connect flow above, or one minted in the terminal with letsfg auth, which opens the same letsfg.co/connect page and writes ~/.letsfg/config.json. (The old Stripe setup behind letsfg auth was retired on 2026-09-02 and its tokens revoked.)
{
"mcpServers": {
"letsfg": {
"command": "npx",
"args": ["-y", "letsfg-mcp"],
"env": {
"LETSFG_BEARER_TOKEN": "your_card_backed_token"
}
}
}
}
Windows
ENOENTfix: Replace"npx"with"C:\\Program Files\\nodejs\\npx.cmd".
Reload the window. The local server sends every request to the letsfg.co server-side engine with your token — no local browsers.
Option C: Paid Developer API — not for agents¶
The same remote URL also accepts a Developer API key in an X-API-Key header, from the separate, prepaid product at letsfg.co/developers. It creates a billing account and blocks search until you fund it. See Onboarding and Billing if you are building a commercial integration.
Use in Agent mode¶
Cursor's Agent mode can chain LetsFG tools automatically:
"I need to fly from San Francisco to Tokyo next month. Find the cheapest option, show me the details, and book it for me."
The agent will:
1. resolve_location("San Francisco") → SFO
2. search_flights("SFO", "TYO", "2026-05-01"), then get_flight_results for the late-landing split tickets
3. Present options with prices
4. Ask for the traveller's real details (name as on the passport, date of birth, gender, nationality, email, phone, address)
5. book_flight — the price shown is held on your card, a LetsFG booking agent buys the ticket, and the hold is captured only against a real airline PNR. If it fails, the hold is released and nothing is charged
6. get_flight_booking every 20–30 s until completed with the PNR (a booking takes 4–11 minutes)
Troubleshooting¶
"payment_method_required" with an add_card_url → the account has no card yet. Open the add_card_url and add one; nothing is charged.
"TOKEN_REVOKED" → a token from the retired Stripe setup. Remove and re-add the server.
A 402 on search → you are on the Developer API key (Option C), not the connect flow. Remove the X-API-Key header to use the free lane, or connect a Revolut method with POST /agents/connect-payment. If the error is search_allowance_exhausted, book a flight (which resets the 200 free searches) or top up to buy a block.
Tools not appearing → Check .cursor/mcp.json is valid JSON. Reload window.
"Cannot start Python" -> the local server needs Node (npx); the remote MCP URL needs nothing installed
Windows: spawn npx ENOENT → Use full path: "C:\\Program Files\\nodejs\\npx.cmd"