
Aa
io.github.thehesiod由 GitHub 帳號 thehesiod 發布v0.1.0更新於 Oct 27, 2026
MCP server for read-only American Airlines AAdvantage account access
概覽
唯讀的 MCP 伺服器,讓助理查看你的美國航空 AAdvantage 帳戶:哩程、忠誠點數、行程、旅行額度與優惠。
- 可以做什麼
- 讀取帳戶與個人資料:姓名、AAdvantage 號碼、哩程餘額、會員等級、忠誠點數進度及資料內容
- 依日期範圍、分頁與搜尋查看哩程與忠誠點數的交易紀錄
- 查詢即將出發的行程,並依訂位代號取得完整訂位詳情,含航段、旅客、機票與費用
- 為某筆訂位搜尋替代航班,提供價格輪播與各艙等價格
- 列出機票與行程旅行額度,以及儀表板上的合作夥伴優惠
- 檢查已儲存的連線狀態,並從已登入的 Chromium 瀏覽器儲存連線 Cookie
- 適用情境
- 當你希望助理回答關於自己 AAdvantage 哩程餘額、等級進度、歷史活動、即將出發的行程或旅行額度的問題,並比較改票選項,而不必自己打開 aa.com 時適用。
- 執行需求
- 以 Python 套件形式在本機透過 stdio 執行(pip install aa-mcp-server)。需要真實的 Chromium 瀏覽器完成一次手動登入 aa.com(含可能出現的兩步驗證),再把 Cookie 擷取到本機連線儲存區。可選設定 AA_MCP_CHROMIUM 指定 Chromium 路徑。未宣告任何 API 金鑰。
安裝
README
aa-mcp-server
An MCP server that gives Claude (or any MCP-compatible LLM) read-only access to your American Airlines AAdvantage account — mile balance, Loyalty Points progress, transaction history, upcoming trips, travel credits, and partner offers.
This is not a browser-automation wrapper. The server discovers and calls aa.com's underlying JSON APIs directly using session cookies extracted from a Chromium login. All HTTP traffic uses curl_cffi with Chrome TLS impersonation to satisfy aa.com's Akamai Bot Manager.
Tools
Setup
One-time auth
aa.com is fronted by Akamai Bot Manager — you can't log in via headless requests. The flow:
- Launch a real Chromium with a persistent profile and a remote-debugging port:
- Log into aa.com (and complete 2FA if prompted) in the window that opens.
- Copy the cookies into the MCP store:
Or call the
save_session_from_browserMCP tool from Claude.
The cookies live in ~/.aa-mcp/accounts/<account>/session.json. The chromium profile lives in ~/.aa-mcp/chrome-profiles/<account>/. To refresh after expiry, relaunch aa-auth-browser (the saved profile auto-refreshes the access_token cookie when you visit any aa.com page) and re-run --extract-session.
AA_MCP_CHROMIUM=<path-to-chrome.exe> overrides the auto-discovery if your Chromium is somewhere unusual.
Multi-account
Every tool takes an optional account parameter. Omit it to use the default account.
Running
Add to your MCP client config (e.g. Claude Desktop):
Limitations
- Read-only. No booking, no award redemption, no profile edits.
- Cookie expiry. The
access_tokenJWT lives ~45 min; therefresh_tokencookie typically ~30 days. Visiting any aa.com page in the saved Chromium profile silently refreshes both. After a long gap, re-extract. - GraphQL coverage. Only the
GetCustomerpersisted query is wired up. Expanding requires capturing additional sha256Hashes from the browser bundle — easy but a per-feature task. - One region tested. All testing has been on US-locale aa.com. International locales may require different
refererpaths.
License
MIT
mcp-name: io.github.thehesiod/aa
來源:README.md,提交 f66f7d1
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分