# FLIGHT SEARCH MCP FOR OPENAI CODEX
Give OpenAI Codex a flight search MCP server. flightclaw is a remote, streamable HTTP MCP server with OAuth, so Codex can search ~300 airlines and create checkout links from the CLI or IDE extension.
# connect in codex
1. Add the server
codex mcp add flightclaw --url https://mcp.flightclaw.com/mcp
click to copy
Or edit ~/.codex/config.toml
[mcp_servers.flightclaw]
url = "https://mcp.flightclaw.com/mcp"
click to copy
2. Sign in
codex mcp login flightclaw
click to copy · a browser opens; enter your email and the 6-digit code
No API key. Sign-in is by email and a 6-digit code (OAuth).
~~~
# what codex can now do
i'm in seattle for a conf, find me a flight to ORD next friday after 5pm
calling search_flights SEA → ORD...
$214 AS 24 · SEA 17:45 → ORD 23:52
$238 UA 1489 · SEA 18:30 → ORD 00:41+1
write the options to trip.md and make a checkout for AS 24
done · trip.md updated · checkout link ready
# prompts to try in codex
- “read itinerary.json and find flights for each leg”
- “list the cheapest dates to fly NYC to Austin in march as a table”
- “check order ord_123 and show the cancellation refund quote”
~~~
# tools codex gets
- search_flights — route, date, return date, cabin, passengers, max connections
- get_offer — full price, bags and fare rules for one offer
- create_checkout — secure checkout link and the exact total to pay
- get_order / cancel_order — check or cancel a booking
- save_traveler / list_travelers — saved passport names for booking
- set_preferences — cabin rules, airlines and seats to remember
See the full MCP server reference and the docs.
~~~
# pricing
The MCP server is free to connect and search. When you book, you pay the airline fare plus a 5% + $3 booking fee (minimum $12), shown as a separate line at checkout.
~~~
# FAQ
Does Codex support remote MCP servers?
Yes. Codex supports streamable HTTP MCP servers by URL, with OAuth sign-in through codex mcp login.
Do I need an API key for the Codex MCP server?
No. flightclaw uses OAuth with dynamic client registration. You sign in with your email and a one-time code.
Where does Codex store the MCP config?
In ~/.codex/config.toml under [mcp_servers.flightclaw]. The CLI and the IDE extension share this file.
Can Codex book flights?
Codex creates a secure checkout link. The traveler pays the fare plus the booking fee by card on that page.
How many searches can I run?
Each account gets 100 flight searches per day.