# United.com MCP Server (proof of concept) > A remote Model Context Protocol (MCP) server that lets an AI agent act on a person's own united.com account: MileagePlus status and activity, flight search (cash and award), live flight status, and booking up to the payment page — or, if the person allows it when connecting, completing the purchase with a saved card. Independent demo; not an official United Airlines product. ## Connect - MCP endpoint: https://travelmcp.app/mcp - Transport: Streamable HTTP (MCP spec 2025-06-18). POST JSON-RPC to the endpoint; keep the `Mcp-Session-Id` header the server returns. If a request gets HTTP 404 "Session not found", start a new session with `initialize`. - Auth: OAuth 2.1 with PKCE (S256) and dynamic client registration. An unauthenticated request returns 401 with a `WWW-Authenticate` header pointing at the protected-resource metadata: - Protected resource metadata: https://travelmcp.app/.well-known/oauth-protected-resource/mcp - Authorization server metadata: https://travelmcp.app/.well-known/oauth-authorization-server - Endpoints: https://travelmcp.app/register (dynamic registration), https://travelmcp.app/authorize, https://travelmcp.app/token - Tokens: access token valid 1 hour; refresh token valid 30 days and rotated on each use. - Claude Code: `claude mcp add --transport http united https://travelmcp.app/mcp`, then `/mcp` → united → authenticate. ## Sign-in (requires the human) - The authorize step opens a page with a button that launches United's own sign-in page in a secure cloud browser. The *person* signs in there — MileagePlus number, password and any verification code go to United directly. An agent must never ask for, type, or relay these. - This server never shows a password field or sees the password. Each person gets an isolated cloud browser; tokens only ever reach the account that signed in. - If a tool says the user is not signed in, ask the person to reconnect the MCP server (re-run the OAuth flow). ## Tools - united_sign_in / united_status: Sign in to MileagePlus and check who is signed in - united_account_summary: Miles, Premier status and qualifying progress, travel credits, upcoming trips - united_activity: Recent MileagePlus activity: flights credited, miles earned and redeemed - united_search_flights: Cash or award flight search, one-way or round trip, with every fare type - united_flight_status: Live status of any United flight: delays, gates, aircraft, upgrade/standby list - united_home_banner: United's current home-page promo banner (image + offer link) to show the person - united_select_flights: Pick flights, fares and saved travelers; stops at the traveler page - united_seat_map / united_select_seats: See the seat map with prices and choose seats - united_review_booking: Read back travelers, itinerary, taxes, total and the co-brand card offer - united_go_to_checkout: Continue to the payment page for the person to pay - united_complete_booking: Buy the booking with a saved card — only if the person allowed it when connecting - united_clear_cart: Drop an unpaid booking from the cart - united_browser_info: where the cloud browser's live view is (for the person to watch or take over) - united_screenshot: image of what the browser shows ## Rules for agents - Purchasing is off unless the person ticked "Allow this assistant to complete bookings" on the sign-in page (the token then carries the `united:purchase` scope). Without it, united_go_to_checkout stops at the payment page and the person pays themselves. - With it: show the person the itinerary and total from united_review_booking and get their go-ahead, then call united_complete_booking with that cartRef, the exact total and a saved card (last four digits or nickname). A changed total is refused. Never call it twice for the same cart; if the result is unclear, check the account instead. It stops without paying when United asks for card details or the bank's 3D Secure check appears; the person finishes those in the live view. - Confirm with the person before choosing Basic Economy (set acceptBasicEconomy only after they agree to its restrictions) and before paid seats (acceptSeatFees). - When presenting the co-brand credit card offer from united_review_booking, include its explanation: it is a statement credit after card approval and first purchase, not a fare discount. - Prices come from united.com in real time and can change before checkout. - Tool calls for one user run one at a time (one browser tab per person). ## More - Home page: https://travelmcp.app/