@striderlabs/mcp-american
Enables AI agents to search flights, manage bookings, check in, retrieve boarding passes, and access AAdvantage rewards on American Airlines' website via Playwright browser automation.
README
@striderlabs/mcp-american
MCP server for American Airlines — let AI agents search flights, manage bookings, check in, retrieve boarding passes, and access AAdvantage rewards on aa.com via Playwright browser automation.
Built by Strider Labs.
Features
- Flight Search — Search AA flights by origin, destination, dates, and cabin class
- Flight Details — Get connection info, aircraft type, baggage policy, and fare rules
- Flight Selection — Select outbound and return flights into a booking session
- Seat Maps — View available seats including Main Cabin Extra, Preferred, and First Class
- Seat Selection — Choose specific seats by seat number
- Baggage — Add checked bags to a booking
- Checkout — Complete bookings with a confirmation gate
- Reservations — Look up existing reservations by record locator
- Modify Trips — Initiate flight changes on existing bookings
- Cancellations — Cancel reservations with a confirmation gate
- Check-In — Online check-in starting 24 hours before departure
- Boarding Passes — Retrieve digital boarding passes after check-in
- AAdvantage — Check miles balance, elite status, and earning milestones
- Upgrades — Request upgrades using miles, systemwide certificates, or elite status
Installation
npm install -g @striderlabs/mcp-american
npx playwright install chromium
Or run directly with npx:
npx @striderlabs/mcp-american
Claude Desktop Setup
Add to your claude_desktop_config.json:
{
"mcpServers": {
"american": {
"command": "npx",
"args": ["-y", "@striderlabs/mcp-american"]
}
}
}
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Authentication
This server uses browser automation and stores session cookies locally. To authenticate:
- Call the
logintool — it opens aa.com in a browser window - Log in manually with your AAdvantage credentials
- Call
statusto verify and save the session
Sessions are saved to ~/.striderlabs/american/ and reused across invocations. You typically only need to log in once until the session expires.
Tools
| Tool | Description |
|---|---|
status |
Check login status and session info |
login |
Open aa.com for manual login |
logout |
Clear saved session and cookies |
search_flights |
Search AA flights by route, date, cabin |
get_flight_details |
Get detailed info on a search result |
select_flight |
Choose outbound/return flight for booking |
get_seat_map |
View available seats and fees |
select_seats |
Choose seats by seat number |
add_bags |
Add checked baggage |
checkout |
Complete booking (requires confirm: true) |
get_reservation |
Look up reservation by record locator |
modify_trip |
Change flights on existing reservation |
cancel_trip |
Cancel reservation (requires confirm: true) |
check_in |
Online check-in (opens 24h before departure) |
get_boarding_pass |
Retrieve digital boarding passes |
get_aadvantage |
Check miles, elite status, milestones |
upgrade_request |
Request upgrade using miles or elite status |
Example Workflow
User: Search for flights from DFW to JFK next Friday
Agent:
1. search_flights { origin: "DFW", destination: "JFK", departureDate: "2025-07-11" }
2. get_flight_details { flightId: "0" }
3. select_flight { outboundFlightId: "0" }
4. get_seat_map {}
5. select_seats { seats: ["14A"] }
6. add_bags { bags: 1 }
7. checkout {} → preview
8. checkout { confirm: true } → booking confirmed
Safety Gates
Destructive or financial actions require explicit confirmation:
checkout— passconfirm: trueonly after user confirms the purchasecancel_trip— passconfirm: trueonly after user confirms the cancellation
Without confirm: true, these tools return a preview instead of taking action.
Environment Variables
Optional — credentials can be provided via environment variables for automated workflows:
| Variable | Description |
|---|---|
AA_USERNAME |
AAdvantage number or email |
AA_PASSWORD |
Account password |
When set, the server will attempt auto-login on first use.
Session Storage
Cookies and session info are stored at:
~/.striderlabs/american/
├── cookies.json # Browser session cookies
└── session.json # Account info cache
To reset authentication: call logout or delete this directory.
Development
git clone https://github.com/markswendsen-code/mcp-american
cd mcp-american
npm install
npx playwright install chromium
npm run build
npm start
License
MIT — Strider Labs
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。